Jump to content
MakeWebGames

Shame

Members
  • Posts

    39
  • Joined

  • Last visited

    Never

Everything posted by Shame

  1. So I've been looking for ways to gain more and more web traffic, and it seems that I just can't find enough to make it where I want to be. If you all could possibly post a bit of what you know on gaining web traffic, I would appreciate it dearly. Thanks much, and look forward to the feedback.
  2. So, is some one going to help me out a bit?
  3. I did run them manually, and it worked fine. So what would be the problem?
  4. So my crons don't work, and I can seem to find anything wrong with the cron file, and as well I can't seem to find a problem with the cron jobs panel in cPanel. Help me out a bit if you would. Fresh install of McCodes v2
  5. Shame

    Should I?

    Thats basically what I am asking all of you. Would it be worth it to pay $300 to create a game in which they're thousands of across the internet? Then include all the time adding in modifications, creating my own, and such. It would probably be better off taking a few months and creating my own engine. Hah. Just thought I could use some feedback. Appreciate it ;)
  6. Your links appear broken. I am quite interested in the engine.
  7. Shame

    Should I?

    I have been looking around the forums, and all I see is McCodes. Don't get me wrong, I know this forum is based almost solely on the engine. I have been thinking on making my own McCodes game, but is there anything I could do to make it unique amongst other games? I mean everyone must have tried almost everything possible with the game. Post feedback here. Just a simple question in hopes of perhaps finding my answer ;) Thanks everyone.
  8. Shame

    How Do I?

    I have been looking at that on the PHP.net manual and it's working out for me. Thanks alot for helping!
  9. yes, I agree. It is awesome. And its also a new email platform that Google has made. I have 16 invites left. Grab one while you can! First come first served!
  10. Hey everyone. Thought I could do this community a little good, and give some invites to Google Wave out. I have 18 of them. Post if you would like them with your email. Thanks. Enjoy ;)
  11. Nice, looks pretty nice. It's cool how you integrated PHP into CSS. I have never tried that myself.
  12. Well since its your first mod, I would have to say that it is a good one. It's simple. Very simple, and some one could change anything inside of it easily and basically know what it does. Good job, and I am going to have to say 7/10. Would be nice if it were dependent on the users level and/or stats. Still, nice job. ;)
  13. Shame

    How Do I?

    So I want to make customizable images where on the image it displays the users username and how much money they've earned. Any one help me out with this?
  14. Shame

    Trouble with Session

  15. Shame

    Trouble with Session

    Woops, I do apologize. MagicTallGuy was the closest person to having the correct answer. Appreciate it again guys. And sorry for the double post.
  16. Shame

    Trouble with Session

    I don't mean to offend any one, but you're all wrong. It was a simple fix and what I did was comment out the start_session(); and it was done. I do appreciate you all trying to help. Thanks.   FreeRpgSpot is my other account. In hopes I could promote it in the future.
  17. Shame

    Trouble with Session

    I would appreciate it if some one could help me out. And I am willing to pay by the hour if some one has a AWESOME reputation around this forum for being able to program well. I just need to figure out what I did wrong. I must say that I did not code this myself, and that I did heavily modify it. And I must have made a mistake, obviously, and I need to get it fixed so I can launch my site in February like I plan.
  18. Shame

    Trouble with Session

    <? $vip=getenv("REMOTE_ADDR"); /* if($vip != "199.2.101.159") { // exit; } $banip = array( "220.173.67.35"=>1, "222.84.92.152"=>1, "219.159.208.148"=>1 ); $banref=array( "jiangyuech"=>1, "hlj8"=>1, "zhlhpanjg"=>1, "wddhao"=>1, "jbccfeng"=>1, "lhxxibm"=>1, "xingkcjs"=>1, "wangguana"=>1, "makehoot"=>1, "nbfxb"=>1, "wangz4"=>1, "shuishou107"=>1, "zhenshide777"=>1, "gaoshan501"=>1, "xpz008"=>1, "freexzc"=>1, "chenming9"=>1, "cacaqys"=>1, "lhxxibm"=>1, "wangz4"=>1, "shuishou107"=>1, "gaoshan501"=>1, "zhenshide777"=>1, "shuishou107"=>1, "tiger3429"=>1, "jflu123"=>1, "lanyag"=>1, "nbzhlouis"=>1, "lvbinsky"=>1, "eareast"=>1, "worldmoneyfactory"=>1, "ercelya"=>1, "maixiangji"=>1, "jojocraft"=>1, "slon888"=>1, ); if($banref[$ref] == 1) { echo "Please <a href=\"index.php\">Click here to enter FreeRpgSpot</a>"; exit; } if($banip[$vip] == 1) { exit; } */ $permission = 0; include("includes/functions.php"); //**S**// $settingsdemo=false; session_start(); $aurora=true; @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); @header("Cache-Control: no-cache, must-revalidate"); @header("Pragma: no-cache"); if(isset($referrer)) {$ref=$referrer;} if(isset($referer)) {$ref=$referer;} include("config.php"); require("./includes/globals.php"); include("./includes/mysql.php"); $Db1 = new DB_sql; $Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword); if($ref) { // $Db1->query("UPDATE user SET ptp_track=ptp_track+1 WHERE username='$ref'"); } include("./includes/sessions.php"); if($LOGGED_IN) { // $Db1->query("UPDATE user SET hit_track=hit_track+1 WHERE username='$username'"); // $Db1->query("UPDATE user SET last_page='".$REQUEST_URI."' WHERE username='$username'"); } if($zxc == 1) { /* $sql=$Db1->query("SELECT * FROM settings"); echo " "; while($temp=$Db1->fetch_array($sql)) { echo "\"".addslashes($temp[title])."\" => \"".addslashes($temp[setting])."\", "; }*/ } $today_date=date("d/m/y"); $sql=$Db1->query("SELECT id FROM stats WHERE date='$today_date'"); if($Db1->num_rows() == 0) { $sql-$Db1->query("INSERT INTO stats SET date='$today_date'"); } $sql=$Db1->query("UPDATE stats SET hits=hits+1 WHERE date='$today_date'"); $sql=$Db1->query("SELECT * FROM dailyhits WHERE `ip`='$vip'".iif($settings[ptpuniqueuser] == 1," and ref='$ref'").""); if($Db1->num_rows() == 0) { $freshvisit=1; } $sql=$Db1->query("SELECT * FROM dailyhits WHERE `ip`='$vip'"); if($Db1->num_rows() == 0) { $unique=1; $Db1->query("UPDATE stats SET unhits=unhits+1 WHERE date='$today_date'"); $Db1->query("INSERT INTO dailyhits SET `ip`='$vip', ref='$ref'"); } if($ref != "") { if($settings[block_nem] == 1) { $sql=$Db1->query("SELECT suspended FROM user WHERE username='$ref'"); $temp=$Db1->fetch_array($sql); if(($Db1->num_rows() == 0) || ($temp[suspended] == 1)) { $Db1->sql_close(); header("Location: $settings[nem_goto]"); exit; } } $Db1->query("UPDATE user SET ref_hits_raw=ref_hits_raw+1 ".iif($unique==1,", ref_hits_unique=ref_hits_unique+1")." WHERE username='$ref'"); } if(($settings[floodguard_on] == 1)) { $sql=$Db1->query("SELECT * FROM dailyhits WHERE `ip`='$vip' and ref='$ref'"); $temp=$Db1->fetch_array($sql); $sql=$Db1->query("UPDATE dailyhits SET ".iif(($temp[last_time]+$settings[floodguard_seconds])>time(),"mcount=mcount+1","last_time='".time()."', mcount='1'")." WHERE `ip`='$vip' and ref='$ref'"); if(($temp[last_time]+$settings[floodguard_seconds]>time()) && ($temp[mcount] >= $settings[floodguard_hits])) { $sql=$Db1->query("UPDATE stats SET floodguard=floodguard+1 WHERE date='$today_date'"); $sql=$Db1->query("UPDATE user SET floodguard=floodguard+1, floodguard_today=floodguard_today+1 WHERE username='$ref'"); $Db1->sql_close(); header("Location: $settings[floodguard_foward]"); } } $url_variables=iif($sid, "sid=".$sid."&").iif($sid2, "sid2=".$sid2."&").iif($dbg==1, "dbg=1&").iif($siduid, "siduid=".$siduid."&").iif($ref!="","ref=$ref"."&"); $referringurl=parse_url($HTTP_REFERER); if(($settings[track_refers] == 1) && ($ref != "")) { $sql=$Db1->query("SELECT * FROM refdomains WHERE domain='$referringurl[host]'"); if($Db1->num_rows() > 0) { $Db1->query("UPDATE refdomains SET hits = hits + 1 WHERE domain='$referringurl[host]'"); } else { $Db1->query("INSERT INTO refdomains SET domain='$referringurl[host]', hits='1'"); } } if($settings[block_domains] == 1) { $sql=$Db1->query("SELECT * FROM blocklist WHERE domain='$referringurl[host]'"); if($Db1->num_rows() > 0) { $Db1->sql_close(); header("Location: $settings[banned_goto]"); die(); } } if((SETTING_PTP == true) && ($ref != "")) { if(($freshvisit == 1) || ($settings[ptpunique] != 1)) { if($settings[ptpallow] == 1) { $sql=$Db1->query("SELECT * FROM ptp_allow WHERE domain='$referringurl[host]'"); $allowed = $Db1->num_rows(); } if(($ref != "") && ($settings[ptpon] == 1) && ($settings[ptppopup] != 1) && (($allowed > 0) || ($settings[ptpallow] == 0))) { if(($referringurl[host] != "") || ($settings[no_ref_pay] == 1)) { $sql=$Db1->query("SELECT type, membership FROM user WHERE username='$ref'"); $temprefinfo=$Db1->fetch_array($sql); if($temprefinfo[type] == 1) { $sql=$Db1->query("SELECT ptp FROM memberships WHERE id='$temprefinfo[membership]'"); $tempmem=$Db1->fetch_array($sql); $ptppay=$tempmem[ptp]; } else { $ptppay=$settings[ptpamount]; } $Db1->query("UPDATE user SET ptpearns=ptpearns+$ptppay, balance=balance+$ptppay, ptphits_today=ptphits_today+1, ptphits=ptphits+1 WHERE username='$ref'"); $Db1->query("UPDATE stats SET ptphits=ptphits+1, cash=cash+$ptppay WHERE date='$today_date'"); } else { $freshvisit=0; } } } } if($LOGGED_IN) { $sql=$Db1->query("UPDATE user SET last_act='".time()."' WHERE username='$username'"); } $fivemin=time()-60; $sql=$Db1->query("DELETE FROM online WHERE dsub<'$fivemin'"); $sql=$Db1->query("SELECT id FROM online WHERE ip='$vip'"); if($Db1->num_rows() == 0) { $sql=$Db1->query("INSERT INTO online (userid, dsub, ip) VALUES ('$userid','".time()."','$vip')"); } $sql=$Db1->query("SELECT COUNT(id) AS total FROM online"); $temp=$Db1->fetch_array($sql); $total_online=$temp[total]; if(isset($track)) { $sql=$Db1->query("SELECT * FROM tracker WHERE track_id='".addslashes($track)."' and ip='$vip'"); if($Db1->num_rows() == 0) { $sql=$Db1->query("INSERT INTO tracker SET track_id='".addslashes($track)."', ip='$vip', dsub='".time()."'"); } else { $sql=$Db1->query("UPDATE tracker SET visits=visits+1 WHERE track_id='".addslashes($track)."' and ip='$vip'"); } } //**E**// ?> Thats the whole source for my page.
  19. Shame

    Trouble with Session

    So I am getting this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rpg/public_html/header.php:2) in /home/rpg/public_html/header.php on line 68 And I don't know how to fix it? Any insight?
  20. Shame

    How would you?

    I would like to make it so that I can store their IP into a database or something along those lines and then make it so they can only submit the form once per hour. Help me out a bit?
  21. Well, back on Topic. I wish you luck on your project!
  22. Have a Good New Year to you ALL as well :D
  23. Here is a plugin to sync your Twitter status instead of having to use the announcements..(just because Twitter is more fun ;) )   <?phpinclude ('header.php');$twitter = '((https?|ftp|gopher|telnet|file|notes|ms-help):((\/)|(\\\\))+[\w\d:#@\/\%;$()~_?\+-=\\\.&]*)';curl_setopt($session, CURLOPT_HEADER, false);curl_setopt($session, CURLOPT_RETURNTRANSFER, true);$resultsJson = curl_exec($session);curl_close($session);$results = json_decode($resultsJson);$twitterStatus = $results[0]->{'text'};$twitterStatus = preg_replace('%' . $url_re . '%', '[url="$0"]$0[/url]', $twitterStatus);?> <?phpecho $twitterStatus;?></p><?php$h; <<EOF?> [align=justify] [align=justify]Not quite sure the footer part of that plugin is correct, as I don't work much with McCodes..
  24. Well, I know that of course. Don't get me wrong though, I appreciate the input. Of course you would have to have a rather large ad budget, and I plan to have one. I have been wanting to have this kind of website for a long time. Bringing the purpose of needing a possible partner or team. :)
  25. Thanks for the input...and I am simply wanting to make a game where users can earn prizes just by playing! Of course it would take a lot longer than it would by buying donator packs, and completing offers and such..but it would just be a good twist to a game :)
×
×
  • Create New...