Repository navigation
Expand file tree
/
Copy pathgames.php
More file actions
898 lines (813 loc) · 45.9 KB
/
Copy pathgames.php
File metadata and controls
898 lines (813 loc) · 45.9 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
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
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
<?php
/*
Plugin Name: Games
Plugin URI: http://critic.net/wp-plugin/
Description: Display up to 83 Free Flash Games in your website easily using unique short codes. Action,Adventure,Arcade,Skill,Sports Games & plenty more.
Author: Critic Games
Version: 2.7.1
Author URI: http://critic.net/wp-plugin/
*/
add_shortcode('tetris', 'tetris');
add_shortcode('hulksmashup', 'hulksmashup');
add_shortcode('ironman2', 'ironman2');
add_shortcode('powerrangersdino', 'powerrangersdino');
add_shortcode('supermanmetropolis', 'supermanmetropolis');
add_shortcode('angrybirdsspace', 'angrybirdsspace');
add_shortcode('goalkeeper', 'goalkeeper');
add_shortcode('transformersprestige', 'transformersprestige');
add_shortcode('penaltyshootout2012', 'penaltyshootout2012');
add_shortcode('minionrush', 'minionrush');
add_shortcode('jungleshooter', 'jungleshooter');
add_shortcode('escapingtheprison', 'escapingtheprison');
add_shortcode('centrecourt', 'centrecourt');
add_shortcode('bubbleshooter', 'bubbleshooter');
add_shortcode('bmxmaster', 'bmxmaster');
add_shortcode('badpiggiesonline', 'badpiggiesonline');
add_shortcode('supermarioland', 'supermarioland');
add_shortcode('supermarioworld', 'supermarioworld');
add_shortcode('supermariobros', 'supermariobros');
add_shortcode('backyardsports', 'backyardsports');
add_shortcode('baseballteam', 'baseballteam');
add_shortcode('bicyclerun', 'bicyclerun');
add_shortcode('billiards', 'billiards');
add_shortcode('bmxextreme', 'bmxextreme');
add_shortcode('constructionbike', 'constructionbike');
add_shortcode('crescentsol', 'crescentsol');
add_shortcode('freecellgrey', 'freecellgrey');
add_shortcode('lakefishing', 'lakefishing');
add_shortcode('courtbasketbal', 'courtbasketbal');
add_shortcode('lightning', 'lightning');
add_shortcode('pinch2', 'pinch2');
add_shortcode('snooker', 'snooker');
add_shortcode('solcollection', 'solcollection');
add_shortcode('spidersol', 'spidersol');
add_shortcode('sprinter', 'sprinter');
add_shortcode('superbikex', 'superbikex');
add_shortcode('tablehockey', 'tablehockey');
add_shortcode('ultimatebaseball', 'ultimatebaseball');
add_shortcode('worldcuppenalty', 'worldcuppenalty');
function tetris(){
?>
<center><p><iframe name="Critic.net Hulk Smash Up" src="http://critic.net/game-tetris" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><small>Tetris game hosted at <a href="http://critic.net/tetris/">http://critic.net/tetris/</a></small>.</div>' . "\n";
}
}
function hulksmashup(){
?>
<center><p><iframe name="Critic.net Hulk Smash Up" src="http://critic.net/game-hulk-smash-up" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><small>Hulk Smash Up hosted at <a href="http://critic.net/hulk-smash-up/">http://critic.net/hulk-smash-up/</a></small>.</div>' . "\n";
}
}
function ironman2(){
?>
<center><p><iframe name="Critic.net Iron Man 2" src="http://critic.net/game-iron-man-2" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;"><small>Iron Man 2 hosted at <a href="http://critic.net/iron-man-2/">http://critic.net/iron-man-2/</a></small>.</div>' . "\n";
}
}
function powerrangersdino(){
?>
<center><p><iframe name="Critic.net Power Rangers Dino Thunder" src="http://critic.net/game-power-rangers-dino-thunder" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><center><small>Power Rangers Dino Thunder is hosted at <a href="http://critic.net/power-rangers-dino-thunder/">http://critic.net/power-rangers-dino-thunder/</a></small>.</center></p>' . "\n";
}
}
function supermanmetropolis(){
?>
<center><p><iframe name="Critic.net Superman Metropolis Defender" src="http://critic.net/game-superman-metropolis-defender" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;"><small>Superman Metropolis Defender hosted by <a href="http://critic.net/superman-metropolis-defender/">http://critic.net/superman-metropolis-defender/</a></small>.</div>' . "\n";
}
}
function angrybirdsspace(){
?>
<center><p><iframe name="Critic.net Angry Birds Space" src="http://critic.net/game-angry-birds-space" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Angry Birds Space - <a href="http://critic.net/angry-birds-space/">http://critic.net/angry-birds-space/</a>.</div>' . "\n";
}
}
function escapingtheprison(){
?>
<center><p><iframe name="Critic.net Escaping the Prison" src="http://critic.net/game-escaping-the-prison" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Escaping the prison Game - <a href="http://critic.net/escaping-the-prison/">http://critic.net/escaping-the-prison/</a>.</div>' . "\n";
}
}
function centrecourt(){
?>
<center><p><iframe name="Critic.net Centre Court" src="http://critic.net/game-centre-court" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Centre Court Game by <a href="http://critic.net/centre-court/">http://critic.net/centre-court/</a>.</div>' . "\n";
}
}
function bubbleshooter(){
?>
<center><p><iframe name="Critic.net Bubble Shooter" src="http://critic.net/game-bubble-shooter" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Bubble Shooter by <a href="http://critic.net/bubble-shooter/">http://critic.net/bubble-shooter/</a>.</div>' . "\n";
}
}
function bmxmaster(){
?>
<center><p><iframe name="Critic.net BMX Master" src="http://critic.net/game-bmx-master" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">BMX Master by <a href="http://critic.net/bmx-master/">http://critic.net/bmx-master/</a>.</div>' . "\n";
}
}
function badpiggiesonline(){
?>
<center><p><iframe name="Critic.net Bad Piggies Online" src="http://critic.net/game-bad-piggies-online" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Bad piggies online from <a href="http://critic.net/bad-piggies-online/">http://critic.net/bad-piggies-online/</a>.</div>' . "\n";
}
}
function goalkeeper(){
?>
<center><p><iframe name="Critic.net GoalKeeper" src="http://critic.net/game-goalkeeper" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">GoalKeeper Game - <a href="http://critic.net/goalkeeper/">http://critic.net/goalkeeper/</a>.</div>' . "\n";
}
}
function transformersprestige(){
?>
<center><p><iframe name="Critic.net Transformers Prestige" src="http://critic.net/game-transformers-prestige" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Transformers Prestige - <a href="http://critic.net/transformers-prestige/">http://critic.net/transformers-prestige/</a>.</div>' . "\n";
}
}
function penaltyshootout2012(){
?>
<center><p><iframe name="Critic.net Penalty Shootout" src="http://critic.net/game-penalty-shootout-2012" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Penalty Shootout 2012 - <a href="http://critic.net/penalty-shootout-2012/">http://critic.net/penalty-shootout-2012/</a>.</div>' . "\n";
}
}
function minionrush(){
?>
<center><p><iframe name="Critic.net Minion Rush" src="http://critic.net/game-minion-rush" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;">Minion Rush Game : <a href="http://critic.net/minion-rush/">http://critic.net/minion-rush/</a>.</div>' . "\n";
}
}
function jungleshooter(){
?>
<center><p><iframe name="Critic.net Jungle Shooter" src="http://critic.net/game-jungle-shooter" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Jungle Shooter game - <a href="http://critic.net/jungle-shooter/">http://critic.net/jungle-shooter/</a>.</div>' . "\n";
}
}
function supermarioland(){
?>
<center><p><iframe name="Critic.net Super Mario Land" src="http://critic.net/game-super-mario-land" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Super Mario Land via <a href="http://critic.net/super-mario-land/">http://critic.net/super-mario-land/</a>.</div>' . "\n";
}
}
function supermariobros(){
?>
<center><p><iframe name="Critic.net Super Mario Bros" src="http://critic.net/game-super-mario-bros" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><small>Super mario bros game hosted at <a href="http://critic.net/super-mario-bros/">http://critic.net/super-mario-bros/</a></small>.</div>' . "\n";
}
}
function supermarioworld(){
?>
<center><p><iframe name="Critic.net Super Mario World" src="http://critic.net/game-super-mario-world" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;">Super Mario World Game - <a href="http://critic.net/super-mario-world/">http://critic.net/super-mario-world/</a>.</div>' . "\n";
}
}
function backyardsports(){
?>
<center><p><iframe name="Critic.net Backyard Sports" src="http://critic.net/game-backyard-sports" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p align="center">Arcade Game hosted at <a href="http://critic.net/backyard-sports/">http://critic.net/backyard-sports/</a>.</p>' . "\n";
}
}
function baseballteam(){
?>
<center><p><iframe name="Critic.net Baseball Team" src="http://critic.net/game-baseball-team" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p>Backyard Sports hosted in <a href="http://critic.net/backyard-sports/">http://critic.net/backyard-sports/</a></p>' . "\n";
}
}
function bicyclerun(){
?>
<center><p><iframe name="Critic.net Bicycle Run" src="http://critic.net/game-bicycle-run" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div>Bicycle run game - <a href="http://critic.net/bicycle-run/" target="_blank">http://critic.net/bicycle-run/</a>.</div>' . "\n";
}
}
function billiards(){
?>
<center><p><iframe name="Critic.net Billiards" src="http://critic.net/game-billiards" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<strong><center><a href="http://critic.net/billiards/">Billiards Master Pro by Critic.net</a>.</center></strong>' . "\n";
}
}
function bmxextreme(){
?>
<center><p><iframe name="Critic.net BMX Extreme" src="http://critic.net/game-bmx-extreme" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/bmx-extreme/" target="_blank">http://critic.net/bmx-extreme/</a>.</div>' . "\n";
}
}
function lakefishing(){
?>
<center><p><iframe name="Critic.net Lake Fishing" src="http://critic.net/game-lake-fishing" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p align="center">Game hosted by <a href="http://critic.net/lake-fishing/">http://critic.net/lake-fishing/</a> - Lake Fishing.</p>' . "\n";
}
}
function freecellgrey(){
?>
<center><p><iframe name="Critic.net Freecell Grey" src="http://critic.net/game-freecell-grey" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p>Game provided by <a href="http://critic.net/freecell-grey/">http://critic.net/freecell-grey/</a></p>' . "\n";
}
}
function crescentsol(){
?>
<center><p><iframe name="Critic.net Crescent Solitaire" src="http://critic.net/game-crescent-solitaire" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/crescent-solitaire/" title="Critic Games">http://critic.net/crescent-solitaire/</a></div>' . "\n";
}
}
function constructionbike(){
?>
<center><p><iframe name="Critic.net Construction Bike" src="http://critic.net/game-construction-bike" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Credits: <a href="http://critic.net/construction-bike/">Visit http://critic.net/construction-bike/</a>.</div>' . "\n";
}
}
function worldcuppenalty(){
?>
<center><p><iframe name="Critic.net World Cup Penalty" src="http://critic.net/game-world-cup-penalty" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div>Source: <a href="http://critic.net/world-cup-penalty/" target="_blank">http://critic.net/world-cup-penalty/</a>.</div>' . "\n";
}
}
function ultimatebaseball(){
?>
<center><p><iframe name="Critic.net Ultimate Baseball" src="http://critic.net/game-ultimate-baseball" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div name="link">Ultimate Baseball game - <a href="http://critic.net/ultimate-baseball/">http://critic.net/ultimate-baseball/</a>.</div>' . "\n";
}
}
function tablehockey(){
?>
<center><p><iframe name="Critic.net Table Hockey" src="http://critic.net/game-table-hockey" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p>Table Hockey - <a href="http://critic.net/table-hockey/" target="_blank">http://critic.net/table-hockey/</a>.</p>' . "\n";
}
}
function superbikex(){
?>
<center><p><iframe name="Critic.net Super Bike X" src="http://critic.net/game-super-bike-x" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/super-bike-x/" target="_blank">http://critic.net/super-bike-x/</a>.</p>' . "\n";
}
}
function sprinter(){
?>
<center><p><iframe name="Critic.net Sprinter" src="http://critic.net/game-sprinter" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p>Game provided by <a href="http://critic.net/sprinter/" target="_blank">Critic.net/sprinter/</a>.</p>' . "\n";
}
}
function spidersol(){
?>
<center><p><iframe name="Critic.net Spider Solitaire" src="http://critic.net/game-spider-solitaire" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Spider solitaire game : <a href="http://www.critic.net/spider-solitaire/">Critic.net/spider-solitaire/</a>.</div>' . "\n";
}
}
function solcollection(){
?>
<center><p><iframe name="Critic.net Solitaire Collection" src="http://critic.net/game-solitaire-collection" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Free solitaire by <a href="http://critic.net/solitaire-collection/">http://critic.net/solitaire-collection/</a>.</div>' . "\n";
}
}
function snooker(){
?>
<center><p><iframe name="Critic.net Snooker" src="http://critic.net/game-snooker" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;">The snooker game is hosted at <a href="http://critic.net/snooker/">http://critic.net/snooker/</a>.</div>' . "\n";
}
}
function pinch2(){
?>
<center><p><iframe name="Critic.net Pinch Hitter 2" src="http://critic.net/game-pinch-hitter-2" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;">Pinch Hitter 2 free game by <a href="http://critic.net/pinch-hitter-2/">http://critic.net/pinch-hitter-2/</a>.</div>' . "\n";
}
}
function lightning(){
?>
<center><p><iframe name="Critic.net Lightning" src="http://critic.net/game-lightning" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Lightning game hosted free at <a href="http://critic.net/lightning/" title="Games at Critic.net">http://critic.net/lightning/</a>.</div>' . "\n";
}
}
function courtbasketbal(){
?>
<center><p><iframe name="Critic.net Court Basketball" src="http://critic.net/game-court-basketball" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;">Court Basketball, <a href="http://critic.net/court-basketball/" title="Free online games at Critic.net">Critic.net/court-basketball/</a>.</div>' . "\n";
}
}
add_shortcode('pacman', 'pacman');
add_shortcode('cartwisteddreams', 'cartwisteddreams');
add_shortcode('pokemon1', 'pokemon1');
add_shortcode('chess', 'chess');
add_shortcode('backgammon', 'backgammon');
add_shortcode('batmandefendgotham', 'batmandefendgotham');
add_shortcode('codcrossfire', 'codcrossfire');
add_shortcode('falltimesudoku', 'falltimesudoku');
add_shortcode('ninjabattle3', 'ninjabattle3');
add_shortcode('mahjong', 'mahjong');
add_shortcode('happywheels', 'happywheels');
add_shortcode('dragonball1', 'dragonball1');
add_shortcode('pharaohking', 'pharaohking');
add_shortcode('onceuponatime', 'onceuponatime');
add_shortcode('lost', 'lost');
add_shortcode('rockstar', 'rockstar');
add_shortcode('gladiator', 'gladiator');
add_shortcode('boomanji', 'boomanji');
add_shortcode('safarisam', 'safarisam');
add_shortcode('heist', 'heist');
add_shortcode('vikingage', 'vikingage');
add_shortcode('threewishes', 'threewishes');
add_shortcode('ghoulsgold', 'ghoulsgold');
add_shortcode('royalreels', 'royalreels');
add_shortcode('safarisam', 'safarisam');
add_shortcode('thetruesheriff', 'thetruesheriff');
add_shortcode('tycoons', 'tycoons');
add_shortcode('afternightfalls', 'afternightfalls');
add_shortcode('underthebed', 'underthebed');
add_shortcode('atthecopa', 'atthecopa');
add_shortcode('gypsyrose', 'gypsyrose');
add_shortcode('puppylove', 'puppylove');
add_shortcode('anightinparis', 'anightinparis');
add_shortcode('houseoffun', 'houseoffun');
add_shortcode('madscientist', 'madscientist');
add_shortcode('trueillusions', 'trueillusions');
add_shortcode('governorofpoker2', 'governorofpoker2');
add_shortcode('rainforestsolitaire', 'rainforestsolitaire');
add_shortcode('twistedtennis', 'twistedtennis');
add_shortcode('spiderman3', 'spiderman3');
add_shortcode('sonic1', 'sonic1');
add_shortcode('tomandjerrypuzzle', 'tomandjerrypuzzle');
function chess(){
?>
<center><p><iframe name="Critic.net Chess" src="http://critic.net/game-chess" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div>Free Chess by <a href="http://critic.net/chess/" target="_blank">http://critic.net/chess/</a>.</div>' . "\n";
}
}
function backgammon(){
?>
<center><p><iframe name="Critic.net Backgammon" src="http://critic.net/game-backgammon" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p align="right"><a href="http://critic.net/backgammon/" target="_blank">http://critic.net/backgammon/</a></p>' . "\n";
}
}
function batmandefendgotham(){
?>
<center><p><iframe name="Critic.net Batman Defend Gotham" src="http://critic.net/game-batman-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<center><a href="http://critic.net/batman/">http://critic.net/batman/</a> by Critic.</center>' . "\n";
}
}
function codcrossfire(){
?>
<center><p><iframe name="Critic.net Call of duty Crossfire" src="http://critic.net/game-cod-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;">Game credits : <a href="http://critic.net/call-of-duty-crossfire/">http://critic.net/call-of-duty-crossfire/</a></div>' . "\n";
}
}
function falltimesudoku(){
?>
<center><p><iframe name="Critic.net" src="http://critic.net/game-sudoko-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/sudoku/">http://critic.net/sudoku/</a>.</p>' . "\n";
}
}
function ninjabattle3(){
?>
<center><p><iframe name="Critic.net" src="http://critic.net/game-ninja-3" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p align="center">Game source: <a href="http://critic.net/ninja-battle-3/">http://critic.net/ninja-battle-3/</a></div>' . "\n";
}
}
function mahjong(){
?>
<center><p><iframe name="Critic.net Mahjong" src="http://critic.net/game-mahjong" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p align="center"><a href="http://critic.net/mahjong/">http://critic.net/mahjong/</a></div>' . "\n";
}
}
function happywheels(){
?>
<center><p><iframe name="Critic.net Happy Wheels" src="http://critic.net/game-happy-wheels" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div align="right"><a href="http://critic.net/happy-wheels/">http://critic.net/happy-wheels/</a></div>' . "\n";
}
}
function dragonball1(){
?>
<center><p><iframe name="Critic.net Dragon Ball 1" src="http://critic.net/game-dbz-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/dragon-ball-1/">http://critic.net/dragon-ball-1/</a></div>' . "\n";
}
}
function pacman(){
?>
<center><p><iframe name="Critic.net Pacman" src="http://critic.net/game-pacman" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/pacman/">http://critic.net/pacman/</a></div>' . "\n";
}
}
function cartwisteddreams(){
?>
<center><p><iframe name="Critic.net Car Twisted Dreams" src="http://critic.net/game-car-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/car-twisted-dreams/">http://critic.net/car-twisted-dreams/</a>.</div>' . "\n";
}
}
function pokemon1(){
?>
<center><p><iframe name="Critic.net Pokemon 1" src="http://critic.net/game-pokemon-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/pokemon/" target="_blank">http://critic.net/pokemon/</a></p>' . "\n";
}
}
function governorofpoker2(){
?>
<center><p><iframe name="Critic.net Governor 2" src="http://critic.net/game-governor-2" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/texas-hold-em-poker/">http://critic.net/texas-hold-em-poker/</a>.</p>' . "\n";
}
}
function rainforestsolitaire(){
?>
<center><p><iframe name="Critic.net Rainforest Solitaire" src="http://critic.net/game-solitaire-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/rainforest-solitaire/">http://critic.net/rainforest-solitaire/</a></p>' . "\n";
}
}
function twistedtennis(){
?>
<center><p><iframe name="Critic.net" src="http://critic.net/game-twisted-tennis" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<center>Twisted Tennis = <a href="http://critic.net/twisted-tennis/">http://critic.net/twisted-tennis/</a>.</div>' . "\n";
}
}
function spiderman3(){
?>
<center><p><iframe name="Critic.net Spider Man 3" src="http://critic.net/game-spider-man-3" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/rainforest-solitaire/">http://critic.net/rainforest-solitaire/</a>.</p>' . "\n";
}
}
function sonic1(){
?>
<center><p><iframe name="Critic.net Sonic 1" src="http://critic.net/game-sonic-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/sonic/">http://critic.net/sonic/</a>.</div>' . "\n";
}
}
function tomandjerrypuzzle(){
?>
<center><p><iframe name="Critic.net Tom 1" src="http://critic.net/game-tom-1" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/tom-and-jerry-puzzle/">http://critic.net/tom-and-jerry-puzzle/</a></div>' . "\n";
}
}
function safarisam(){
?>
<center><p><iframe name="Safari Sam" src="http://critic.net/game-safari-sam" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/safari-sam/">http://critic.net/safari-sam/</a></div>' . "\n";
}
}
function thetruesheriff(){
?>
<center><p><iframe name="The True Sheriff" src="http://critic.net/game-the-true-sheriff" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/the-true-sheriff/">The True Sheriff</a></p>' . "\n";
}
}
function tycoons(){
?>
<center><p><iframe name="Tycoons" src="http://critic.net/game-tycoons" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/tycoons/">http://critic.net/tycoons/</a></div>' . "\n";
}
}
function afternightfalls(){
?>
<center><p><iframe name="After Night Falls" src="http://critic.net/game-after-night-falls" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<center><a href="http://critic.net/after-night-falls/">http://critic.net/after-night-falls/</a></center>' . "\n";
}
}
function underthebed(){
?>
<center><p><iframe name="Under The Bed" src="http://critic.net/game-under-the-bed" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/under-the-bed/">http://critic.net/under-the-bed/</a></div>' . "\n";
}
}
function atthecopa(){
?>
<center><p><iframe name="At the Copa" src="http://critic.net/game-at-the-copa" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/at-the-copa/">http://critic.net/at-the-copa/</a></p>' . "\n";
}
}
function gypsyrose(){
?>
<center><p><iframe name="Gypsy Rose" src="http://critic.net/game-gypsy-rose" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/gypsy-rose/">http://critic.net/gypsy-rose/</a></p>' . "\n";
}
}
function houseoffun(){
?>
<center><p><iframe name="House of fun" src="http://critic.net/game-house-of-fun" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/house-of-fun/">http://critic.net/house-of-fun/</a></div>' . "\n";
}
}
function madscientist(){
?>
<center><p><iframe name="Mad Scientist" src="http://critic.net/game-mad-scientist" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/mad-scientist/">http://critic.net/mad-scientist/</a>.</div>' . "\n";
}
}
function puppylove(){
?>
<center><p><iframe name="Puppy Love" src="http://critic.net/game-puppy-love" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/puppy-love/">http://critic.net/puppy-love/</a></div>' . "\n";
}
}
function trueillusions(){
?>
<center><p><iframe name="True Illusions" src="http://critic.net/game-true-illusions" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/true-illusions/">http://critic.net/true-illusions/</a>.</div>' . "\n";
}}
function anightinparis(){
?>
<center><p><iframe name="A night in paris" src="http://critic.net/game-a-night-in-paris" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/a-night-in-paris/">http://critic.net/a-night-in-paris/</a></div>' . "\n";
}}
function critic_plugin_menu(){
add_options_page('Critic Options', 'Critic Games', 'manage_options', 'critic-plugin-menu', 'critic_plugin_options');
}
add_action('admin_menu','critic_plugin_menu');
function critic_plugin_options(){
include('settings.php');
}
function pharaohking(){
?>
<center><p><iframe name="Pharaoh King" src="http://critic.net/game-pharaoh-king" style="background-color:#000" width="100%" height="550" marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;"><a href="http://critic.net/pharaoh-king/">http://critic.net/pharaoh-king/</a></div>' . "\n";
}
}
function onceuponatime(){
?>
<center><p><iframe name="Once upon a time" src="http://critic.net/game-once-upon-a-time" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><a href="http://critic.net/once-upon-a-time/">http://critic.net/once-upon-a-time/</a></div>' . "\n";
}
}
function lost(){
?>
<center><p><iframe name="Lost" src="http://critic.net/game-lost" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;"><a href="http://critic.net/lost/">http://critic.net/lost/</a></div>' . "\n";
}
}
function rockstar(){
?>
<center><p><iframe name="Rock Star" src="http://critic.net/game-rock-star" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><a href="http://critic.net/rock-star/">http://critic.net/rock-star/</a></div>' . "\n";
}
}
function gladiator(){
?>
<center><p><iframe name="Gladiator" src="http://critic.net/game-gladiator" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: right;"><a href="http://critic.net/gladiator/">http://critic.net/gladiator/</a></div>' . "\n";
}
}
function boomanji(){
?>
<center><p><iframe name="Boomanji" src="http://critic.net/game-boomanji" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: left;"><a href="http://critic.net/boomanji/">http://critic.net/boomanji/</a>.</div>' . "\n";
}
}
function heist(){
?>
<center><p><iframe name="Heist" src="http://critic.net/game-heist" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div style="text-align: center;"><a href="http://critic.net/heist/">http://critic.net/heist/</a></div>' . "\n";
}
}
function vikingage(){
?>
<center><p><iframe name="Viking Age" src="http://critic.net/game-viking-age" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/viking-age/">http://critic.net/viking-age/</a></p>' . "\n";
}
}
function threewishes(){
?>
<center><p><iframe name="Three Wishes" src="http://critic.net/game-three-wishes" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<p><a href="http://critic.net/three-wishes/" target="_blank">http://critic.net/three-wishes/</a></p>' . "\n";
}
}
function ghoulsgold(){
?>
<center><p><iframe name="Ghouls Gold" src="http://critic.net/game-ghouls-gold" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/ghouls-gold/">http://critic.net/ghouls-gold/</a></div>' . "\n";
}
}
function royalreels(){
?>
<center><p><iframe name="Royal Reels" src="http://critic.net/game-royal-reels" style="background-color:#000"width="100%" height="550"marginwidth="0" marginheight="0" scrolling="no" border="0" frameborder="0"></iframe></p></center>
<?php
if (wgames_Main::$settings['wgames_author_linking'] == '1') {
echo '<div><a href="http://critic.net/royal-reels/">http://critic.net/royal-reels/</a></div>' . "\n";
}}
// Include Files
$files = array(
'/classes/wgames-module',
'/classes/wgames-main',
'/classes/wgames-show',
'/classes/wgames-setting',
'/includes/admin-notice-helper/admin-notice-helper'
);
foreach ($files as $file) {
$p = plugin_dir_path( __FILE__ ).$file.'.php';
if (file_exists($p)) {
require_once $p;
}
}
if ( class_exists( 'wgames_Main' ) ) {
wgames_Main::get_instance();
}
function games_register_assets() {
$js = plugins_url('assets/js/pacman2.js', __FILE__);
$css = plugins_url('assets/css/pacman.css', __FILE__);
$ver_js = @filemtime(plugin_dir_path(__FILE__) . 'assets/js/pacman2.js') ?: time();
$ver_css = @filemtime(plugin_dir_path(__FILE__) . 'assets/css/pacman.css') ?: time();
wp_register_script('games-pacman', $js, array(), $ver_js, false);
wp_register_style('games-pacman', $css, array(), $ver_css);
}
add_action('init', 'games_register_assets');
function games_pacman_shortcode($atts = array()) {
wp_enqueue_script('games-pacman');
wp_enqueue_style('games-pacman');
$id = 'games-pacman-canvas-' . wp_rand(1, 9999999);
ob_start();
echo '<div class="games-pacman">';
echo '<canvas id="' . esc_attr($id) . '" width="448" height="496"></canvas>';
echo '<div class="games-pacman-ui"><span class="label">Score</span> <span class="score" id="' . esc_attr($id) . '-score">0</span></div>';
echo '</div>';
echo '<script>if(window.GamesPacman&&window.GamesPacman.start){window.GamesPacman.start("#' . esc_js($id) . '","#' . esc_js($id) . '-score");}</script>';
return ob_get_clean();
}
add_shortcode('games_pacman', 'games_pacman_shortcode');
function games_register_pacman_route() {
add_rewrite_tag('%games_pacman%', '1');
add_rewrite_rule('^games/pacman/?$', 'index.php?games_pacman=1', 'top');
}
add_action('init', 'games_register_pacman_route');
function games_query_vars($vars) {
$vars[] = 'games_pacman';
return $vars;
}
add_filter('query_vars', 'games_query_vars');
function games_pacman_template_redirect() {
if (get_query_var('games_pacman')) {
status_header(200);
nocache_headers();
echo '<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">';
wp_enqueue_style('games-pacman');
wp_enqueue_script('games-pacman');
wp_print_styles(array('games-pacman'));
wp_print_scripts(array('games-pacman'));
echo '</head><body style="margin:0;padding:20px;background:#111;color:#fff;font-family:system-ui, sans-serif">';
echo '<h1 style="margin:0 0 12px 0;font-size:18px">Games: Pacman</h1>';
$id = 'games-pacman-canvas-' . wp_rand(1, 9999999);
echo '<div class="games-pacman">';
echo '<canvas id="' . esc_attr($id) . '" width="448" height="496"></canvas>';
echo '<div class="games-pacman-ui"><span class="label">Score</span> <span class="score" id="' . esc_attr($id) . '-score">0</span></div>';
echo '</div>';
echo '<script>(function(){function s(){if(window.GamesPacman&&window.GamesPacman.start){window.GamesPacman.start("#' . esc_js($id) . '","#' . esc_js($id) . '-score");} else {setTimeout(s,50);}} s();})();</script>';
echo '</body></html>';
exit;
}
}
add_action('template_redirect', 'games_pacman_template_redirect');
if (!function_exists('games_activate')) {
function games_activate() {
games_register_pacman_route();
flush_rewrite_rules();
}
register_activation_hook(__FILE__, 'games_activate');
}
?>