PlaySro Full Website [PHP]

Page 4 of 6 FirstFirst 123456 LastLast
Results 46 to 60 of 78
  1. #46
    Enthusiast Furious2 is offline
    MemberRank
    May 2012 Join Date
    35Posts

    Re: [Release] PlaySro Full Website [PHP]

    Quote Originally Posted by anikan1985 View Post
    well the design only appear if the SQL connection Succesfuly ...

    isnt working for me so i deleted all ...
    well scripts are good but its crap :P

  2. #47
    Apprentice SkyKillers is offline
    MemberRank
    Apr 2012 Join Date
    19Posts

    Re: PlaySro Full Website [PHP]

    Nice

  3. #48
    Valued Member xlinh is offline
    MemberRank
    May 2012 Join Date
    126Posts

    Re: PlaySro Full Website [PHP]

    Quote Originally Posted by CEZALAND View Post
    Hello to all again,i find another backup on server.

    Demo: PlaySRO HighRate Server
    Download: http://www.playsro.com/index.zip
    Mirror: playsro.zip

    Its incudes vBulletin 4.1.7 ()
    and its not working for me(i tryed too much things but you can do it & You can make a development on it )
    And i already tryed delete this lines;
    PHP Code:
      if(strstr($_SERVER['HTTP_HOST'],"www")){
        
    header('Location:http://playsro.com');
        die();
      } 
    and i tryed more but nevermind.

    I think you will start to use your brain.

    I'm very like it. you can work video work web sro

  4. #49
    Enthusiast lecosu is offline
    MemberRank
    Dec 2005 Join Date
    RomaniaLocation
    32Posts

    Re: PlaySro Full Website [PHP]

    www\module\p_head.php

    untitled.jpg

    untitled2.jpg

  5. #50
    Enthusiast lecosu is offline
    MemberRank
    Dec 2005 Join Date
    RomaniaLocation
    32Posts

    Re: PlaySro Full Website [PHP]

    www\module\p_head.php

    if you have wamp activate rewrite_module in apache

    untitled.jpg

    untitled2.jpg

  6. #51
    Account Upgraded | Title Enabled! SupremeSRO is offline
    MemberRank
    Apr 2012 Join Date
    326Posts

    Re: PlaySro Full Website [PHP]

    im using iis , deleted the two lines you said in p_head , but still just can see it: playsro.png

    any hint?

  7. #52
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Re: PlaySro Full Website [PHP]

    wasnt so hard now fixin all the stuff

  8. #53
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    Re: PlaySro Full Website [PHP]

    Last edited by denise456; 15-12-12 at 01:17 AM.

  9. #54
    Account Upgraded | Title Enabled! RevoLand is offline
    MemberRank
    Jan 2009 Join Date
    117Posts

    Re: PlaySro Full Website [PHP]

    try this (module/func.php)
    PHP Code:
    <?php 
      
    require_once('sts/include.php');
      function 
    db_log($qrl){
        
    // $lkl = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$lkl) err_log('db_log: can\'t connect to SQL server');
        // $dbsl = mysql_select_db(MY_DB, $lkl);
        // if (!$dbsl) err_log('db_log: can\'t select SQL database');
        // $qr=mysql_query($qrl);
        // if(!$qr) err_log('db_log: SQL querry:'.$qrl.', error: '.mysql_error());
        // mysql_close($lkl);
      
    }
      function 
    svsts(){
        
    ob_start();
        
    sv_sts();
        
    $result ob_get_contents();
        
    ob_end_clean();
        
    $result str_replace(PHP_EOL,"",$result);
        
    $parts explode("<br />",$result);
        if(
    count($parts[0])==0||$parts[0]!="Success"){
          
    $svsts=array('0','Heaven','0','3000','0');
        }else{
          for(
    $x=0;$x<count($parts);++$x){
            
    $lines explode"|"$parts[$x] );
            if( 
    count$lines ) < ) continue;
            if(
    $lines[0]=='Id')continue;
            
    $svsts=$lines;
          }
          
    db_log('INSERT INTO online(Heaven,Hell) VALUES ('.$svsts[2].',0)');
        }
        return 
    $svsts;
      }
      function 
    err_log($text) {
        
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a');
        if(
    is_writable('logs/'.date("ymd").'_error_log.txt')){
          if(!
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a'))
            die(
    'Error opening log file, check permissions.');
          if (
    fwrite($h,"[".date("d.m.y H:i:s")."] ".$text."\n")===false)
            die(
    'Error writing log file, check permissions.');
          
    fclose($h);
        }else
          die(
    'Error, log file is not writable.');
      }
      function 
    escape($s) {
        global 
    $text;
        
    $text strip_tags($text);
        
    $code $s[1];
        
    $code htmlspecialchars($code);
        
    $code str_replace("[""["$code);
        
    $code str_replace("]""]"$code);
        return 
    '<div class=n_qtn>Code:</div><div class=n_qtb><pre>'.$code.'</pre></div>';
      };  
      function 
    removeBr($s) {
        return 
    str_replace("<br />"""$s[0]);
      }
      function 
    BBCode2Html($text) {
        
    $text trim($text);
        
    $text preg_replace_callback('/\[code\](.*?)\[\/code\]/msi'"escape"$text);
        
    $in = array(    '/\[b\](.*?)\[\/b\]/msi',  
                        
    '/\[center\](.*?)\[\/center\]/msi',  
                        
    '/\[i\](.*?)\[\/i\]/msi',
                        
    '/\[u\](.*?)\[\/u\]/msi',
                        
    '/\[img\](.*?)\[\/img\]/msi',
                        
    '/\[email\](.*?)\[\/email\]/msi',
                        
    '/\[url\="?(.*?)"?\](.*?)\[\/url\]/msi',
                        
    '/\[url\](.*?)\[\/url\]/msi',
                        
    '/\[size\="?(.*?)"?\](.*?)\[\/size\]/msi',
                        
    '/\[font\="?(.*?)"?\](.*?)\[\/font\]/msi',
                        
    '/\[color\="?(.*?)"?\](.*?)\[\/color\]/msi',
                        
    '/\[quote](.*?)\[\/quote\]/msi',
                        
    '/\[quote\=(.*?)\](.*?)\[\/quote\]/msi',
                        
    '/\
    [list\=(.*?)\](.*?)\[\/list\]/msi'
    ,
                        
    '/\
    [list\](.*?)\[\/list\]/msi'
    ,
                        
    '/\[\*\]\s?(.*?)\n/msi'
                       
    );
        
    $out = array(   '<strong>\1</strong>',
                        
    '<center>\1</center>',
                        
    '<em>\1</em>',
                        
    '<u>\1</u>',
                        
    '<img src="\1" alt="\1" />',
                        
    '<a href="mailto:\1">\1</a>',
                        
    '<a href="\1">\2</a>',
                        
    '<a href="\1">\1</a>',
                        
    '<font size="\1">\2</font>',
                        
    '<font face="\1">\2</font>',
                        
    '<font color="\1">\2</font>',
                        
    '<div class=n_qtn>Quote:</div><div class=n_qtb>\1</div>',
                        
    '<div class=n_qtn>Quote <b>\1</b>:</div><div class=n_qtb>\2</div>',
                        
    '<ol start="\1">\2</ol>',
                        
    '<ul>\1</ul>',
                        
    '<li>\1</li>'
                       
    );
        
    $text preg_replace($in$out$text);
        
    $text str_replace("\r"""$text);
        
    $text nl2br($text);
        
    $text preg_replace_callback('/<pre>(.*?)<\/pre>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><pre>(.*?)<\/pre><\/p>/ms'"<pre>\\1</pre>"$text);
        
    $text preg_replace_callback('/<ul>(.*?)<\/ul>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><ul>(.*?)<\/ul><\/p>/ms'"<ul>\\1</ul>"$text);
        return 
    $text;
      }
      function 
    get_news($x){
        
    // $link = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$link) die('Could not connect to MySQL server.');
        // $db_selected = mysql_select_db(MY_DB, $link);
        // if (!$db_selected) die('Could not connect to MySQL database.');
        // $q=mysql_query('SELECT id,`date`,title,body FROM news WHERE type='.$x.' ORDER BY id DESC LIMIT 6');
        // while($r=mysql_fetch_row($q)){
          // $news[]=$r;
        // }
        // mysql_close($link);
        // return $news;
      
    }
      function 
    cache($func,$time){
        
    // $id=md5($func);
        // $fn='cache/'.$id;
        // if(file_exists($fn) && (time()-filemtime($fn))<$time){
          // $x=file_get_contents($fn);
          // if($x) $data=unserialize($x);
          // else die('Cache Error !!!');
        // }else{
          // $data=eval($func);
          // if($data)fwrite(fopen($fn,"w"),serialize($data));
          // else die('Cache Error !!!');
        // }
        // return $data;
      
    }
      
    ?>
    You still need MySQL database of this website for get working well (or you have to edit much things)

    http://localhostr.com/file/AOIwsI5DKFKs/playsro.png

  10. #55
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    Re: PlaySro Full Website [PHP]

    [QUOTE=RevoLand;7370725]try this (module/func.php)
    PHP Code:
    <?php 
      
    require_once('sts/include.php');
      function 
    db_log($qrl){
        
    // $lkl = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$lkl) err_log('db_log: can\'t connect to SQL server');
        // $dbsl = mysql_select_db(MY_DB, $lkl);
        // if (!$dbsl) err_log('db_log: can\'t select SQL database');
        // $qr=mysql_query($qrl);
        // if(!$qr) err_log('db_log: SQL querry:'.$qrl.', error: '.mysql_error());
        // mysql_close($lkl);
      
    }
      function 
    svsts(){
        
    ob_start();
        
    sv_sts();
        
    $result ob_get_contents();
        
    ob_end_clean();
        
    $result str_replace(PHP_EOL,"",$result);
        
    $parts explode("<br />",$result);
        if(
    count($parts[0])==0||$parts[0]!="Success"){
          
    $svsts=array('0','Heaven','0','3000','0');
        }else{
          for(
    $x=0;$x<count($parts);++$x){
            
    $lines explode"|"$parts[$x] );
            if( 
    count$lines ) < ) continue;
            if(
    $lines[0]=='Id')continue;
            
    $svsts=$lines;
          }
          
    db_log('INSERT INTO online(Heaven,Hell) VALUES ('.$svsts[2].',0)');
        }
        return 
    $svsts;
      }
      function 
    err_log($text) {
        
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a');
        if(
    is_writable('logs/'.date("ymd").'_error_log.txt')){
          if(!
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a'))
            die(
    'Error opening log file, check permissions.');
          if (
    fwrite($h,"[".date("d.m.y H:i:s")."] ".$text."\n")===false)
            die(
    'Error writing log file, check permissions.');
          
    fclose($h);
        }else
          die(
    'Error, log file is not writable.');
      }
      function 
    escape($s) {
        global 
    $text;
        
    $text strip_tags($text);
        
    $code $s[1];
        
    $code htmlspecialchars($code);
        
    $code str_replace("[""["$code);
        
    $code str_replace("]""]"$code);
        return 
    '<div class=n_qtn>Code:</div><div class=n_qtb><pre>'.$code.'</pre></div>';
      };  
      function 
    removeBr($s) {
        return 
    str_replace("<br />"""$s[0]);
      }
      function 
    BBCode2Html($text) {
        
    $text trim($text);
        
    $text preg_replace_callback('/\[code\](.*?)\[\/code\]/msi'"escape"$text);
        
    $in = array(    '/\[b\](.*?)\[\/b\]/msi',  
                        
    '/\[center\](.*?)\[\/center\]/msi',  
                        
    '/\[i\](.*?)\[\/i\]/msi',
                        
    '/\[u\](.*?)\[\/u\]/msi',
                        
    '/\[img\](.*?)\[\/img\]/msi',
                        
    '/\[email\](.*?)\[\/email\]/msi',
                        
    '/\[url\="?(.*?)"?\](.*?)\[\/url\]/msi',
                        
    '/\[url\](.*?)\[\/url\]/msi',
                        
    '/\[size\="?(.*?)"?\](.*?)\[\/size\]/msi',
                        
    '/\[font\="?(.*?)"?\](.*?)\[\/font\]/msi',
                        
    '/\[color\="?(.*?)"?\](.*?)\[\/color\]/msi',
                        
    '/\[quote](.*?)\[\/quote\]/msi',
                        
    '/\[quote\=(.*?)\](.*?)\[\/quote\]/msi',
                        
    '/\
    [list\=(.*?)\](.*?)\[\/list\]/msi'
    ,
                        
    '/\
    [list\](.*?)\[\/list\]/msi'
    ,
                        
    '/\[\*\]\s?(.*?)\n/msi'
                       
    );
        
    $out = array(   '<strong>\1</strong>',
                        
    '<center>\1</center>',
                        
    '<em>\1</em>',
                        
    '<u>\1</u>',
                        
    '<img src="\1" alt="\1" />',
                        
    '<a href="mailto:\1">\1</a>',
                        
    '<a href="\1">\2</a>',
                        
    '<a href="\1">\1</a>',
                        
    '<font size="\1">\2</font>',
                        
    '<font face="\1">\2</font>',
                        
    '<font color="\1">\2</font>',
                        
    '<div class=n_qtn>Quote:</div><div class=n_qtb>\1</div>',
                        
    '<div class=n_qtn>Quote <b>\1</b>:</div><div class=n_qtb>\2</div>',
                        
    '<ol start="\1">\2</ol>',
                        
    '<ul>\1</ul>',
                        
    '<li>\1</li>'
                       
    );
        
    $text preg_replace($in$out$text);
        
    $text str_replace("\r"""$text);
        
    $text nl2br($text);
        
    $text preg_replace_callback('/<pre>(.*?)<\/pre>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><pre>(.*?)<\/pre><\/p>/ms'"<pre>\\1</pre>"$text);
        
    $text preg_replace_callback('/<ul>(.*?)<\/ul>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><ul>(.*?)<\/ul><\/p>/ms'"<ul>\\1</ul>"$text);
        return 
    $text;
      }
      function 
    get_news($x){
        
    // $link = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$link) die('Could not connect to MySQL server.');
        // $db_selected = mysql_select_db(MY_DB, $link);
        // if (!$db_selected) die('Could not connect to MySQL database.');
        // $q=mysql_query('SELECT id,`date`,title,body FROM news WHERE type='.$x.' ORDER BY id DESC LIMIT 6');
        // while($r=mysql_fetch_row($q)){
          // $news[]=$r;
        // }
        // mysql_close($link);
        // return $news;
      
    }
      function 
    cache($func,$time){
        
    // $id=md5($func);
        // $fn='cache/'.$id;
        // if(file_exists($fn) && (time()-filemtime($fn))<$time){
          // $x=file_get_contents($fn);
          // if($x) $data=unserialize($x);
          // else die('Cache Error !!!');
        // }else{
          // $data=eval($func);
          // if($data)fwrite(fopen($fn,"w"),serialize($data));
          // else die('Cache Error !!!');
        // }
        // return $data;
      
    }
      
    ?>
    [/quote]
    You still need MySQL database of this website for get working well (or you have to edit much things)

    http://localhostr.com/file/AOIwsI5DKFKs/playsro.png
    Thank's

  11. #56
    Apprentice Avira is offline
    MemberRank
    Dec 2012 Join Date
    14Posts

    Re: PlaySro Full Website [PHP]

    Try Use The Zend Server its Better

  12. #57
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    Re: PlaySro Full Website [PHP]

    I use Xampp

  13. #58
    Apprentice Avira is offline
    MemberRank
    Dec 2012 Join Date
    14Posts

    Re: PlaySro Full Website [PHP]

    Quote Originally Posted by denise456 View Post
    I use Xampp
    Use Zend Server + IIS i Think its will Fixed

    Best Regards.

  14. #59
    Learning denise456 is offline
    MemberRank
    Feb 2012 Join Date
    BrasilLocation
    318Posts

    Re: PlaySro Full Website [PHP]

    ok thx

  15. #60
    Member Metalikana is offline
    MemberRank
    Nov 2012 Join Date
    51Posts

    Re: PlaySro Full Website [PHP]

    [QUOTE=RevoLand;7370725]try this (module/func.php)
    PHP Code:
    <?php 
      
    require_once('sts/include.php');
      function 
    db_log($qrl){
        
    // $lkl = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$lkl) err_log('db_log: can\'t connect to SQL server');
        // $dbsl = mysql_select_db(MY_DB, $lkl);
        // if (!$dbsl) err_log('db_log: can\'t select SQL database');
        // $qr=mysql_query($qrl);
        // if(!$qr) err_log('db_log: SQL querry:'.$qrl.', error: '.mysql_error());
        // mysql_close($lkl);
      
    }
      function 
    svsts(){
        
    ob_start();
        
    sv_sts();
        
    $result ob_get_contents();
        
    ob_end_clean();
        
    $result str_replace(PHP_EOL,"",$result);
        
    $parts explode("<br />",$result);
        if(
    count($parts[0])==0||$parts[0]!="Success"){
          
    $svsts=array('0','Heaven','0','3000','0');
        }else{
          for(
    $x=0;$x<count($parts);++$x){
            
    $lines explode"|"$parts[$x] );
            if( 
    count$lines ) < ) continue;
            if(
    $lines[0]=='Id')continue;
            
    $svsts=$lines;
          }
          
    db_log('INSERT INTO online(Heaven,Hell) VALUES ('.$svsts[2].',0)');
        }
        return 
    $svsts;
      }
      function 
    err_log($text) {
        
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a');
        if(
    is_writable('logs/'.date("ymd").'_error_log.txt')){
          if(!
    $h=fopen('logs/'.date("ymd").'_error_log.txt','a'))
            die(
    'Error opening log file, check permissions.');
          if (
    fwrite($h,"[".date("d.m.y H:i:s")."] ".$text."\n")===false)
            die(
    'Error writing log file, check permissions.');
          
    fclose($h);
        }else
          die(
    'Error, log file is not writable.');
      }
      function 
    escape($s) {
        global 
    $text;
        
    $text strip_tags($text);
        
    $code $s[1];
        
    $code htmlspecialchars($code);
        
    $code str_replace("[""["$code);
        
    $code str_replace("]""]"$code);
        return 
    '<div class=n_qtn>Code:</div><div class=n_qtb><pre>'.$code.'</pre></div>';
      };  
      function 
    removeBr($s) {
        return 
    str_replace("<br />"""$s[0]);
      }
      function 
    BBCode2Html($text) {
        
    $text trim($text);
        
    $text preg_replace_callback('/\[code\](.*?)\[\/code\]/msi'"escape"$text);
        
    $in = array(    '/\[b\](.*?)\[\/b\]/msi',  
                        
    '/\[center\](.*?)\[\/center\]/msi',  
                        
    '/\[i\](.*?)\[\/i\]/msi',
                        
    '/\[u\](.*?)\[\/u\]/msi',
                        
    '/\[img\](.*?)\[\/img\]/msi',
                        
    '/\[email\](.*?)\[\/email\]/msi',
                        
    '/\[url\="?(.*?)"?\](.*?)\[\/url\]/msi',
                        
    '/\[url\](.*?)\[\/url\]/msi',
                        
    '/\[size\="?(.*?)"?\](.*?)\[\/size\]/msi',
                        
    '/\[font\="?(.*?)"?\](.*?)\[\/font\]/msi',
                        
    '/\[color\="?(.*?)"?\](.*?)\[\/color\]/msi',
                        
    '/\[quote](.*?)\[\/quote\]/msi',
                        
    '/\[quote\=(.*?)\](.*?)\[\/quote\]/msi',
                        
    '/\
    [list\=(.*?)\](.*?)\[\/list\]/msi'
    ,
                        
    '/\
    [list\](.*?)\[\/list\]/msi'
    ,
                        
    '/\[\*\]\s?(.*?)\n/msi'
                       
    );
        
    $out = array(   '<strong>\1</strong>',
                        
    '<center>\1</center>',
                        
    '<em>\1</em>',
                        
    '<u>\1</u>',
                        
    '<img src="\1" alt="\1" />',
                        
    '<a href="mailto:\1">\1</a>',
                        
    '<a href="\1">\2</a>',
                        
    '<a href="\1">\1</a>',
                        
    '<font size="\1">\2</font>',
                        
    '<font face="\1">\2</font>',
                        
    '<font color="\1">\2</font>',
                        
    '<div class=n_qtn>Quote:</div><div class=n_qtb>\1</div>',
                        
    '<div class=n_qtn>Quote <b>\1</b>:</div><div class=n_qtb>\2</div>',
                        
    '<ol start="\1">\2</ol>',
                        
    '<ul>\1</ul>',
                        
    '<li>\1</li>'
                       
    );
        
    $text preg_replace($in$out$text);
        
    $text str_replace("\r"""$text);
        
    $text nl2br($text);
        
    $text preg_replace_callback('/<pre>(.*?)<\/pre>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><pre>(.*?)<\/pre><\/p>/ms'"<pre>\\1</pre>"$text);
        
    $text preg_replace_callback('/<ul>(.*?)<\/ul>/ms'"removeBr"$text);
        
    $text preg_replace('/<p><ul>(.*?)<\/ul><\/p>/ms'"<ul>\\1</ul>"$text);
        return 
    $text;
      }
      function 
    get_news($x){
        
    // $link = mysql_connect(MY_ADD, MY_UID, MY_PWD);
        // if (!$link) die('Could not connect to MySQL server.');
        // $db_selected = mysql_select_db(MY_DB, $link);
        // if (!$db_selected) die('Could not connect to MySQL database.');
        // $q=mysql_query('SELECT id,`date`,title,body FROM news WHERE type='.$x.' ORDER BY id DESC LIMIT 6');
        // while($r=mysql_fetch_row($q)){
          // $news[]=$r;
        // }
        // mysql_close($link);
        // return $news;
      
    }
      function 
    cache($func,$time){
        
    // $id=md5($func);
        // $fn='cache/'.$id;
        // if(file_exists($fn) && (time()-filemtime($fn))<$time){
          // $x=file_get_contents($fn);
          // if($x) $data=unserialize($x);
          // else die('Cache Error !!!');
        // }else{
          // $data=eval($func);
          // if($data)fwrite(fopen($fn,"w"),serialize($data));
          // else die('Cache Error !!!');
        // }
        // return $data;
      
    }
      
    ?>
    [/quote]
    You still need MySQL database of this website for get working well (or you have to edit much things)

    http://localhostr.com/file/AOIwsI5DKFKs/playsro.png
    how did you get the slider working ^^ ?



Page 4 of 6 FirstFirst 123456 LastLast

Advertisement