Clan emblem upload

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Clan emblem upload

    waaa... this is the third time im posting.. but i dint get any solution.....................
    i get error in sec.php.. sum thing like redeclare or sum thing


  2. #2
    Account Upgraded | Title Enabled! alfredao is offline
    MemberRank
    Jan 2008 Join Date
    Coronel FabriciLocation
    705Posts

    Re: Clan emblem upload

    What error?

  3. #3
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Clan emblem upload

    Fatal error: Cannot redeclare writetologfile() (previously declared in C:\AppServ\www\web\emblem\sec.php:3) in C:\AppServ\www\web\emblem\sec.php on line 27
    this error

  4. #4
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Clan emblem upload

    Sounds like a re-definition of a function; I remember someone else posting a script with that same fault, just post the entire script.

  5. #5
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Clan emblem upload

    <?
    /////////////////////////////
    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;
    }
    } }
    ?>
    there now solve my prob pl0x :|

  6. #6
    Proficient Member bunny1995 is offline
    MemberRank
    Jul 2008 Join Date
    -Next To You-Location
    193Posts

    Re: Clan emblem upload

    use rotana's clan upload script in search button on top thx

  7. #7
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Clan emblem upload

    dude it is rotana's scripts

  8. #8
    Infraction Banned MicroManiacs is offline
    MemberRank
    Apr 2009 Join Date
    326Posts

    Re: Clan emblem upload

    Rotana script emblem isn't work lala !
    Ingame i can't see the emblem !

  9. #9
    Proficient Member MatanStyle is offline
    MemberRank
    Dec 2008 Join Date
    153Posts

    Re: Clan emblem upload

    yeah how i got same problem



Advertisement