Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    570
  • Joined

  • Last visited

  • Days Won

    9

peterisgb last won the day on June 26

peterisgb had the most liked content!

3 Followers

About peterisgb

  • Birthday 09/29/1988

Personal Information

  • Location
    Penzance, Cornwall, UK
  • Website
    https://www.infamouswars.com

Recent Profile Visitors

10,380 profile views

peterisgb's Achievements

Apprentice

Apprentice (3/14)

  • Reacting Well Rare
  • Conversation Starter Rare
  • Dedicated Rare
  • First Post Rare
  • Collaborator Rare

Recent Badges

49

Reputation

  1. https://www.infamouswars.com/ Screenshots are on homepage.
  2. peterisgb

    LotGD

    i manged to host it on a site for £2.50 for the year. They had PHP 5.3. http://legendsofthegreendragon.mygamesonline.org MTG said i could shim things but it something i haven't done before so didn't know what i was doing.
  3. peterisgb

    LotGD

    Incase anyone is wanting to find a server host supporting php most PHP versions including php 5.3 you can use this site. awardspace.net It has a free option and there are cheap paid versions. This is the only site i have found so far that claims to have php5.3 and actually have it.
  4. peterisgb

    LotGD

    Some here may know, Specially the older groups. I've managed to get my hands on Legends of the Green Dragon script with 1,000+ modules. So I've ran an Old version of Wamp due to PHP support. Its only seems to run on php5.3 What i am looking for is, Is there some kind of wrapper i could use to make the old scripts work or know of a host that still supports php5.3 Its abit of a long reach, Worst case scenario is i setup wampserver to the world but then that means hosting it on my PC which isnt what i want to do. Anything help or advice here would be greatly appreciated.
  5. peterisgb

    Epic Games

    I own all the GTAs on Steam, I'm using the same username, PeterisGB, welcome to add me
  6. New Comp system made, Updated Game layouts, screenshots added to login page. Plus updates everyday, On hunt for new players. Even just signing up helps to create new players for the new competition system. Some Screenshots of latest work. I've dropped the main menu from the main panels in favour of a slide out menu giving more space in the main panel. Added screenshot of the new competition system that may be release here on these forums if it works out well. I made the Competition system yesterday and the cron was made with the help of a friend. The idea is to make people stay on longer, which after day 1, it seems effective
  7. Magictallguy made this one quite a few years ago but has served me well since. create file called cronless_crons.php and stick this in it. <?php if ('/cronless_crons.php' == $_SERVER['PHP_SELF']) { exit; } if (!isset($set)) { $set = array(); $settq = $db->query('SELECT * FROM settings'); while ($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } } // Minute $result2 = $db->query("SELECT * FROM updates WHERE name = '1min'"); $result1 = $db->fetch_row($result2); $hla1 = time() - $result1['last']; if ($hla1 > 60) { $n1 = floor($hla1 / 60); $db->query(sprintf('UPDATE `users` SET `hospital` = GREATEST(0, `hospital` - %u) WHERE `hospital` > 0', $n1)); $db->query(sprintf('UPDATE `users` SET `jail` = GREATEST(0, `jail` - %u) WHERE `jail` > 0', $n1)); // minute Cron stuff here $hc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `hospital` > 0')); $jc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `jail` > 0')); $db->query("UPDATE `settings` SET `conf_value` = '$hc' WHERE `conf_name` = 'hospital_count'"); $db->query("UPDATE `settings` SET `conf_value` = '$jc' WHERE `conf_name` = 'jail_count'"); $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1min'"); $floor = $time - (floor($time / 60) * 60); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1min'"); } } // Five minute $result2 = $db->query("SELECT * FROM `updates` WHERE `name` = '5min'"); $result2 = $db->fetch_row($result2); $hla2 = time() - $result2['last']; if ($hla2 > 300) { $n = floor($hla2 / 300); $db->query('UPDATE `users` SET `brave` = LEAST(`brave` + (((`maxbrave` / 10) + 0.5) * '.$n.'), `maxbrave`), `hp` = LEAST(`hp` + ((`maxhp` / 12) * '.$n.'), `maxhp`), `energy` = IF(`donatordays`, LEAST(`energy` + ((`maxenergy` / 5) * '.$n.'), `maxenergy`), LEAST(`energy` + ((`maxenergy` / 10) * '.$n.'), `maxenergy`)), `will` = LEAST(`maxwill`, `will` + '.($n * 100).')'); $db->query('UPDATE `pets` SET `energy` = LEAST((`energy` + ((`maxenergy` / 30) + 2) * '.$n.'), maxenergy) WHERE (`energy` < `maxenergy`)'); $db->query('UPDATE `pets` SET `hp` = LEAST((`hp` + ((`maxhp` / 30) + 2) * '.$n.'), maxhp) WHERE (`hp` < `maxenergy`)'); // 5 minute cron stuff here $floor = $time - (floor($time / 300) * 300); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '5min'"); } } // 1 hour $result3 = $db->query("SELECT * FROM `updates` WHERE `name` = '1hour'"); $result3 = $db->fetch_row($result3); $hla3 = time() - $result3['last']; if ($hla3 > 3600) { $n3 = floor($hla3 / 3600); // Hourly cron stuff here if (17 == date('G')) { // 5pm crons here like workpayouts } if (8 == date('G')) { // 8am crons here } if (60 == $set['validate_period'] && $set['validate_on']) { $db->query('UPDATE users SET verified=0'); } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1hour'"); $floor = $time - (floor($time / 3600) * 3600); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1hour'"); } } // 1 day $result4 = $db->query("SELECT * FROM `updates` WHERE `name` = '1day'"); $result4 = $db->fetch_row($result4); $hla4 = time() - $result4['last']; if ($hla4 > 86400) { $n4 = floor($hla4 / 86400); $db->query('UPDATE `fedjail` SET `fed_days` = GREATEST(0, `fed_days` - '.$n4.')'); $q = $db->query('SELECT * FROM `fedjail` WHERE `fed_days` = 0'); $ids = array(); // Daily cron stuff here if (1 == date('j')) { // First of the month Crons here } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1day'"); $floor = $time - (floor($time / 86400) * 86400); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1day'"); } } // 1 Week $result5 = $db->query("SELECT * FROM `updates` WHERE `name` = '1week'"); $result5 = $db->fetch_row($result5); $hla5 = time() - $result5['last']; if ($hla5 > 604800) { $n5 = floor($hla5 / 604800); // Weekly Stuff Here if you have any $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1week'"); $floor = $time - (floor($time / 604800) * 604800); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1week'"); } } Change and Add your Crons to the right section. and here are the SQLs CREATE TABLE `updates` ( `name` varchar(255) NOT NULL DEFAULT '', `last` int(255) NOT NULL DEFAULT 60 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `updates` -- INSERT INTO `updates` (`name`, `last`) VALUES ('1min', 1624438860), ('5min', 1624438800), ('1hour', 1624438800), ('1day', 1624406400), ('1month', 1541030400), ('1week', 1623888000); COMMIT;
  8. mainmenu.php Not 100% sure what was doing it, guessing its the clock function maybe. Rewrote and bug gone 🙂 <?php global $db,$c,$ir, $set, $userid; $hc = $db->query("SELECT * FROM users WHERE hospital > 0"); $hospitalcount = $db->num_rows($hc); $jc = $db->query("SELECT * FROM users WHERE jail > 0"); $jailcount = $db->num_rows($jc); $worksho = $db->query("SELECT * FROM itemscreated WHERE iUSER=$userid"); $workshop = $db->num_rows($worksho); $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='index.php'>Home</a></li> <li> <a class='link1' href='shops.php'>Medical Shop</a></li> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } elseif($ir['jail']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='index.php'>Home</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li><a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } if($ec > 0) { print "<li> <a class='link1' href='events.php'>Events ($ec)</a></li>"; } else { print "<li> <a class='link1' href='events.php'>Events (0)</a></li>"; } if($mc > 0) { print "<li> <a class='link1' href='mailbox.php'>Mailbox ($mc)</a></li>"; } else { print "<li> <a class='link1' href='mailbox.php'>Mailbox (0)</a></li>"; } if($ir['chathide'] == 1){ print"<li><a class='link1' href='chat.php'>Chat</a></li>"; } if($ir['new_announcements']) { print "<li> <a class='link1' href='announcements.php' style='font-weight: 800;'>Announcements ({$ir['new_announcements']})</a></li>"; } else { print "<li> <a class='link1' href='announcements.php'>Announcements (0)</a></li>"; } if($ir['jail'] and !$ir['hospital']) { print "<li> <a class='link1' href='gym.php'>Jail Gym</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='hospital.php'>Hospital({$hospitalcount})</a></li>"; } else if (!$ir['hospital']) { print "<li> <a class='link1' href='explore.php'>Explore</a></li> <li> <a class='link1' href='gym.php'>Gym</a></li> <li> <a class='link1' href='criminal.php'>Crimes</a></li> <li> <a class='link1' href='gta.php'>GTA</a></li> <li> <a class='link1' href='job.php'>Your Job</a></li> <li> <a class='link1' href='business_home.php'>Your Business</a></li> <li> <a class='link1' href='stocks.php'>Stock Market</a></li> <li> <a class='link1' href='competition.php'>Game Events</a></li> <li> <a class='link1' href='contest.php'>Contest</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print "<li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } print "<li> <a class='link1' href='forums.php'>Forums</a></li>"; print " <li> <a class='link1' href='newspaper.php'>Newspaper</a></li> <li> <a class='link1' href='search.php'>Search</a></li>"; if(!$ir['jail'] && $ir['gang']) { print "<li> <a class='link1' href='zFamily.php?p=myFam'><font color = green>Your Gang</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } if($ir['user_level'] > 1) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='staff.php'>Staff Panel</a></li> "; if ($userid == '1') { echo "<li> <a class='link1' href='ownerpanel.php'>Owner Panel</a></li>";; } print " </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div>"; print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_online.gif' alt='' /> </p></div> <div class='navi_mid'><ul> "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br> </div><div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } } if($ir['donatordays']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/donators_only.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='friendslist.php'>Friends List</a></li> <li> <a class='link1' href='blacklist.php'>Black List</a></li> <li> <a class='link1' href='ddreward.php'>Daily Rewards</a></li> <li> <a class='link1' href='vipgym.php'>VIP Gym</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } print " <div class='navipart'> <div class='navitop'><p> <img src='images/other_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='preferences.php'>Preferences</a></li> <li> <a class='link1' href='preport.php'>Player Report</a></li> <li> <a class='link1' href='helptutorial.php'>Help Tutorial</a></li> <li> <a class='link1' href='gamerules.php'>Game Rules</a></li> <li> <a class='link1' href='viewuser.php?u={$ir['userid']}'>My Profile</a></li> <li> <a class='link1' href='logout.php'>Logout</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> " ; echo("<table border='1' width='85%' bordercolor='white'> <tr style='background: url('.$bimage.');'><th><font color=gold>Time and Date</th></tr><tr><td style='background: url('.$bimage.');'><font color=gold>".date ('F j, Y')."<br />".date('g:i a')."</td></tr></table>"); ?> Welcome to see if you can figure it out, This is the before i fixed it mainmenu.php After looking through it i still cant see the issue lol. All i know is i removed and rewrote and bang, double issue fixed. Spooky.
  9. Fixed and eradicated the double bug. Issue Resolved 🙂
  10. one of my old sites I just used https://www.appgyver.com and used webview lol. Its a free site that allows you to make apps etc
  11. Ouch. I would still highly suggest moving off it tho
  12. isn't mysql no longer support in modern version of php?
  13. I don't use this myself as it doesn't fit my game. It needs works and securing before official use. This was made as a base script to build on and repair where needed.
  14. I've just updated the original post. I dont use this and havent used it since i made it lol.
  15. Most are some here, Mainly Free, A few paid ones but i paid for them so i wouldnt release them 😄
×
×
  • Create New...