-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI.php
More file actions
138 lines (129 loc) · 15.6 KB
/
Copy pathAPI.php
File metadata and controls
138 lines (129 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
$zDataProviderRequest = $_REQUEST['dataProvider'];
if ($zDataProviderRequest === 'accounts') {
echo '[
{ "id": "6", "name": "Betari47", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "7", "name": "Bonin2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "8", "name": "DeCroute2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "9", "name": "Laouti2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "10", "name": "Lohse2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "1", "name": "Betari", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "2", "name": "Bonin", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "3", "name": "DeCroute", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "4", "name": "Laouti", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "5", "name": "Lohse", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "11", "name": "xBetari", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "12", "name": "xBonin", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "13", "name": "xDeCroute", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "14", "name": "xLaouti", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "15", "name": "xLohse", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "16", "name": "xBetari2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "17", "name": "xBonin2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "18", "name": "xDeCroute2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "19", "name": "xLaouti2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true},
{ "id": "20", "name": "xLohse2", "identifier": "23da4b70433676c2421cd8e204eac0e2", "pack": "demo_premium", "quoto": "0", "quotaPv": "0", "quotaStartDate": "0000-00-00 00:00:00", "quotaValidUntil": "0000-00-00" , "demoValidUntil": "2015-07-01", "testsPending": "0/0", "creationDate": "2015-06-01 11:49:48", "updateScript": true , "jsLocal": true, "jsCloudFront": true, "statusFramework": "Check...", "database": "rds2", "accountManager": "damien@abtasty.com", "stats": false, "agencies": "", "supportTime": "", "excludeIE": true}
]';
}
if ($zDataProviderRequest === 'tableCols') {
echo '[
{ "id": "1", "name": "#", "valueId": "id","active": true},
{ "id": "2", "name": "Name", "valueId": "name","active": true},
{ "id": "3", "name": "Identifier", "valueId": "identifier","active": true},
{ "id": "4", "name": "Pack", "valueId": "pack","active": true},
{ "id": "5", "name": "Quota", "valueId": "quota","active": false},
{ "id": "6", "name": "Quota PV", "valueId": "quotaPv","active": true},
{ "id": "7", "name": "Quota start date", "valueId": "quotaStartDate","active": false},
{ "id": "8", "name": "Quota valid until", "valueId": "quotaValidUntil","active": false},
{ "id": "9", "name": "Demo valid until", "valueId": "demoValidUntil","active": true},
{ "id": "10", "name": "Quota winners", "valueId": "quotaWinners","active": false},
{ "id": "11", "name": "Tests Pending/All", "valueId": "testsPending","active": true},
{ "id": "12", "name": "Creation date", "valueId": "creationDate","active": true},
{ "id": "13", "name": "Update script", "valueId": "updateScript","active": true},
{ "id": "14", "name": "JS Local", "valueId": "jsLocal","active": false},
{ "id": "15", "name": "JS Cloudfront", "valueId": "jsCloudFront","active": false},
{ "id": "16", "name": "Status framework", "valueId": "statusFramework","active": true},
{ "id": "17", "name": "Database", "valueId": "database","active": true},
{ "id": "18", "name": "Account manager", "valueId": "accountManager","active": true},
{ "id": "19", "name": "Agencies", "valueId": "agencies","active": false},
{ "id": "20", "name": "Stats", "valueId": "stats","active": false},
{ "id": "21", "name": "Support time", "valueId": "supportTime","active": false},
{ "id": "22", "name": "Exclude IE + meta tag", "valueId": "excludeIE","active": false}
]';
}
if ($zDataProviderRequest === 'optionsPage') {
echo '{
"lang": "en",
"country": "australia",
"flag_icon": "flag-au",
"year": "2015",
"lastConnexion": "52 min plus tôt",
"pageName": "Dashboard",
"pageParentName": "Home"
}';
}
if ($zDataProviderRequest === 'translateWords') {
echo '{
"latestNews" : "latest news",
"noNews" : "no news",
"topicality" : "topicality",
"clear" : "clear",
"home" : "home",
"dashboard" : "dashboard",
"accounts database": "accounts database",
"accounts" : "accounts",
"search by" : "search by",
"submit" : "submit",
"lastConnexion" : "last connexion"
}';
}
if ($zDataProviderRequest === 'translateWords_fr') {
echo '{
"latestNews" : "dernières infos",
"noNews": "no news",
"topicality" : "actualités",
"clear" : "vider",
"home" : "accueil",
"dashboard" : "tableau de bord",
"accounts database" : "base client",
"accounts" : "comptes",
"search by" : "rechercher par",
"submit" : "envoyer",
"lastConnexion": "Dernière connexion"
}';
}
if ($zDataProviderRequest === 'languages') {
echo '[
{ "id": 1 , "tag": "fr" , "country": "France" , "name": "Français" , "url": "/" , "class": "flag-fr" , "active": false},
{ "id": 2 , "tag": "en" , "country": "United States" , "name": "English (US)" , "url": "/" , "class": "flag-us" , "active": true},
{ "id": 3 , "tag": "es" , "country": "España" , "name": "Español" , "url": "/" , "class": "flag-es" , "active": false},
{ "id": 4 , "tag": "de" , "country": "German" , "name": "Deutsch" , "url": "/" , "class": "flag-de" , "active": false}
]';
}
if ($zDataProviderRequest === 'news') {
echo '[
{ "title": "Stat Wars, Episode VIII: Return of Bayes" },
{ "title": "Comment mesurer l’impact de sa stratégie de testing sur le long terme ?" },
{ "title": "L’AB Testing, nouveau relais de croissance des ecommerçants ?" },
{ "title": "6 astuces pour optimiser son site en cette période de fête" }
]';
}
if ($zDataProviderRequest === 'menu') {
echo '[
{"id": 1, "name": "Dashboard" , "url": "/" , "fa_icon": "fa-home" , "active": true},
{"id": 2, "name": "Knowledge" , "url": "/knowledge" , "fa_icon": "fa-cloud" , "active": false},
{"id": 3, "name": "Client stats" , "url": "/clientstats" , "fa_icon": "fa-bar-chart" , "active": false},
{"id": 4, "name": "Pending tests" , "url": "/pendingtests" , "fa_icon": "fa-play-circle" , "active": false},
{"id": 4, "name": "Translations" , "url": "/translations" , "fa_icon": "fa-comments-o" , "active": false},
{"id": 4, "name": "Validate plugins" , "url": "/validateplugins" , "fa_icon": "fa-plug" , "active": false},
{"id": 4, "name": "Translate plugins" , "url": "/translateplugins" , "fa_icon": "fa-comment-o" , "active": false},
{"id": 4, "name": "Last 24h tests ranking", "url": "/lastTestsRanking" , "fa_icon": "fa-signal" , "active": false},
{"id": 4, "name": "Webinar management" , "url": "/webinar" , "fa_icon": "fa-calendar" , "active": false}
]';
}
if ($zDataProviderRequest === 'user') {
echo '{
"firstname": "mehdi",
"lastname" : "betari",
"imgUri" : "ressources/img/avatars/mehdi.jpg"
}';
}