Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,686
  • Joined

  • Last visited

  • Days Won

    81

Everything posted by Uridium

  1. Quick update whilst im still messing with the gangs GANG CRIMES now have a random time so not all Gang times will be the same EXAMPLE 24 some crimes will take less than 24 hours and some may even take the full 24 hours to complete but will never go below 5 hours for a crime to start Open yourgang.php and look for the function gang_staff_orgcrimes and iverwrite with this one   function gang_staff_orgcrimes() { global $db,$ir,$c,$userid,$gangdata; $_POST['crime'] = abs((int) $_POST['crime']); if($_POST['crime']) { if($gangdata['gangCRIME'] != 0) { print "Your gang is already doing a crime!"; } else { $randtime= rand(5,24); $db->query("UPDATE gangs SET gangCRIME={$_POST['crime']},gangCHOURS=$randtime WHERE gangID={$ir['gang']}"); print "You have started to plan this crime. It will take $randtime hours."; } } else { print "<table class='table'><tr><th>Organised Crimes</th></tr><tr><td> <form action='yourgang.php?action=staff&act2=crimes' method='post'>Choose a crime that your gang should commit. <select name='crime' type='dropdown'>"; $cnt=$db->query("SELECT username FROM users WHERE gang={$gangdata['gangID']}"); $membs=$db->num_rows($cnt); $q=$db->query("SELECT * FROM orgcrimes WHERE ocUSERS <= $membs"); while($r=$db->fetch_row($q)) { print "<option value='{$r['ocID']}'>{$r['ocNAME']} ({$r['ocUSERS']} members needed)</option>"; } print "</select> <center><input type='submit' value='Commit' /></form></td></tr></table>"; } }   if you have made edits to your own Function be sure to add them back in $randtime amounts can be changed to suit your game
  2. The following 3 updates will allow a better Visual of Failed and Successful Events for Gang Crimes + Users will be sent an event of failed or successful Crimes.. and also a big thankyou to Magictallguy for his Very kind Addition so you can now see Which users are in which Warbase The image below is a view from the gang panel for Crime events SCRIPT for the above..... open cron_hour.php and over write from <?PHP to the end } anything after the final } should be added from your own script... IF youve made amendmets <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; require_once('global_func.php'); $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0"); $db->query("UPDATE users SET turns=15"); $q=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangCRIME > 0 AND g.gangCHOURS <= 0"); while($r=$db->fetch_row($q)) { $suc=rand(0,1); if($suc) { $log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT']; $muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $db->query("INSERT INTO gangcrimesucevents VALUES('',{$r['gangID']},unix_timestamp(),\"<font color='green'>Your Gangs Organised Crime Was Successful $log Your Gang was rewarded With £$muny</font>\");"); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}") or die(mysql_error()); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='green'>Your Gang Successfully Completed A Crime [url='yourgang.php?action=crimevents'][b]click here[/b][/url] to view the details..</font>\");"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } else { $log=$r['ocSTARTTEXT'].$r['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log) or die(mysql_error()); $db->query("UPDATE gangs SET gangCRIME=0 WHERE gangID={$r['gangID']}") or die(mysql_error()); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())") or die(mysql_error()); $i=$db->insert_id(); $db->query("INSERT INTO gangcrimefailevents VALUES('',{$r['gangID']},unix_timestamp(),\"<font color='red'>Your Gangs Organised Crime Was a Failure $log Your Gang didnt Achieve any Cash Payment</font>\");"); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}") or die(mysql_error()); while($rm=$db->fetch_row($qm)) { $db->query("INSERT INTO events VALUES('',{$rm['userid']},unix_timestamp(),0,\"<font color='red'>Your Gang Failed A Crime [url='yourgang.php?action=crimevents'][b]click here[/b][/url] to view the details..</font>\");"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$rm['userid']}"); } } } Now add these SQLS,,, [mysql]CREATE TABLE IF NOT EXISTS `gangcrimefailevents` ( `gevID` int(11) NOT NULL auto_increment, `gevGANG` int(11) NOT NULL default '0', `gevTIME` int(11) NOT NULL default '0', `gevTEXT` text NOT NULL, PRIMARY KEY (`gevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/mysql] and [mysql]CREATE TABLE IF NOT EXISTS `gangcrimesucevents` ( `gevID` int(11) NOT NULL auto_increment, `gevGANG` int(11) NOT NULL default '0', `gevTIME` int(11) NOT NULL default '0', `gevTEXT` text NOT NULL, PRIMARY KEY (`gevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/mysql] now open yourgang.php and add this case case "crimevents": cr_events(); break; And further down where the gang_index fundtion is add this to the links.. <td>[url='yourgang.php?action=crimevents']Crime Events[/url]</td><td>"; now create a new FUNCTION before the staff section function cr_events() { global $db,$ir,$c,$userid,$gangdata; print "<table cellspacing=1 class='table' width=50%><tr><td style='background-color:#CCCCCC;' width=70%>[url='yourgang.php?action=summary']>Summary[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=donate']Donate<[/url]</td></tr><tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=members']>Members[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=crimes']Crimes<[/url]</td></tr><tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=forums']>Forums[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=leave']Leave<[/url]</td></tr> <tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=atklogs']>Attack Logs[/url]</td><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=crimevents']Crime Logs<[/url]</td><td style='background-color:#CCCCCC;'></td>"; if($gangdata['gangPRESIDENT'] == $userid || $gangdata['gangVICEPRES'] == $userid ) { print "<tr><td style='background-color:#CCCCCC;'>[url='yourgang.php?action=staff&act2=idx']>Staff Room[/url]</td><td style='background-color:#CCCCCC;' width =50%>[url='yourgang.php?action=staff&act2=crimes']Organise a crime<[/url] "; } else { print ""; } print "</td></tr></table> "; print " <table cellspacing=1 class='table' width=75%><tr style='background:gray;'><td align=center class='h'>Gang Crime Failed Events</td></tr> <tr></td></tr></table> "; global $db,$ir,$c,$userid,$gangdata; $q=$db->query("SELECT * FROM gangcrimefailevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Time</th><th>Event</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['gevTIME'])."</td><td>{$r['gevTEXT']}</td></tr>"; } print "</table> "; $q=$db->query("SELECT * FROM gangcrimesucevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print " <table cellspacing=1 class='table' width=75%><tr style='background:gray;'><td align=center class='h'>Gang Crime Success Events</td></tr> <tr></td></tr></table> "; //$q=$db->query("SELECT * FROM gangcrimesucevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Time</th><th>Event</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['gevTIME'])."</td><td>{$r['gevTEXT']}</td></tr>"; } print "</table>"; } And thats it for that part.... The Below image is the NEWER layout of your WARS.. This will make it easier to locate and attack people in your warbase. if a user is in hospital or Jail then the ATTACK will change to Unavailable for that player..... For this part to work heres the script.... Create a new CASE case "wargroups": gang_warmemberlist(); break; And before the case change the URL for the Your gang is currently in so the URL is <a href='yourgang.php?action=wargroups'> Now add this function AFTER where the gang_warview function ends function gang_warmemberlist() { global $db,$ir,$c,$userid,$gangdata; echo "<h3>Gang War Members</h3>"; print "<table cellspacing='1' class='table'>"; echo "<tr>"; echo "<th>Gang</th>"; echo "<th>User</th>"; echo "<th>Level</th>"; echo "<th>Days In Gang</th>"; echo "<th>ACTION</th>"; echo "</tr>"; $select = sprintf( "SELECT gw.warTIME, g.gangID, g.gangNAME, u.userid, u.username, u.hospital, u.jail, u.level, u.daysingang " . "FROM gangwars gw " . "LEFT JOIN gangs g ON ((gw.warDECLARER = g.gangID) OR (gw.warDECLARED = g.gangID)) " . "LEFT JOIN users u ON (g.gangID = u.gang) " . "WHERE ((gw.warDECLARER = %1\$u) OR (gw.warDECLARED = %1\$u)) AND (g.gangID != %1\$u) " . "ORDER BY g.gangID ASC", $gangdata['gangID']); $query = $db->query($select); while($r = $db->fetch_row($query)) { echo "<tr>"; echo sprintf("<td>%s</td>", stripslashes(htmlspecialchars($r['gangNAME']))); echo sprintf("<td>[url='viewuser.php?u=%1\$u']%2\$s[/url] [%1\$u]</td>", $r['userid'], stripslashes(htmlspecialchars($r ['username']))); echo sprintf("<td>%s</td>", number_format($r['level'])); echo sprintf("<td>%s</td>", number_format($r['daysingang'])); echo sprintf("<td>%s</td>", (!$r['jail'] && !$r['hospital']) ? sprintf("[url='attack.php?ID=%u']Attack[/url]", $r['userid']) : "<span style='color:#444;'>[size="1"]<font color='red'>Unavailable[/size]</font></a>"); echo "</tr>"; } echo "</table> [url='yourgang.php']> Back[/url]"; } And your done Once i get all my edits together i will Post the script for the EVENTS first and then the WARBASE addition....
  3. 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
  4. 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 :)
  5. I thought all scripts on here were free or is it cos i never visit the paid section oops sorry guys :)
  6. 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
  7. 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...
  8. I could make you a DHTML version for the buttons and drop downs
  9. 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
  10. What errors are you getting from the adventgraph.php file ?
  11. 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
  12. Whats the error your getting and also whats it not doing that is should be doing..
  13. 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; ?>
  14. cheers pal if the base64 is a problem i'll re post back to original
  15. 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.
  16. 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
  17. 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...
  18. 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 ;)
  19. 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.
  20.   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.
  21. Thanks Shide.. if you come across any errors or problems juts post i'll help you set it up.
  22. 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.
  23. 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..
  24. 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]
  25. 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.
×
×
  • Create New...