Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,657
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Uridium

  1. Damn proves how often i actually use the admin side for logs lol but anyway what i was referring to was things like Players Gym Training and other things that dont get logged that players usually do
  2. PLAYER LOGS....... Why do the player logs just stop at cash and crystal transfers ? what could be added so staff can have a birds eye view of every players activities within the game. GANGS.............. Need i say more ? why is the whole concept of the gangs useless. what could be done to improve gameplay for gangs INVENTORY... what can be added to inventory to make it more user freindly. I could be here all day typing things out that annoy me about MCC but the above will suffice for now :)
  3. I thought all scripts on here were free or is it cos i never visit the paid section oops sorry guys :)
  4. Thats is also true Alain but not all Hosts provide users with access to the php.ini file so this i suppose will be just as good
  5. Whats been improved ? CRON AND SCRIPT The cron when run and the time has expired will send members of your gang an outcome message saying either success or failure Ive also added a new feature so users of your gang can view the last 10 Failures Successes as a neat table.. To send a EVENT open cron_hour.php find not cron day as i posted earlier sorry about that event_add("Your Gang's Organised Crime Succeeded. Go here to view the details."); overwrite with   db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='green'>Your Gang Successfully completed A Crime [url='oclog.php?ID=$i'][b]click here[/b][/url] to view the details..</font>\");");   do the same for the Failure event and change colour to red instead of green   db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='red'>Your Gang Failed A Crime [url='oclog.php?ID=$i'][b]click here[/b][/url] to view the details..</font>\");");   UPCOMING MOD Started work on the organised crimes so suers from other gangs can be held hostage or 1 of your own gang mebers held hostage if the crime is a failure. If your gang wins a Gang Crime on an opposing Gang then you can set a Ransom limit for the owner of the opposite gang to pay before their member is released. HOWEVER if your gang and the opposing gang Fail to come to Descision Regarding the member after 24 hours The the Criminal federation steps in and makes the choice for which results in your gang Gaining NO ransom and the opposing side Losing respect for failing to free their comrad ALSO if the opposing gang tries to make a suitable gesture to free their comrad and your gang fails to see reason after 24 hours then Your gang will lose Respect + the Hostage set free and the opposing side keeps their ransom...
  6. I could make you a DHTML version for the buttons and drop downs
  7. calendar Send me the link to your site Via PM please Just so everyone is aware its vital that all the images for the grid doors be placed into the images/xmas/ folder EXCEPT for the main numbered image which must stay in your root folder... ROOT meaning public_html folder
  8. What errors are you getting from the adventgraph.php file ?
  9. heres a little trick to make your SUBMIT BUTTONS become more impresive instead of the standard Button... >>> STANDARD BUTTON for BANK DEPOSITS <input type="submit" value="Deposit"/> >>> IMPROVED BUTTON <input type="submit" value="Deposit All £ or $'.($ir['money']).'" style="font-family: Arial; font-size: 10pt; letter-spacing: 1; color: #333333; border: 1px solid #FFCC33; background-color: #AEAEAE"/> Will give your Buttons a nice coloured EFFECT the AEAEAE is the inner part the 333333 is the outerpart cover or use this CSS is your header button { display:block; text-align:center; background: #AEAEAE; margin: 3px 0px 0px 0px; padding: 3px 10px 3px 10px; font-family: Helvetica, Verdana, Arial; font-size: 12px; border: solid #000000 1px; } then on the submit add <td class="button"> to your pages with submit buttons
  10. Whats the error your getting and also whats it not doing that is should be doing..
  11. sorry my fault i must have deleted the file from 1st post class this file adventgraph.php   <?PHP include "globals.php"; echo <<<EOF <script type="text/javascript"> /*********************************************** * IFRAME Scroller script- © Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url]) * This notice MUST stay intact for legal use * Visit Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] for full source code ***********************************************/ //specify path to your external page: var iframesrc="adventimage.php" //You may change most attributes of iframe tag below, such as width and height: document.write('<iframe id="datamain" src="'+iframesrc+'" width="500px" height="500px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script> EOF; ?>
  12. cheers pal if the base64 is a problem i'll re post back to original
  13. is anyone using this mod/plugin or is it due to the use of the base64 ive used to encode it.. if so i'll replace with orginal script if its that, thats causing anyone not to use it.
  14. Your error message report an error on line 74 which is echo "You hand over \{$_POST['deposit']}crystals to be deposited, Remeber i mentioned stray \$ cause the $ to appear as a word well \ by itself can uncomment out a line so just for this case remove the \ from this line
  15. Gucci without helping too much so you may fix this yourself... remember your script is working with crystals and not money so any relevance to the $ needs to be carefully looked at we use \$ so the script doesnt get confused with a function. So that would be a good place to start...
  16. I have just spent the best part of 2 hours trying to fix an issue Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mcctest\authenticate.php:3) in C:\xampp\htdocs\mcctest\authenticate.php on line 60 I searched through all the files i had amended after the Error Message Occured checked for blank lines unevenly spaced tags Even got on CrazyT's Nerves ;) But alas i seem to have solved the issue So for future use to those that are having or those that may have the above issue open up authenticate.php and look for header("Location: loggedin.php"); And delete the damn thing or use //header("Location: loggedin.php"); and in its place put echo "<script>document.location.href='loggedin.php'</script>"; echo "<script>'Content-type: application/octet-stream'</script>"; And Hey Presto to the man in the iron mask its Cured ;)
  17. Nicely Done Immortal I haven tested or used any of your scripts as i dont have a game, but i see your producing some nice Free mods which in my eye deserves a +1000 Welldone mate and keep the free mods flowing :) Maybe a Xmas script would be nice if you cant think of an ideas for an xmas script just message me and we'll get thinking.
  18.   The TEST site allows 24 doors to be opened at once so you can See the calendar and test it However when its on your site you calturn will be set at 1 door to be opened per day...   Mcfarlin i see you opened the same door 8 times Thus meaning you didnt goto Door 2 you must have refreshed the screen on door. This is to stop epople going straight from 1 and opening door 25.
  19. Thanks Shide.. if you come across any errors or problems juts post i'll help you set it up.
  20. HAs anyone got this setup yet or is anyone having issues with this script if so post on here and i'll do my best to help you out.
  21. when you run out of coffee at 4:30am you dont care how the tables look ;) However i am working on a paid vesion of this which will i clean up And still need to add the calcount which just tells the users which day they are on The hardest part was the Co-ords that took the longest time as some of the grid Squares are not equal to 100x100 some are smaller.. I used Coral, Paintshop Pro for the co-ords to begin with and found that Crappy Microsoft Paint Worked the best at giving me a better idea of the Co-ords... **FOOTNOTE** Ive set the calturn to 0 but you will need to alter table users set calturn=1 where calturn=0 On the 1st so that will start the calendar off then add the cron for it on that day..
  22. download adventimages dowbnload the below Zip extract the image called adventgridnumbered.png and place it into your public_html folder download Image for Root <<< IMAGE UPDATED SORRY MY FAULT.... FORGOT TO MENTION add a link on mainmenu.php or explore.php pointing to adventcal.php WORKING DEMO you will have to register when REGD goto adventcal.php if you like this script then gizz some dosh i know its a freebie but hey Christmas is drawing near :) [paypal][email protected][/paypal]
  23. now call this file adventimage.php   <?php session_start(); $config = DIRNAME(__FILE__) . '/config.php'; if(file_exists($config)) { include_once($config); } else { die("The game is being updated, please check back in a few seconds"); } define('MONO_ON', 1); $class_mysql = DIRNAME(__FILE__) . '/class/class_db_mysql.php'; if(file_exists($class_mysql)) { include_once($class_mysql); } else { die("The game is being updated, please check back in a few seconds"); } $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $select = sprintf("SELECT frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9, frame10, frame11, frame12, frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20, frame21, frame22, frame23, frame24, frame25 FROM users WHERE (userid = %u) LIMIT 1", $_SESSION['userid']); $query = $db->query($select); if(!$db->num_rows($query)) { die("User could not be found"); } $ir = $db->fetch_row($query); global $db, $ir, $c; function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct){ if(!isset($pct)) { return false; } $pct /= 50; // Get image width and height $w = imagesx($src_im); $h = imagesy($src_im); // Turn alpha blending off imagealphablending($src_im, false); // Find the most opaque pixel in the image (the one with the smallest alpha value) $minalpha = 127; for($x = 0; $x < $w; $x++) for($y = 0; $y < $h; $y++){ $alpha = (imagecolorat($src_im, $x, $y) >> 24) & 0xFF; if($alpha < $minalpha){ $minalpha = $alpha; } } //loop through image pixels and modify alpha for each for($x = 0; $x < $w; $x++){ for($y = 0; $y < $h; $y++){ //get current alpha value (represents the TANSPARENCY!) $colorxy = imagecolorat($src_im, $x, $y); $alpha = ($colorxy >> 24) & 0xFF; //calculate new alpha if($minalpha !== 50){ $alpha = 50 + 50 * $pct * ($alpha - 50) / (50 - $minalpha); } else { $alpha += 50 * $pct; } //get the color index with new alpha $alphacolorxy = imagecolorallocatealpha($src_im, ($colorxy >> 16) & 0xFF, ($colorxy >> 8) & 0xFF, $colorxy & 0xFF, $alpha); //set pixel with the new color + opacity if(!imagesetpixel($src_im, $x, $y, $alphacolorxy)){ return false; } } } // The image copy imagecopy($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h); } // USAGE EXAMPLE: $img_a = imagecreatefrompng('adventgridnumbered.png'); $img_b = imagecreatefrompng('images/xmas/door1.png'); $img_c = imagecreatefrompng('images/xmas/door2.png'); $img_d = imagecreatefrompng('images/xmas/door3.png'); $img_e = imagecreatefrompng('images/xmas/door4.png'); $img_f = imagecreatefrompng('images/xmas/door5.png'); $img_g = imagecreatefrompng('images/xmas/door6.png'); $img_h = imagecreatefrompng('images/xmas/door7.png'); $img_i = imagecreatefrompng('images/xmas/door8.png'); $img_j = imagecreatefrompng('images/xmas/door9.png'); $img_k = imagecreatefrompng('images/xmas/door10.png'); $img_l = imagecreatefrompng('images/xmas/door11.png'); $img_m = imagecreatefrompng('images/xmas/door12.png'); $img_n = imagecreatefrompng('images/xmas/door13.png'); $img_o = imagecreatefrompng('images/xmas/door14.png'); $img_p = imagecreatefrompng('images/xmas/door15.png'); $img_q = imagecreatefrompng('images/xmas/door16.png'); $img_r = imagecreatefrompng('images/xmas/door17.png'); $img_s = imagecreatefrompng('images/xmas/door18.png'); $img_t = imagecreatefrompng('images/xmas/door19.png'); $img_u = imagecreatefrompng('images/xmas/door20.png'); $img_v = imagecreatefrompng('images/xmas/door21.png'); $img_w = imagecreatefrompng('images/xmas/door22.png'); $img_x = imagecreatefrompng('images/xmas/door23.png'); $img_y = imagecreatefrompng('images/xmas/door24.png'); $img_z = imagecreatefrompng('images/xmas/door25.png'); global $db, $ir, $c, $r, $img_b,$img_c,$img_d,$img_e,$img_f,$img_g,$img_h,$img_i,$img_j,$img_k,$img_l,$img_m,$img_n,$img_o,$img_p,$img_q,$img_r,$img_s,$img_t,$img_u,$img_v,$img_w,$img_x,$img_y,$img_z; // SAME COMMANDS: if(!$ir['frame1'] && !$ir['frame2'] && !$ir['frame3'] && !$ir['frame4'] && !$ir['frame5'] && !$ir['frame6'] && !$ir['frame7'] && !$ir['frame8'] && !$ir['frame9'] && !$ir['frame10'] && !$ir['frame11'] && !$ir['frame12'] && !$ir['frame13'] && !$ir['frame14'] && !$ir['frame15'] && !$ir['frame16'] && !$ir['frame17'] && !$ir['frame18'] && !$ir['frame19'] && !$ir['frame20'] && !$ir['frame21'] && !$ir['frame22'] && !$ir['frame23'] && !$ir['frame24'] && !$ir['frame25']); if(!$ir['frame1'] !=1) { imagecopymerge_alpha($img_a, $img_b, 25,25,0,0, imagesx($img_b), imagesy($img_b), 50); } if(!$ir['frame2'] !=1) { imagecopymerge_alpha($img_a, $img_c, 401, 402, 0, 0, imagesx($img_c), imagesy($img_c), 50); } if(!$ir['frame3'] !=1) { imagecopymerge_alpha($img_a, $img_d, 25, 405, 0, 0, imagesx($img_d), imagesy($img_d), 50); } if(!$ir['frame4'] !=1) { imagecopymerge_alpha($img_a, $img_e, 400, 305, 0, 0, imagesx($img_e), imagesy($img_e), 50); } if(!$ir['frame5'] !=1) { imagecopymerge_alpha($img_a, $img_f, 104, 200, 0, 0, imagesx($img_f), imagesy($img_f), 50); } if(!$ir['frame6'] !=1) { imagecopymerge_alpha($img_a, $img_g, 402, 103, 0, 0, imagesx($img_g), imagesy($img_g), 50); } if(!$ir['frame7'] !=1) { imagecopymerge_alpha($img_a, $img_h, 25, 100, 0, 0, imagesx($img_h), imagesy($img_h), 50); } if(!$ir['frame8'] !=1) { imagecopymerge_alpha($img_a, $img_i, 200, 200, 0, 0, imagesx($img_i), imagesy($img_i), 50); } if(!$ir['frame9'] !=1) { imagecopymerge_alpha($img_a, $img_j, 103, 100, 0, 0, imagesx($img_j), imagesy($img_j), 50); } if(!$ir['frame10'] !=1) { imagecopymerge_alpha($img_a, $img_k, 104,300,0,0, imagesx($img_k), imagesy($img_k), 50); } if(!$ir['frame11'] !=1) { imagecopymerge_alpha($img_a, $img_l, 200, 100, 0, 0, imagesx($img_l), imagesy($img_l), 50); } if(!$ir['frame12'] !=1) { imagecopymerge_alpha($img_a, $img_m, 200, 400, 0, 0, imagesx($img_m), imagesy($img_m), 50); } if(!$ir['frame13'] !=1) { imagecopymerge_alpha($img_a, $img_n, 301, 300, 0, 0, imagesx($img_n), imagesy($img_n), 50); } if(!$ir['frame14'] !=1) { imagecopymerge_alpha($img_a, $img_o, 100, 25, 0, 0, imagesx($img_o), imagesy($img_o), 50); } if(!$ir['frame15'] !=1) { imagecopymerge_alpha($img_a, $img_p, 301, 200, 0, 0, imagesx($img_p), imagesy($img_p), 50); } if(!$ir['frame16'] !=1) { imagecopymerge_alpha($img_a, $img_q, 402, 25, 0, 0, imagesx($img_q), imagesy($img_q), 50); } if(!$ir['frame17'] !=1) { imagecopymerge_alpha($img_a, $img_r, 401, 202, 0, 0, imagesx($img_r), imagesy($img_r), 50); } if(!$ir['frame18'] !=1) { imagecopymerge_alpha($img_a, $img_s, 300, 400, 0, 0, imagesx($img_s), imagesy($img_s), 50); } if(!$ir['frame19'] !=1) { imagecopymerge_alpha($img_a, $img_t, 200, 25, 0, 0, imagesx($img_t), imagesy($img_t), 50); } if(!$ir['frame20'] !=1) { imagecopymerge_alpha($img_a, $img_u, 200, 300, 0, 0, imagesx($img_u), imagesy($img_u), 50); } if(!$ir['frame21'] !=1) { imagecopymerge_alpha($img_a, $img_v, 300, 25, 0, 0, imagesx($img_v), imagesy($img_v), 50); } if(!$ir['frame22'] !=1) { imagecopymerge_alpha($img_a, $img_w, 25, 300, 0, 0, imagesx($img_w), imagesy($img_w), 50); } if(!$ir['frame23'] !=1) { imagecopymerge_alpha($img_a, $img_x, 25, 200, 0, 0, imagesx($img_x), imagesy($img_x), 50); } if(!$ir['frame24'] !=1) { imagecopymerge_alpha($img_a, $img_y, 301, 100, 0, 0, imagesx($img_y), imagesy($img_y), 50); } if(!$ir['frame25'] !=1) { imagecopymerge_alpha($img_a, $img_z, 0, 0, 0, 0, imagesx($img_z), imagesy($img_z), 50); } // OUTPUT IMAGE: header("Content-Type: image/png"); imagesavealpha($img_a, true); imagepng($img_a, NULL); ?>   And call this one adventgraph.php <?PHP include "globals.php"; echo <<<EOF <script type="text/javascript"> /*********************************************** * IFRAME Scroller script- © Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url]) * This notice MUST stay intact for legal use * Visit Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] for full source code ***********************************************/ //specify path to your external page: var iframesrc="adventimage.php" //You may change most attributes of iframe tag below, such as width and height: document.write('<iframe id="datamain" src="'+iframesrc+'" width="500px" height="500px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script> EOF; ?>   Add this small piece to your cron_day.php $db->query("UPDATE users SET calturn=1 WHERE calturn=0"); And finally upload these images the Main image goes in your root folder adventgridnumbered.png then create a folder on your ftp for images/xmas and place all the rest of the images nito the xmas folder.
  24. make sure you upload the words.txt to your server call this file adventcal.php   <? include "globals.php"; $select = sprintf("SELECT frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9, frame10, frame11, frame12, frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20, frame21, frame22, frame23, frame24, frame25 FROM users WHERE (userid = %u) LIMIT 1", $_SESSION['userid']); $query = $db->query($select); if(!$db->num_rows($query)) { die("<h3>You dont have a calander yet"); } print "<center>[b]<h2>Advent Calendar</h2>[/b] Welcome to your Advent Calendar {$ir['username']}. Choose Todays box to open "; if($ir['frame1'] != 1) { print "[img=adventgridnumbered.jpg] <map name='Map'> <area shape='rect' coords='25,25,98,100' href='advents.php?event=1'></map>"; $h->endpage(); exit; } else { print " [img=adventgridnumbered.jpg] <map name='Map'> <area shape='rect' coords='25,25,98,100' title='Door 1 Already Opened'</map>"; } if($ir['frame2'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,405,497,475' href='advents.php?event=2'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,405,497,475' title='Door 2 Already Opened'></map>"; } if($ir['frame3'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='45,405,97,475' href='advents.php?event=3'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='45,405,97,475' title='Door 3 Already Opened'></map>"; } if($ir['frame4'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,305,497,400' href='advents.php?event=4'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,305,497,400' title='Door 4 Already Opened'></map>"; } if($ir['frame5'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,205,195,300' href='advents.php?event=5'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,205,195,300' title='Door 5 Already Opened'></map>"; } if($ir['frame6'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,105,498,200' href='advents.php?event=6'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,105,498,200' title='Door 6 Already Opened'></map>"; } if($ir['frame7'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,105,98,200' href='advents.php?event=7'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,105,98,200' title='Door 7 Already Opened'></map>"; } if($ir['frame8'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,205,295,300' href='advents.php?event=8'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,205,295,300' title='Door 8 Already Opened'></map>"; } if($ir['frame9'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,105,197,200' href='advents.php?event=9'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,105,197,200' title='Door 9 Already Opened'></map>"; } if($ir['frame10'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,305,197,400' href='advents.php?event=10'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,305,197,400' title='Door 10 Already Opened'></map>"; } if($ir['frame11'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,105,298,200' href='advents.php?event=11'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,105,298,200' title='Door 11 Already Opened'></map>"; } if($ir['frame12'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,405,297,475' href='advents.php?event=12'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,405,297,475' title='Door 12 Already Opened'></map>"; } if($ir['frame13'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,305,397,400' href='advents.php?event=13'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,305,397,400' title='Door 13 Already Opened'></map>"; } if($ir['frame14'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,25,197,100' href='advents.php?event=14'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,25,197,100' title='Door 14 Already Opened'></map>"; } if($ir['frame15'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,205,395,300' href='advents.php?event=15'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,205,395,300' title='Door 15 Already Opened'></map>"; } if($ir['frame16'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,25,497,100' href='advents.php?event=16'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='404,25,497,100' title='Door 16 Already Opened'></map>"; } if($ir['frame17'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,205,495,300' href='advents.php?event=17'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='405,205,495,300' title='Door 17 Already Opened'></map>"; } if($ir['frame18'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,405,397,475' href='advents.php?event=18'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='305,405,397,475' title='Door 18 Already Opened'></map>"; } if($ir['frame19'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,25,297,100' href='advents.php?event=19'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='203,25,297,100' title='Door 19 Already Opened'></map>"; } if($ir['frame20'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,305,297,400' href='advents.php?event=20'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='205,305,297,400' title='Door 20 Already Opened'></map>"; } if($ir['frame21'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,25,397,100' href='advents.php?event=21'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,25,397,100' title='Door 21 Already Opened'></map>"; } if($ir['frame22'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='35,305,97,400' href='advents.php?event=22'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='35,305,97,400' title='Door 22 Already Opened'></map>"; } if($ir['frame23'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,205,97,300' href='advents.php?event=23'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='25,205,97,300' title='Door 23 Already Opened'></map>"; } if($ir['frame24'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,105,398,200' href='advents.php?event=24'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='303,105,398,200' title='We would like to wish Everyone A very Merry Christmas for tomorrow '></map>"; } if($ir['frame25'] != 1) { print "<valign='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,405,197,475' href='advents.php?event=25'></map>"; $h->endpage(); exit; } else { print "<valign ='top' img src='adventgridnumbered.jpg' border='0' usemap='#Map'> <map name='Map'> <area shape='rect' coords='105,405,197,475' title='MERRY CHRISTMAS TO EVERYONE AND THANKYOU ALL FOR YOUR CONTINUED SUPPORT..'></map>"; } $h->endpage(); exit; ?>   PART 3 FOLLOWS
  25. SQLS alter table users add `frame1` int(2) NOT NULL DEFAULT '0' alter table users add `frame2` int(2) NOT NULL DEFAULT '0' alter table users add `frame3` int(2) NOT NULL DEFAULT '0' alter table users add `frame4` int(2) NOT NULL DEFAULT '0' alter table users add `frame5` int(2) NOT NULL DEFAULT '0' alter table users add `frame6` int(2) NOT NULL DEFAULT '0' alter table users add `frame7` int(2) NOT NULL DEFAULT '0' alter table users add `frame8` int(2) NOT NULL DEFAULT '0' alter table users add `frame9` int(2) NOT NULL DEFAULT '0' alter table users add `frame10` int(2) NOT NULL DEFAULT '0' alter table users add `frame11` int(2) NOT NULL DEFAULT '0' alter table users add `frame12` int(2) NOT NULL DEFAULT '0' alter table users add `frame13` int(2) NOT NULL DEFAULT '0' alter table users add `frame14` int(2) NOT NULL DEFAULT '0' alter table users add `frame15` int(2) NOT NULL DEFAULT '0' alter table users add `frame16` int(2) NOT NULL DEFAULT '0' alter table users add `frame17` int(2) NOT NULL DEFAULT '0' alter table users add `frame18` int(2) NOT NULL DEFAULT '0' alter table users add `frame19` int(2) NOT NULL DEFAULT '0' alter table users add `frame20` int(2) NOT NULL DEFAULT '0' alter table users add `frame21` int(2) NOT NULL DEFAULT '0' alter table users add `frame22` int(2) NOT NULL DEFAULT '0' alter table users add `frame23` int(2) NOT NULL DEFAULT '0' alter table users add `frame24` int(2) NOT NULL DEFAULT '0' alter table users add `frame25` int(2) NOT NULL DEFAULT '0' alter table users add`calturn` int(2) NOT NULL DEFAULT '0' alter table users add`calcount` int(2) NOT NULL DEFAULT '0' Call this file advents.php <? include "globals.php"; $userid= $ir['userid']; $calturn= $ir['calturn']; //$rand= rand(0,1); //$randhard= rand(0,1); $filename="words.txt";$words=file($filename);shuffle($words);$word=$words[0]; $randmoney= rand(1,100); $_GET['event'] == (int) $_GET['event']; if(!$_GET['event']) { print "WTF you doing, bro?"; $h->endpage(); exit; } if(!$ir['calturn']) { print "<h1>Sorry, you can only open ONE door per day.<h1> [url='adventgraph.php']View your Calendar instead[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '1') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame1=frame1+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 1 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '2') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame2=frame2+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 2 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '3') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame3=frame3+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 3 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '4') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame4=frame4+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 4 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '5') { $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame5=frame5+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 5 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '6') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame6=frame6+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 6 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '7') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame7=frame7+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 7 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '8') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame8=frame8+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 8 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '9') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame9=frame9+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 9 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '10') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame10=frame10+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 10 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '11') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame11=frame11+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 11 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '12') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame12=frame12+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 12 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '13') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame13=frame13+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 13 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '14') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame14=frame14+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 14 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '15') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame15=frame15+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 15 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '16') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame16=frame16+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 16 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '17') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame17=frame17+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 17 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '18') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame18=frame18+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 18 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '19') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame19=frame19+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 19 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '20') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame20=frame20+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 20 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '21') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame21=frame21+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 21 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } if($_GET['event'] == '22') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame22=frame22+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 22 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '23') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame23=frame23+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 23 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '24') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame24=frame24+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 24 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } else if($_GET['event'] == '25') { $db->query("UPDATE users SET calturn=calturn-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); $db->query("UPDATE users SET frame25=frame25+1 WHERE userid=$userid"); print "<h2>$word You Opened Door Number 25 and found $$randmoney.</h2> [url='adventcal.php']Go Back[/url] [url='adventgraph.php']Click HERE to view your Advent Calendar[/url]"; $h->endpage(); exit; } ?> Now create a TXT file call it words.txt and add these words or you can make up your own... Did you know: Pope Julius Ist declared Christ’s birthday as December 25th sometime during the 4th century. Did you Know: Christmas trees received their first written acknowledgement in Germany in 1531. Did you Know: The first Christmas card was designed by John Horsley in 1840 but was not sold until 1843. Did you Know: Alabama was the first state in America to proclaim Christmas day as a legal holiday in 1836 Did you Know: Austria issued the first Christmas stamp in 1937 Did you Know: Christmas Pudding was originally a type of porridge with fruit in it Did you Know: In the festive song, ‘The 12 Days of Christmas’, there are 364 gifts. Did you Know: Italian children are brought gifts by a friendly witch, as well as Santa Claus Did you Know: The average person in Britain sends 50 Christmas cards Did you Know: This great script was written by illlusions Did you Know: The Queen's Christmas speech was first shown on television in 1957.[/b[ PART 2 Follows
×
×
  • Create New...