[Release][Updated]RoseCP v1.3 (BETA)[Added new Theme]

Page 4 of 6 FirstFirst 123456 LastLast
Results 46 to 60 of 89
  1. #46
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    what version were you trying to install? if its v1.0. then you might need to download the latest. as i no longer use that function..

  2. #47
    Proficient Member itofu is offline
    MemberRank
    Sep 2006 Join Date
    In a BoxLocation
    176Posts
    yea im useing the latest download and i still get the error

  3. #48
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    your link is dead./

  4. #49
    Proficient Member itofu is offline
    MemberRank
    Sep 2006 Join Date
    In a BoxLocation
    176Posts
    no they arnt o.o

  5. #50
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    its down. port 80 is blocked..

  6. #51
    Proficient Member itofu is offline
    MemberRank
    Sep 2006 Join Date
    In a BoxLocation
    176Posts
    try again

  7. #52
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    check your firewall settings..

  8. #53
    Proficient Member itofu is offline
    MemberRank
    Sep 2006 Join Date
    In a BoxLocation
    176Posts
    the 1.3 gives me this error
    $msg "; exit(0); } } ?> * @version 1.0 */ class securelogin { /*---------- | Variable | ----------*/ /** * Object Handler * - setcookie : Set cookie function handler * - header : Header function handler * - encode : Password Hashing function handler * - checklogin : Check login handler * * @var array */ var $handler = array('setcookie' => false , 'header' => false,'encode' => false , 'checklogin' => false); /** * Allow the class to get information from PHP_AUTH_USER and PHP_AUTH_PW * * @var unknown_type */ var $use_auth = false; /** * Save login information to Cookie * * @var bool */ var $use_cookie = true; /** * Save login information to Session (Session must be started before) * * @var bool */ var $use_session = true; /** * Allow the class to get information from a html form * * @var bool */ var $use_post = true; /** * Realm text * * @var string */ var $auth_text = "Please enter your username and password"; /** * Expire time , in second (for cookie mode only) * * @var int */ var $expire = 3600; /** * Login username * * @var string */ var $username = null; /** * Login pass hash * * @var string */ var $passhash = null; /** * Cookie index * @var array **/ var $cookie_index = array('user' => 'auth_user' , 'pass' => 'auth_pass'); /** * Post index * @var array **/ var $post_index = array('user' => 'auth_user' , 'pass' => 'auth_pass'); /** * Session index * @var array **/ var $session_index = array('user' => 'auth_user' , 'pass' => 'auth_pass'); /*---------- | Function | ----------*/ /** * Check login information * * @param bool $check_login Auto check user login information * @return bool */ function haslogin($check_login=false) { if (!isset($_SERVER['PHP_AUTH_USER'])) { if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { $_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; } if (isset($_SERVER['HTTP_AUTHORIZATION']) && strtolower(substr($_SERVER['HTTP_AUTHORIZATION'] , 0 , 6)) == "basic ") { $arrays = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); if (count($arrays) > 1) { $_SERVER['PHP_AUTH_USER'] = $arrays[0]; $_SERVER['PHP_AUTH_PW'] = $arrays[1]; } } } if ($this->use_auth && isset($_SERVER['PHP_AUTH_USER']) && trim($_SERVER['PHP_AUTH_USER']) != "") { $this->username = $_SERVER['PHP_AUTH_USER']; $this->passhash = $this->_encode(@$_SERVER['PHP_AUTH_PW']); $this->username = $this->_stripslashes($this->username); $this->passhash = $this->_stripslashes($this->passhash); } else if ($this->use_post && isset($_POST[$this->post_index['user']]) && trim($_POST[$this->post_index['user']]) != "") { $this->username = $_POST[$this->post_index['user']]; $this->passhash = $this->_encode(@$_POST[$this->post_index['pass']]); $this->username = $this->_stripslashes($this->username); $this->passhash = $this->_stripslashes($this->passhash); } else if ($this->use_cookie && isset($_COOKIE[$this->cookie_index['user']]) && trim($_COOKIE[$this->cookie_index['user']]) != "") { $this->username = $_COOKIE[$this->cookie_index['user']]; $this->passhash = @$_COOKIE[$this->cookie_index['pass']]; $this->username = $this->_stripslashes($this->username); $this->passhash = $this->_stripslashes($this->passhash); //no need to encode cookie pass } else if ($this->use_session && isset($_SESSION[$this->session_index['user']])) { $this->username = $_SESSION[$this->session_index['user']]; $this->passhash = @$_SESSION[$this->session_index['pass']]; } if (!($this->username === null) && $check_login) return $this->checklogin($this->username , $this->passhash); return !($this->username === null); } /** * Check user login information * You can only use it when checklogin handler is set * * @param string $user * @param string $passhash * @return bool */ function checklogin($user=null,$passhash=null) { if ($user === null) $user = $this->username; if ($passhash === null) $passhash = $this->passhash; if (isset($this->handler['checklogin'])) { return @call_user_func($this->handler['checklogin'],$user,$passhash); } else return false; } /** * Save login information * */ function savelogin() { if ($this->use_cookie) { $this->_setcookie($this->cookie_index['user'] , $this->username , time() + $this->expire); $this->_setcookie($this->cookie_index['pass'] , $this->passhash , time() + $this->expire); } if ($this->use_session) { $_SESSION[$this->session_index['user']] = $this->username; $_SESSION[$this->session_index['pass']] = $this->passhash; } } function expire($time) { $this->expire = $time; if ($this->use_session) { session_cache_limiter('private'); session_cache_expire($time / 60); } } /** * Get actual IP * @return string **/ function ip() { global $REMOTE_ADDR; global $HTTP_X_FORWARDED_FOR, $HTTP_X_FORWARDED, $HTTP_FORWARDED_FOR, $HTTP_FORWARDED; global $HTTP_VIA, $HTTP_X_COMING_FROM, $HTTP_COMING_FROM; // Get some server/environment variables values if (empty($REMOTE_ADDR)) { if (!empty($_SERVER) && isset($_SERVER['REMOTE_ADDR'])) { $REMOTE_ADDR = $_SERVER['REMOTE_ADDR']; } else if (!empty($_ENV) && isset($_ENV['REMOTE_ADDR'])) { $REMOTE_ADDR = $_ENV['REMOTE_ADDR']; } else if (@getenv('REMOTE_ADDR')) { $REMOTE_ADDR = getenv('REMOTE_ADDR'); } } // end if if (empty($HTTP_X_FORWARDED_FOR)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $HTTP_X_FORWARDED_FOR = $_SERVER['HTTP_X_FORWARDED_FOR']; } else if (!empty($_ENV) && isset($_ENV['HTTP_X_FORWARDED_FOR'])) { $HTTP_X_FORWARDED_FOR = $_ENV['HTTP_X_FORWARDED_FOR']; } else if (@getenv('HTTP_X_FORWARDED_FOR')) { $HTTP_X_FORWARDED_FOR = getenv('HTTP_X_FORWARDED_FOR'); } } // end if if (empty($HTTP_X_FORWARDED)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_X_FORWARDED'])) { $HTTP_X_FORWARDED = $_SERVER['HTTP_X_FORWARDED']; } else if (!empty($_ENV) && isset($_ENV['HTTP_X_FORWARDED'])) { $HTTP_X_FORWARDED = $_ENV['HTTP_X_FORWARDED']; } else if (@getenv('HTTP_X_FORWARDED')) { $HTTP_X_FORWARDED = getenv('HTTP_X_FORWARDED'); } } // end if if (empty($HTTP_FORWARDED_FOR)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_FORWARDED_FOR'])) { $HTTP_FORWARDED_FOR = $_SERVER['HTTP_FORWARDED_FOR']; } else if (!empty($_ENV) && isset($_ENV['HTTP_FORWARDED_FOR'])) { $HTTP_FORWARDED_FOR = $_ENV['HTTP_FORWARDED_FOR']; } else if (@getenv('HTTP_FORWARDED_FOR')) { $HTTP_FORWARDED_FOR = getenv('HTTP_FORWARDED_FOR'); } } // end if if (empty($HTTP_FORWARDED)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_FORWARDED'])) { $HTTP_FORWARDED = $_SERVER['HTTP_FORWARDED']; } else if (!empty($_ENV) && isset($_ENV['HTTP_FORWARDED'])) { $HTTP_FORWARDED = $_ENV['HTTP_FORWARDED']; } else if (@getenv('HTTP_FORWARDED')) { $HTTP_FORWARDED = getenv('HTTP_FORWARDED'); } } // end if if (empty($HTTP_VIA)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_VIA'])) { $HTTP_VIA = $_SERVER['HTTP_VIA']; } else if (!empty($_ENV) && isset($_ENV['HTTP_VIA'])) { $HTTP_VIA = $_ENV['HTTP_VIA']; } else if (@getenv('HTTP_VIA')) { $HTTP_VIA = getenv('HTTP_VIA'); } } // end if if (empty($HTTP_X_COMING_FROM)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_X_COMING_FROM'])) { $HTTP_X_COMING_FROM = $_SERVER['HTTP_X_COMING_FROM']; } else if (!empty($_ENV) && isset($_ENV['HTTP_X_COMING_FROM'])) { $HTTP_X_COMING_FROM = $_ENV['HTTP_X_COMING_FROM']; } else if (@getenv('HTTP_X_COMING_FROM')) { $HTTP_X_COMING_FROM = getenv('HTTP_X_COMING_FROM'); } } // end if if (empty($HTTP_COMING_FROM)) { if (!empty($_SERVER) && isset($_SERVER['HTTP_COMING_FROM'])) { $HTTP_COMING_FROM = $_SERVER['HTTP_COMING_FROM']; } else if (!empty($_ENV) && isset($_ENV['HTTP_COMING_FROM'])) { $HTTP_COMING_FROM = $_ENV['HTTP_COMING_FROM']; } else if (@getenv('HTTP_COMING_FROM')) { $HTTP_COMING_FROM = getenv('HTTP_COMING_FROM'); } } // end if // Gets the default ip sent by the user if (!empty($REMOTE_ADDR)) { $direct_ip = $REMOTE_ADDR; } // Gets the proxy ip sent by the user $proxy_ip = ''; if (!empty($HTTP_X_FORWARDED_FOR)) { $proxy_ip = $HTTP_X_FORWARDED_FOR; } else if (!empty($HTTP_X_FORWARDED)) { $proxy_ip = $HTTP_X_FORWARDED; } else if (!empty($HTTP_FORWARDED_FOR)) { $proxy_ip = $HTTP_FORWARDED_FOR; } else if (!empty($HTTP_FORWARDED)) { $proxy_ip = $HTTP_FORWARDED; } else if (!empty($HTTP_VIA)) { $proxy_ip = $HTTP_VIA; } else if (!empty($HTTP_X_COMING_FROM)) { $proxy_ip = $HTTP_X_COMING_FROM; } else if (!empty($HTTP_COMING_FROM)) { $proxy_ip = $HTTP_COMING_FROM; } // end if... else if... // Returns the true IP if it has been found, else FALSE if (empty($proxy_ip)) { // True IP without proxy return $direct_ip; } else { $is_ip = preg_match('|^([0-9]{1,3}\.){3,3}[0-9]{1,3}|', $proxy_ip, $regs); if ($is_ip && (count($regs) > 0)) { // True IP behind a proxy return $regs[0]; } else { // Can't define IP: there is a proxy but we don't have // information about the true IP return FALSE; } } // end if... else... } /** * Clear login information * */ function clearlogin() { if ($this->use_auth) { //there was a problem with clearing PHP_AUTH_USER and PHP_AUTH_PW unset($_SERVER['PHP_AUTH_USER']); unset($_SERVER['PHP_AUTH_PW']); unset($_SERVER['HTTP_AUTHORIZATION']); unset($_SERVER['REDIRECT_HTTP_AUTHORIZATION']); } if ($this->use_cookie) { $this->_setcookie($this->cookie_index['user'] , null , time() - $this->expire); $this->_setcookie($this->cookie_index['pass'] , null , time() - $this->expire); unset($_COOKIE[$this->cookie_index['user']]); unset($_COOKIE[$this->cookie_index['pass']]); } if ($this->use_session && isset($_SESSION)) { unset($_SESSION[$this->session_index['user']]); unset($_SESSION[$this->session_index['pass']]); } } /** * Send deny HTTP Header * */ function deny() { $this->_header('HTTP/1.1 404 Not Found'); $this->_header('status: 404 Not Found'); } /** * Send HTTP Authentication header * */ function auth($realm="") { if ($realm == "") $realm = $this->auth_text; $this->_header('WWW-Authenticate: Basic realm="' . $realm . '"'); $this->_header('HTTP/1.1 401 Unauthorized'); $this->_header('status: 401 Unauthorized'); } /** * encode() handler * Encode user password * * @access private * @param string $string * @return string */ function _encode($string) { if ($this->handler['encode']) { return @call_user_func($this->handler['encode'],$string); } else return md5($string); } /** * setcookie() handler * Set a user cookie * * @access private * @param string $name * @param string $var * @param string $time * @param string $path * @param string $domain * @param int $sec * @return bool */ function _setcookie($name,$var,$time,$path='',$domain='',$sec='') { if ($this->handler['setcookie']) { return @call_user_func($this->handler['setcookie'],$name,$var,$time,$path,$domain,$sec); } else return setcookie($name,$var,$time,$path,$domain,$sec); } /** * header() handler * Send a http header * * @access private * @param string $text * @param bool $replace * @return bool */ function _header($text,$replace=false) { if ($this->handler['header']) { return @call_user_func($this->handler['header'],$text,$replace); } else return @header($text,$replace); } /** * Stripslashes function alias * * @access private * @param string $text * @return string */ function _stripslashes($text) { if (get_magic_quotes_gpc()) $text = stripslashes($text); return $text; } } ?>

  9. #54
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    itofu.. Install PHP.. or download XAMP. i recommend XAMP. ive been using XAMP for years now.

  10. #55
    Account Upgraded | Title Enabled! MasterofOrder is offline
    MemberRank
    Oct 2006 Join Date
    239Posts
    I like your design and I wish I could use it but I keep getting this error:

    Fatal error: Class 'valid' not found in C:\wamp\www\library\functions.php on line 34

  11. #56
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    what version? what did you do?

  12. #57
    Proficient Member itofu is offline
    MemberRank
    Sep 2006 Join Date
    In a BoxLocation
    176Posts
    i have php installed its something in the code

  13. #58
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    Quote Originally Posted by itofu View Post
    i have php installed its something in the code
    other people installed it without problem. its not code.. its your webserver.
    what you see here: dyepRose Powered by: RoseCP v1.3 is the same file i released.

    so if it work here. it should work there as long as you did not alter any code except the config.php

  14. #59
    Proficient Member dyeprey is offline
    MemberRank
    Apr 2005 Join Date
    MidgardLocation
    151Posts
    Quote Originally Posted by MasterofOrder View Post
    I like your design and I wish I could use it but I keep getting this error:

    Fatal error: Class 'valid' not found in C:\wamp\www\library\functions.php on line 34
    what version? what did you do?

    double check your config.php. it wont call valid class if the config is right.. il fix it on my next release. for now, just make sure you put the right info in your config.php

  15. #60
    Account Upgraded | Title Enabled! Ci2azy is offline
    MemberRank
    Sep 2006 Join Date
    LOCALHOSTLocation
    200Posts
    basiclly...alot of these people are getting errors running it through wampp, at first i had the same errors everyone is getting until i ran it on xampp and everything seems fine. thanks for the cp :) saved me time on coding my own



Page 4 of 6 FirstFirst 123456 LastLast

Advertisement