forked from Requiao/vmundus.net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
reset_game.html
518 lines (357 loc) · 13.6 KB
/
reset_game.html
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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
<?php
session_start();
include('connect_db.php');
$user_id = $_SESSION['user_id'];
if($user_id != 1) {
exit('error');
}
exit('error');
$query = "DELETE FROM assign_bank_manager";
$conn->query($query);
$query = "DELETE FROM assign_ministers_law";
$conn->query($query);
$query = "DELETE FROM assign_titles";
$conn->query($query);
$query = "DELETE FROM average_product_price";
$conn->query($query);
$query = "DELETE FROM bank_currency";
$conn->query($query);
$query = "DELETE FROM bank_product";
$conn->query($query);
$query = "DELETE FROM bank_details";
$conn->query($query);
$query = "DELETE FROM battle_budget";
$conn->query($query);
$query = "DELETE FROM battle_user_damage";
$conn->query($query);
$query = "DELETE FROM battles";
$conn->query($query);
$query = "DELETE FROM black_market";
$conn->query($query);
$query = "DELETE FROM black_market_history";
$conn->query($query);
$query = "DELETE FROM bought_workers";
$conn->query($query);
$query = "DELETE FROM budget_allocation";
$conn->query($query);
$query = "UPDATE building_policy SET price = 0.25";
$conn->query($query);
$query = "DELETE FROM building_policy_law";
$conn->query($query);
$query = "DELETE FROM change_capital_region";
$conn->query($query);
$query = "DELETE FROM change_credit_deposit_rate";
$conn->query($query);
$query = "DELETE FROM change_gov_salary";
$conn->query($query);
$query = "DELETE FROM change_gov_term_length";
$conn->query($query);
$query = "DELETE FROM change_region_owner";
$conn->query($query);
$query = "DELETE FROM change_responsibilities";
$conn->query($query);
$query = "DELETE FROM change_timezone";
$conn->query($query);
$query = "DELETE FROM change_welcome_message";
$conn->query($query);
$query = "DELETE FROM citizenship_change";
$conn->query($query);
$query = "DELETE FROM citizenship_change_history";
$conn->query($query);
$query = "DELETE FROM collected_products_user_research";
$conn->query($query);
$query = "DELETE FROM collected_weekly_mission_rewards";
$conn->query($query);
$query = "DELETE FROM company_market";
$conn->query($query);
$query = "DELETE FROM company_market_history";
$conn->query($query);
$query = "UPDATE congress_details SET salary = 0";
$conn->query($query);
$query = "UPDATE congress_details SET elected = CURRENT_DATE";
$conn->query($query);
$query = "DELETE FROM congress_elections";
$conn->query($query);
$query = "DELETE FROM congress_members";
$conn->query($query);
$query = "DELETE FROM core_creation";
$conn->query($query);
$query = "DELETE FROM corporation_building";
$conn->query($query);
$query = "DELETE FROM corporation_product";
$conn->query($query);
$query = "DELETE FROM corporation_members";
$conn->query($query);
$query = "DELETE FROM corporation_user_invested";
$conn->query($query);
$query = "DELETE FROM corporation_user_products";
$conn->query($query);
$query = "DELETE FROM corporations";
$conn->query($query);
$query = "UPDATE country_congress_seats SET seats = 10";
$conn->query($query);
$query = "DELETE FROM country_core_regions";
$conn->query($query);
$query = "SELECT region_id, rightful_owner FROM regions";
$result = $conn->query($query);
while($row = $result->fetch_row()) {
list($region_id, $rightful_owner) = $row;
$query = "INSERT INTO country_core_regions VALUES('$region_id', '$rightful_owner', 2160)";
$conn->query($query);
}
$query = "DELETE FROM country_currency";
$conn->query($query);
$query = "DELETE FROM country_current_population";
$conn->query($query);
$query = "DELETE FROM country_daily_income";
$conn->query($query);
$query = "UPDATE country_government SET user_id = NULL";
$conn->query($query);
$query = "UPDATE country_government SET salary = 0";
$conn->query($query);
$query = "UPDATE country_government SET elected = CURRENT_DATE";
$conn->query($query);
$query = "DELETE FROM country_government_history";
$conn->query($query);
$query = "DELETE FROM country_law_info";
$conn->query($query);
$query = "DELETE FROM country_orders";
$conn->query($query);
$query = "DELETE FROM country_people_born";
$conn->query($query);
$query = "DELETE FROM country_people_die";
$conn->query($query);
$query = "DELETE FROM country_product";
$conn->query($query);
$query = "DELETE FROM country_product_income";
$conn->query($query);
$query = "DELETE FROM country_unions";
$conn->query($query);
$query = "DELETE FROM country_wars";
$conn->query($query);
$query = "DELETE FROM create_new_union";
$conn->query($query);
$query = "DELETE FROM currency_purchase_history";
$conn->query($query);
$query = "DELETE FROM day_count";
$conn->query($query);
$query = "INSERT INTO day_count VALUES(1, CURRENT_DATE)";
$conn->query($query);
$query = "DELETE FROM declare_war";
$conn->query($query);
$query = "DELETE FROM defence_agreements";
$conn->query($query);
$query = "DELETE FROM defence_const_in_process";
$conn->query($query);
$query = "DELETE FROM donated_war_resources_history";
$conn->query($query);
$query = "DELETE FROM election_info";
$conn->query($query);
$query = "DELETE FROM foreign_building_policy";
$conn->query($query);
$query = "DELETE FROM foreign_building_policy_law";
$conn->query($query);
$query = "DELETE FROM gold_market_history";
$conn->query($query);
$query = "DELETE FROM government_country_responsibilities";
$conn->query($query);
$query = "SELECT responsibility_id FROM political_responsibilities";
$result = $conn->query($query);
$x = 0;
$responsibilities_arr = array();
while($row = $result->fetch_row()) {
list($responsibility_id) = $row;
$responsibilities_arr[$x] = $responsibility_id;
$x++;
}
$query = "SELECT country_id FROM country";
$result = $conn->query($query);
$x = 0;
$countries = array();
while($row = $result->fetch_row()) {
list($country_id) = $row;
$countries[$x] = $country_id;
$x++;
}
for($c = 0; $c < count($countries); $c++) {
for($a = 0; $a < count($responsibilities_arr); $a++) {
$query = "INSERT INTO government_country_responsibilities VALUES('$countries[$c]', 1,
'$responsibilities_arr[$a]', TRUE, TRUE)";
$conn->query($query);
}
}
for($c = 0; $c < count($countries); $c++) {
for($a = 0; $a < count($responsibilities_arr); $a++) {
$query = "INSERT INTO government_country_responsibilities VALUES('$countries[$c]', 3,
'$responsibilities_arr[$a]', TRUE, TRUE)";
$conn->query($query);
}
}
$query = "UPDATE government_term_length SET term = 20";
$conn->query($query);
$query = "DELETE FROM hired_workers";
$conn->query($query);
$query = "UPDATE income_tax SET tax = 10";
$conn->query($query);
$query = "DELETE FROM job_market";
$conn->query($query);
$query = "DELETE FROM join_leave_union";
$conn->query($query);
$query = "DELETE FROM last_bank_changes";
$conn->query($query);
$query = "DELETE FROM ministry_budget";
$conn->query($query);
$query = "DELETE FROM ministry_product";
$conn->query($query);
$query = "DELETE FROM monetary_market";
$conn->query($query);
$query = "DELETE FROM new_production_tax_law";
$conn->query($query);
$query = "DELETE FROM new_tax_law";
$conn->query($query);
$query = "DELETE FROM new_union_leader";
$conn->query($query);
$query = "DELETE FROM people";
$conn->query($query);
$query = "DELETE FROM people_purchase_history";
$conn->query($query);
$query = "DELETE FROM person_battle_losses";
$conn->query($query);
$query = "DELETE FROM president_elections";
$conn->query($query);
$query = "DELETE FROM print_money";
$conn->query($query);
$query = "DELETE FROM processing_union_application";
$conn->query($query);
$query = "DELETE FROM processing_union_leader";
$conn->query($query);
$query = "DELETE FROM product_allocation";
$conn->query($query);
$query = "DELETE FROM product_import_law_info";
$conn->query($query);
$query = "DELETE FROM product_import_tax";
$conn->query($query);
$query = "DELETE FROM product_market";
$conn->query($query);
$query = "UPDATE product_production_tax SET tax = 1";
$conn->query($query);
$query = "DELETE FROM product_purchase_history";
$conn->query($query);
$query = "UPDATE product_sale_tax SET tax = 1";
$conn->query($query);
$query = "DELETE FROM product_warehouse";
$conn->query($query);
$query = "UPDATE region_defence_systems SET strength = 10000";
$conn->query($query);
$query = "UPDATE region_defence_systems SET def_loc_id = 1";
$conn->query($query);
$query = "DELETE FROM region_product_productivity";
$conn->query($query);
$query = "DELETE FROM region_roads";
$conn->query($query);
$query = "DELETE FROM remove_country_union";
$conn->query($query);
$query = "DELETE FROM remove_country_union_application";
$conn->query($query);
$query = "DELETE FROM repair_defence_construction";
$conn->query($query);
$query = "DELETE FROM repair_road_const_product";
$conn->query($query);
$query = "DELETE FROM resistance_war_prep";
$conn->query($query);
$query = "DELETE FROM resistance_war_resources";
$conn->query($query);
$query = "DELETE FROM resource_warehouse";
$conn->query($query);
$query = "DELETE FROM sign_defence_agreement";
$conn->query($query);
$query = "DELETE FROM sign_peace_treaty";
$conn->query($query);
$query = "DELETE FROM travel_agreement";
$conn->query($query);
$query = "DELETE FROM travel_agreement_law";
$conn->query($query);
$query = "DELETE FROM unions";
$conn->query($query);
$query = "DELETE FROM user_achievements";
$conn->query($query);
$query = "DELETE FROM user_battle_legend_rewards";
$conn->query($query);
$query = "DELETE FROM user_battle_uses";
$conn->query($query);
$query = "DELETE FROM user_blog_subscribers_rewards";
$conn->query($query);
$query = "DELETE FROM post_views_rewards";
$conn->query($query);
$query = "UPDATE user_born_bar SET born_bar = 0";
$conn->query($query);
$query = "DELETE FROM user_building";
$conn->query($query);
$query = "DELETE FROM user_country_invest_history";
$conn->query($query);
$query = "DELETE FROM user_credit";
$conn->query($query);
$query = "DELETE FROM user_currency";
$conn->query($query);
$query = "DELETE FROM user_currency_bought";
$conn->query($query);
$query = "DELETE FROM user_currency_sold";
$conn->query($query);
$query = "DELETE FROM user_daily_missions";
$conn->query($query);
$query = "DELETE FROM user_deposit";
$conn->query($query);
$query = "DELETE FROM user_hard_worker_rewards";
$conn->query($query);
$query = "DELETE FROM user_level_rewards";
$conn->query($query);
$query = "DELETE FROM user_levels";
$conn->query($query);
$query = "UPDATE user_people_slots SET slot_number = 5";
$conn->query($query);
$query = "DELETE FROM user_product";
$conn->query($query);
$query = "DELETE FROM user_researches";
$conn->query($query);
$query = "DELETE FROM user_rewards";
$conn->query($query);
$query = "DELETE FROM user_timezone_change";
$conn->query($query);
$query = "DELETE FROM user_total_damage";
$conn->query($query);
$query = "DELETE FROM user_warehouse";
$conn->query($query);
$query = "DELETE FROM users_cloning_farms";
$conn->query($query);
$query = "DELETE FROM users_voted";
$conn->query($query);
$query = "DELETE FROM users_voted_for_laws";
$conn->query($query);
$query = "DELETE FROM users_weekly_missions_progress";
$conn->query($query);
$query = "DELETE FROM weekly_missions";
$conn->query($query);
$query = "DELETE FROM weekly_missions_rewards";
$conn->query($query);
$query = "DELETE FROM work_journal";
$conn->query($query);
$query = "DELETE FROM work_quantity";
$conn->query($query);
$query = "DELETE FROM companies";
$conn->query($query);
$query = "UPDATE user_profile SET experience = 0";
$conn->query($query);
$query = "DELETE FROM tutorial_rewards";
$conn->query($query);
$query = "UPDATE regions SET country_id = rightful_owner";
$conn->query($query);
$query = "DELETE FROM country_core_regions";
$conn->query($query);
$query = "SELECT region_id, rightful_owner FROM regions";
$result = $conn->query($query);
while($row = $result->fetch_row()) {
list($region_id, $country_id) = $row;
$query = "INSERT INTO country_core_regions VALUES ('$region_id', '$country_id', 2160)";
$conn->query($query);
}
?>