-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdominoes_hack
More file actions
executable file
·389 lines (295 loc) · 11.7 KB
/
Copy pathdominoes_hack
File metadata and controls
executable file
·389 lines (295 loc) · 11.7 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
http://www.theprohack.com/2012/07/hacking-dominos-coupon-generator-free.html
SLOT MATCHINE
https://pizzaonline.dominos.co.in/slot-machine/index.php
HACK_AGAIN
http://www.dwtricks.com/2015/01/dominos-pizza-fortunes-slot-hack-100.html
function confirmLogin()
{
var mobile = $('#txtMobileNo').val();
var password = $('#txtPassword').val();
var error = 0;
var errormessage = '<h3 style="padding-left:10px;">Error!</h3><p style="padding:10px">';
if(mobile.length != 10 )
{
error = 1;
errormessage = errormessage + 'Please enter a valid mobile number<br />';
}
if(password == '')
{
error = 1;
errormessage = errormessage + 'Please enter a password<br />';
}
if(error == 1)
{
$.prompt(errormessage+'</p>');
}
else
{
var dataString = 'txtMobileNo='+ mobile+'&password='+password;
$('#blocker').css('display','block');
$.ajax
({
type: "POST",
url: "verifylogin.php",
data: dataString,
cache: false,
success: function(html)
{
if(html=="1")
{
window.location='../dashboard.php?r=1';
}
else
{
$('#blocker').css('display','none');
$.prompt('<h3 style="padding-left:10px;">Error!</h3><p style="padding:10px">You have entered an incorrect mobile number / password.<br />Kindly try again or click on "Forgot Password" to retreive it</p>');
}
}
});
}
}
function submitForgotPassword()
{
var mobile = $('#fpMobile').val();
$.fancybox.close();
if(mobile.length == 10 )
{
var dataString = 'fpMobile='+ mobile;
$('#blocker').css('display','block');
$.ajax
({
type: "GET",
url: "requestpin.php",
data: dataString,
cache: false,
success: function(html)
{
if(html=="1")
{
$('#blocker').css('display','none');
$.prompt('<h3 style="padding-left:10px;">Success!</h3><p style="padding:10px">Password sent successfully to you registered Email ID</p>');
}
else
{
$('#blocker').css('display','none');
$.prompt('<h3 style="padding-left:10px;">Error!</h3><p style="padding:10px">The mobile number you have entered is not registered with us. If you are ordering for the first time kindly use the "first time order" section');
}
}
});
}
else
{
$.prompt('<h3 style="padding-left:10px;">Error!</h3><p style="padding:10px">Please enter a valid mobile number</p>');
}
}
function setStreetNameValue()
{
var streetName = $('#txtStreetName').val();
if(streetName == '' || streetName == 'Street / Society Name')
{
$('#txtStreetName').val('');
}
}
function removeStreetNameValue()
{
var streetName = $('#txtStreetName').val();
if(streetName == '' || streetName == 'Street / Society Name')
{
$('#txtStreetName').val('Street / Society Name');
}
}
function setHouseNoValue()
{
var flatNo = $('#txtFlatNo').val();
if(flatNo == '' || flatNo == 'Flat / House No.')
{
$('#txtFlatNo').val('');
}
}
function removeHouseNoValue()
{
var flatNo = $('#txtFlatNo').val();
var flatNo = $('#txtFlatNo').val();
if(flatNo == '' || flatNo == 'Flat / House No.')
{
$('#txtFlatNo').val('Flat / House No.');
}
}
function changeOrderType(orderType)
{
if(orderType == 'P')
{
$('#pickup').css('display','block');
$('#homedelivery').css('display','none');
}
else
{
$('#pickup').css('display','none');
$('#homedelivery').css('display','block');
}
}
function confirmAddressSubmission()
{
var streetName = $('#txtStreetName').val();
var houseNo = $('#txtFlatNo').val();
var error_message = '<h3 style="padding-left:10px;">Error!</h3><p style="padding:10px">';
var error = 0;
if (streetName == 'Street / Society Name' || streetName == '')
{
error_message = error_message + 'Please enter a Street / Society name<br />';
error = 1;
}
if (houseNo == 'Flat / House No.' || houseNo == '')
{
error_message = error_message + 'Please enter a Flat / House No<br />';
error = 1;
}
error_message = error_message+'</p>';
if(error == 1)
{
$.prompt(error_message);
}
else
{
$('#homedeliveryform').submit();
}
}
function readCookie(name) {
var cookieName = name + "=";
var cookieArray = document.cookie.split(';');
for (var i = 0; i < cookieArray.length; i++){
var cookie = cookieArray[i];
while (cookie.charAt(0)==' '){
cookie = cookie.substring(1,cookie.length);
}
if (cookie.indexOf(cookieName) == 0){
return cookie.substring(cookieName.length,cookie.length);
}
}
return null;
}
$(function()
{
$(".modal").fancybox({'autoScale': false, 'width':510, 'height': 270, 'autoDimensions': false, 'scrolling': 'no'});
$('#captcha-submit').click(function()
{
var captcha=$('#captcha-form').val();
var dataString = 'cap='+ captcha;
$.ajax({
type: "POST",
url: "captcha-action.php",
data: dataString,
success: function(html)
{
if(html==1)
{
$.prompt('<h3 style="padding-left:10px;"></h3><p style="padding:10px">Invalid Captcha!<br/>Please enter another word from the image!');
$('#captcha').attr('src','captcha.php?'+Math.random());
}
if(html==0)
{
//$.prompt('<h3 style="padding-left:10px;"></h3><p style="padding:10px">Valid captcha!');
$('.captcha-wrap,.fade-out').fadeOut(500,function(){$('.fade-in').fadeIn();})
}
if(html==2)
{
$.prompt('<h3 style="padding-left:10px;"></h3><p style="padding:10px">Please enter the captcha from the image');
$('#captcha').attr('src','captcha.php?'+Math.random());
}
if(html==3)
{
var t = '<h3 style="padding-left:10px;">Invalid Captcha!</h3><p style="padding:10px">You have reached the maximum attempt. Please try again.</p>';
$.prompt(t, {buttons: {Ok: true},
submit: function(e) {
if (e == true) {
window.location='index.php';
}
}
});
}
}}); return false;
});
var session_id = readCookie('session_id');
window.slot_attempts = 0; window.lastAttempt = 0;
$('#captcha-form').focus();
$('#control').click(function(){
if(window.slot_attempts == 1 && window.lastAttempt == 1){
var wantsToContinue = confirm("Hmmm! Getting Greedy?\nWell you can try only 1 more time and you will lose this coupon. Are you sure you want to try again?\nPress 'OK' to try again or 'Cancel' to exit.");
if(!wantsToContinue){
return;
}
}
if(window.slot_attempts == 735209){
alert("You have run out of your chances now. You may only use this coupon today");
$(this).remove();
$('#result').css('margin-top','75px');
return;
}
var buttonState = $(this).val();
$(this).attr('disabled',true).val('Please wait...');
if(buttonState == 'Try Again' || buttonState == 'Please wait...'){
var i=1;
for(i=1;i<=4;i++)
$('#slot'+i).css('background-position','0px 0px');
}
$.post('process-slot.php',{ session_id : session_id},function(json){
var slot_result = slot_result_desc = ''; var limit = slots = 0;
window.slot_attempts = json['slot_attempts'];
for(slots = 0; slots <= json['slot_result_position'].length; slots++){
var bgPos = json['slot_result_position'][slots];
if(bgPos == null){
bgPos = 0;
}
$('#slot'+(slots+1)).animate( { backgroundPosition:"(0px "+bgPos+"px)"}, { duration: (1+(slots*1)), complete: function(){
limit++; //console.log(limit);
if(limit == 4){
if(slot_result = json['slot_result']){
//console.log('slot result: '+slot_result);
switch(slot_result){
case '1':
slot_result_desc = "JACKPOT!";
window.lastAttempt = 1;
break;
case '2D':
slot_result_desc = "Wooho! That's two doubles for you!";
window.lastAttempt = 1;
break;
case '3':
slot_result_desc = "Congrats! You have landed a double!";
window.lastAttempt = 1;
break;
case '3A':
slot_result_desc = "Whoopee! You have landed a triple!";
window.lastAttempt = 1;
break;
case '4':
slot_result_desc = "Sorry! Try again...";
window.lastAttempt = 1;
break;
default:
slot_result_desc = "You've tried your luck twice already! You may only use the last coupon you won.";
}
}
$('#result').html(slot_result_desc+'<br />');
if(json['coupon_description']){
$('#result').append(json['coupon_description']);
}
if(json['unique_coupon'])
$('#slot-result-coupon').html('Your coupon code is: <strong>'+json['unique_coupon']+'</strong>');
else{
$('#slot-result-coupon').html('');
}
//console.log($('#control').val());
var buttonState = $('#control').val();
if(buttonState == 'Start' || buttonState == 'Please wait...'){
$('#control').val('Try Again').attr('disabled',false);
}
else{
$('#control').attr('disabled',false);
}
} // limit == 4
}}); // slot animate
} // for loop
}); // post
}); // click
}); // doc.ready