[HELP] Emblem UPLOAD

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! JuanMedina is offline
    MemberRank
    Feb 2009 Join Date
    VenezuelaLocation
    227Posts

    [HELP] Emblem UPLOAD

    Hello friends, I was wondering where I can get the script to upload Emblems clan? I can not find it anywhere, DNWeb is damaged

    Give me this error:
    Code:
    Fatal error:  Cannot redeclare writetologfile() (previously declared in C:\AppServ\www\emblem\sec.php:3) in C:\AppServ\www\emblem\sec.php on line 27
    and this is my sec.php:
    Code:
    <? 
    /////////////////////////////
    function writeToLogFile($msg)
    {
    //     $today = date("M j G:i:s Y"); 
         $today = date("Y_m_d"); 
         $logfile = "../logs/".$today."_log_SQL INJECTIONS.txt"; 
         $dir = '';
         $saveLocation=$logfile;
         $fp = @fopen( $saveLocation,"r");
         $Data = @fread($fp, 800000);
    
         if (!$handle = @fopen($saveLocation, "w+b"))
        {
         echo "error";
              exit;
         }
         else
         {
              if(@fwrite($handle,"$msg\r\n SQL Injection detected\r\n$Data")===FALSE) 
              {
                   echo "geen error";
                   exit;
              }
                @fclose($handle);
         }
    }
    /////////////////////////////
    function anti_injection($sql)
    {
    $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
    $sql = trim($sql);
    $sql = strip_tags($sql);
    $sql = addslashes($sql);
    return $sql;
    } 
    /////////////////////////////
    function valida($campos){
      foreach($campos as $c){
          if(empty($c)){ 
            echo ":: You have attempt to SQL inject. Log saved and sended to the webmaster ::<br />"; 
           $time = date("M j G:i:s Y"); 
    $ip = getenv('REMOTE_ADDR');
    $userAgent = getenv('HTTP_USER_AGENT');
    $referrer = getenv('HTTP_REFERER');
    $query = getenv('QUERY_STRING');
    $msg = "IP: " . $ip . " TIME: " . $time . " REFERRER: " . $referrer . " SEARCHSTRING: " . $query;
    writeToLogFile($msg);
            return false;
          }else{
            return true;
          }
    } }
    ?>
    NEED HELP PLEASE!


  2. #2
    Rival Gamers Owner own_prox is offline
    MemberRank
    Jul 2007 Join Date
    HellLocation
    1,077Posts

    Re: [HELP] Emblem UPLOAD

    youve used write log file twice lol thats y

  3. #3
    Rival Gamers Owner own_prox is offline
    MemberRank
    Jul 2007 Join Date
    HellLocation
    1,077Posts

    Re: [HELP] Emblem UPLOAD

    function writeToLogFile()

  4. #4
    Account Upgraded | Title Enabled! JuanMedina is offline
    MemberRank
    Feb 2009 Join Date
    VenezuelaLocation
    227Posts

    Re: [HELP] Emblem UPLOAD

    so? what i've to do man, explain better please!

  5. #5
    My Religion: Love ♥ diosz is offline
    MemberRank
    Feb 2008 Join Date
    IDK~Location
    314Posts

    Re: [HELP] Emblem UPLOAD

    look this =P

    first use seach xD

    http://forum.ragezone.com/f497/clan-emblems-492792/

    its good tutorial =P
    am in this part

    Code:
    	<EMBLEM_URL>http://your wan ip/</EMBLEM_URL>
            
    	<TEMBLEM_URL>http://your wan ip/</TEMBLEM_URL>
    you should better use host of web and no wan-ip

    example:

    Code:
    	<EMBLEM_URL>http://mysite.no-ip.org/</EMBLEM_URL>
            
    	<TEMBLEM_URL>http://mysite.no-ip.org/</TEMBLEM_URL>
    if you have other problem you can ask here ^^
    too i speak spanish xD
    So you can ask me in PM ^^

    i think you too speak spanish because i see your site jiji and is good your site ^^ =P

  6. #6
    Account Upgraded | Title Enabled! JuanMedina is offline
    MemberRank
    Feb 2009 Join Date
    VenezuelaLocation
    227Posts

    Re: [HELP] Emblem UPLOAD

    OMG Man thaaanks im gonna do that right now! and yes im spanish i come from venezuelan, please add me in this messenger: "admin@mpogonline.net" its for help :D

  7. #7
    Account Upgraded | Title Enabled! JuanMedina is offline
    MemberRank
    Feb 2009 Join Date
    VenezuelaLocation
    227Posts

    Re: [HELP] Emblem UPLOAD

    ----------------------------------english--------------------------------------------------------
    I have already done that, but as usual ... I have already uploaded the image and does not appear in the game!
    -----------------------------------spanish------------------------------------------------------
    ya he hecho eso, pero sigue igual... ya he subido la imagen y no aparece en el juego!



Advertisement