Best Blackhat Forum

Full Version: ALL for FLYNAX Classifieds Software plugins, themes, new versions etc.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Hello
Flynax helps me get dealers error
Installation, please help me :(
????????????? use a translate tools
Hello
Wilcard subdomain help me
I receive an error page :(

http://www.webevcil.com/dealer-accounts.html
Error page: http://www.webevcil.com/petshop/

Error :Undefined Page
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

PHP Code:
<?php 

/****************************************************************************** 
 * 
 *    PROJECT: Flynax Classifieds Software 
 *    VERSION: 4.0 
 * 
 *    This script is a commercial software and any kind of using it must be  
 *    coordinate with Flynax Owners Team and be agree to Flynax License Agreement 
 * 
 *    This block may not be removed from this file or any other files with out  
 *    permission of Flynax respective owners. 
 * 
 *    Copyrights Flynax Classifieds Software | 2010 
 *    http://www.flynax.com/ 
 * 
 ***************************************************************************​***/ 

class rlNavigator extends reefless 
     
    
/** 
    * @var current page name 
    **/ 
    
var $cPage
     
    
/** 
    * @var current language 
    **/ 
    
var $cLang
     
    
/** 
    * @var configurations class object 
    **/ 
    
var $rlConfig

    function 
rlNavigator() 
    { 
        global 
$rlConfig
        
$this -> rlConfig = and $rlConfig;
        
$_SESSION['GEOLocationData'] = $this->getGEOData( );
    } 

    
/** 
    * separate the request URL by variables array. 
    *   
    * @param string $vareables - the string of GET vareables 
    * @param string $page - current page form $_GET 
    * @param string $lang - current language form $_GET 
    * 
    **/ 
    
function rewriteGet$vareables$page$lang 
    { 
        
$items explode'/'$vareables ); 
        
$defLang $this -> rlConfig -> getConfig('lang'); 
         
        
/* check by language exist */ 
        
if ( !empty($lang) ) 
        { 
            
$langsList $this -> fetch'Code', array( 'Code' => $lang ), nullnull'languages''row' ); 
            if( empty(
$langsList)) 
            { 
                
$lang $defLang
            } 
        } 

        if ( 
$this -> rlConfig -> getConfig('mod_rewrite') ) 
        { 
            if ( 
strlen$page ) < 3
            { 
                
$this -> cLang $page
                
$this -> cPage $items[0]; 
                
$_GET['page'] = $items[0]; 
                 
                
$rlVars explode('/'$_GET['rlVareables']); 
                unset(
$rlVars[0]); 
                
$_GET['rlVareables'] = implode('/'$rlVars); 

                foreach (
$items as $key => $value 
                { 
                    
$items[$key] = $items[$key+1]; 
                    if (empty(
$items[$key])) 
                    { 
                        unset(
$items[$key]); 
                    } 
                } 
            } 
            else  
            { 
                
$this -> cLang $defLang
                
$this -> cPage $page
            } 
        } 
        else  
        { 
            
$this -> cLang $lang
            
$this -> cPage $page
        } 

        if (!empty(
$vareables)) 
        {             
            
$count_vars count($items); 

            for(
$i 0$i $count_vars$i++) 
            { 
                
$step $i 1
                
$_GET['nvar_'.$step] = $items[$i]; 
            } 
        } 
    } 

    
/** 
    * require the controller by request page 
    *  
    * @param string $page - the page name 
    * 
    **/ 
    
function definePage() 
    { 
        
$page $this -> cPage

        if ( 
$page == 'index'
        { 
            
$page ''
        } 

        
$pageInfo $this -> fetch( array('ID''Parent_ID''Page_type''Login''Controller''Tpl''Key''Path''Plugin''Deny'), array('Path' => $page'Status' => 'active'), null1'pages''row' ); 
        
$pageInfo $GLOBALS['rlLang'] -> replaceLangKeys$pageInfo'pages', array( 'name''title''meta_description''meta_keywords' ) ); 

        if (!
is_readableRL_PLUGINS $pageInfo['Plugin'] . RL_DS $pageInfo['Controller'] . '.inc.php' )) 
        { 
            if ( empty(
$pageInfo['Controller']) || !is_readableRL_CONTROL $pageInfo['Controller'] . '.inc.php' ) || ($pageInfo['Menus'] == '2' and& !isset($_SESSION['id'])) ) 
            { 
                
header("HTTP/1.0 404 Not Found"); 
                
$pageInfo['Controller'] = "404"
                
$pageInfo['Tpl'] = true
                
$pageInfo['title'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['name'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['Page_type'] = "system"
            } 
        } 

        return 
$pageInfo
    } 

    
/** 
    * get all pages keys=>paths 
    *  
    * @return array - pages keys/paths 
    **/ 
    
function getAllPages() 
    { 
        
$this -> setTable'pages' ); 
        
$pages $this -> fetch( array( 'Key''Path' ) ); 
        
$this -> resetTable(); 

        foreach ( 
$pages as $key => $value 
        { 
            
$out[$pages[$key]['Key']] = $pages[$key]['Path']; 
        } 
        unset(
$pages); 
         
        return 
$out
    }

        public function 
getGEOData$ips FALSE$format "json" )
    {
        if ( isset( 
$_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'] ) )
        {
            return 
$_SESSION['GEOLocationData'];
        }

        global 
$ips;
    
//        Debug ON (with IP from google):
//        $ips = "216.239.51.99";
        
//        Debug OFF (with your own IP, doesn't work on localhost):
        
$ips $_SERVER['REMOTE_ADDR'];

        
// and this is where FS comes in ... sterge '//' pentru a merge geoip
    /*    include("./includes/classes/fs.geoip.inc");
        include("./includes/classes/fs.geoipcity.inc");
        include("./includes/classes/fs.geoipregionvars.php");
        $getContent = geoip_open("./includes/classes/fs.geolitecity.dat",GEOIP_STANDARD);
        $record = geoip_record_by_addr($getContent, $ips);
        $content = array();
        $content["Country_code"] = $record->country_code;
        $content["Country_name"] = $record->country_name;
        $content["Region"] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
        $content["City"] = $record->city;
        $content["ISP_name"] = "Unknown";
        geoip_close($getContent);
        $content = json_encode($content);
        $GLOBALS['rlHook']->load( "phpGetGEOData" );
        return $content;*/
    
}

}


?>



2 -------------------- one 

 this one not working search..... from admin main language english and u search language english on site wont give error 
but then u search with other language then give error on site 
<?php
class rlNavigator extends reefless
{
public $cPage = null;
public $cLang = null;
public $cMobile = false;
public $rlConfig = null;
public function rlNavigator()
{
global $rlConfig;
$this->rlConfig =and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData();
return;
}
public function rewriteGet($vareables = false, $page = false, $lang = false)
{
global $config;
$page = empty($page) ? '' : $page;
$items = explode('/', trim($vareables, '/'));
if (!(empty($lang))) {
$langsList = $this->fetch('Code', array(
'Code' => $lang
), null, null, 'languages', 'row');
if (empty($langsList)) {
$lang = $config['lang'];
}
}
if ($config['mod_rewrite']) {
if (isset($_GET['wildcard'])) {
$request = trim($vareables, '/');
$request_exp = explode('/', $request);
if ($request == $config['mobile_location_name']) {
$this->cMobile = true;
}
if (count($request_exp) > 1) {
$this->cLang = $_GET['lang'] = $request_exp[1];
} else {
if (count($request_exp) == 1 and& strlen($request) == 2) {
$this->cLang = $_GET['lang'] = trim($vareables, '/');
}
}
}
if ($page == $config['mobile_location_name']) {
$this->cPage = $page = $items[0];
$this->cMobile = true;
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
unset($items[0]);
$items = array_values($items);
$_GET['rlVareables'] = implode('/', $rlVars);
}
if (strlen($page) < 3 and& !$_GET['lang']) {
$this->cLang = $page;
$this->cPage = $items[0];
$_GET['page'] = $items[0];
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);
foreach ($items as $key => $value) {
$items[$key] = $items[$key + 1];
if (!(isset($items[$key]))) {
continue;
}
unset($items[$key]);
continue;
}
} else {
if ($_GET['lang']) {
$this->cLang = $_GET['lang'];
$this->cPage = $page;
} else {
$this->cLang = $config['lang'];
$this->cPage = $page;
}
}
} else {
$this->cLang = $lang;
$this->cPage = $page;
}
if (!(empty($vareables))) {
$count_vars = count($items);
$i = 0;
while ($count_vars > $i) {
$step = $i + 1;
$_GET['nvar_' . $step] = $items[$i];
$i++;
continue;
}
unset($vareables);
}
return;
}
public function definePage()
{
global $account_info;
global $lang;
$page = $this->cPage;
if ($page == 'index') {
$page = '';
}
$sql = "SELECT * FROM `" . RL_DBPREFIX . ('' . "pages` WHERE `Path` = CONVERT('" . $page . "' USING utf8) AND `Status` = 'active' LIMIT 1");
if ($pageInfo = $this->getRow($sql)) {
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
if ($pageInfo['Plugin'] and& !(is_readable(RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php')) || empty($pageInfo['Controller']) || !$pageInfo['Plugin'] and& !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php'))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
} else {
$address = $this->cPage;
$sql = "SELECT `ID`, `Type` FROM `" . RL_DBPREFIX . ('' . "accounts` WHERE `Own_address` = CONVERT('" . $address . "' USING utf8) LIMIT 1");
$account_details = $this->getRow($sql);
$pageInfo = $this->fetch('*', array(
'Key' => 'at_' . $account_details['Type'],
'Status' => 'active'
), null, 1, 'pages', 'row');
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
$_GET['id'] = $account_details['ID'];
if (empty($pageInfo['Controller']) || !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php')) || $pageInfo['Menus'] == '2' and& !(isset($account_info['ID']))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
}
return $pageInfo;
}

function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData($ips = FALSE, $format = 'json')
{
if (isset($_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'])) {
return $_SESSION['GEOLocationData'];
}
global $ips;
/*$ips = $_SERVER['REMOTE_ADDR'];*/
$ips = empty($ips) ? $_SERVER["REMOTE_ADDR"] : $ips;
include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content['Country_code'] = $record->country_code;
$content['Country_name'] = $record->country_name;
$content['Region'] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content['City'] = $record->city;
$content['ISP_name'] = 'Unknown';
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load('phpGetGEOData');
return $content;
}
}
?>

[quote='sahap' pid='1585377' dateline='1454104625']
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

PHP Code:
<?php 

/****************************************************************************** 
 * 
 *    PROJECT: Flynax Classifieds Software 
 *    VERSION: 4.0 
 * 
 *    This script is a commercial software and any kind of using it must be  
 *    coordinate with Flynax Owners Team and be agree to Flynax License Agreement 
 * 
 *    This block may not be removed from this file or any other files with out  
 *    permission of Flynax respective owners. 
 * 
 *    Copyrights Flynax Classifieds Software | 2010 
 *    http://www.flynax.com/ 
 * 
 ***************************************************************************​***/ 

class rlNavigator extends reefless 
     
    
/** 
    * @var current page name 
    **/ 
    
var $cPage
     
    
/** 
    * @var current language 
    **/ 
    
var $cLang
     
    
/** 
    * @var configurations class object 
    **/ 
    
var $rlConfig

    function 
rlNavigator() 
    { 
        global 
$rlConfig
        
$this -> rlConfig = and $rlConfig;
        
$_SESSION['GEOLocationData'] = $this->getGEOData( );
    } 

    
/** 
    * separate the request URL by variables array. 
    *   
    * @param string $vareables - the string of GET vareables 
    * @param string $page - current page form $_GET 
    * @param string $lang - current language form $_GET 
    * 
    **/ 
    
function rewriteGet$vareables$page$lang 
    { 
        
$items explode'/'$vareables ); 
        
$defLang $this -> rlConfig -> getConfig('lang'); 
         
        
/* check by language exist */ 
        
if ( !empty($lang) ) 
        { 
            
$langsList $this -> fetch'Code', array( 'Code' => $lang ), nullnull'languages''row' ); 
            if( empty(
$langsList)) 
            { 
                
$lang $defLang
            } 
        } 

        if ( 
$this -> rlConfig -> getConfig('mod_rewrite') ) 
        { 
            if ( 
strlen$page ) < 3
            { 
                
$this -> cLang $page
                
$this -> cPage $items[0]; 
                
$_GET['page'] = $items[0]; 
                 
                
$rlVars explode('/'$_GET['rlVareables']); 
                unset(
$rlVars[0]); 
                
$_GET['rlVareables'] = implode('/'$rlVars); 

                foreach (
$items as $key => $value 
                { 
                    
$items[$key] = $items[$key+1]; 
                    if (empty(
$items[$key])) 
                    { 
                        unset(
$items[$key]); 
                    } 
                } 
            } 
            else  
            { 
                
$this -> cLang $defLang
                
$this -> cPage $page
            } 
        } 
        else  
        { 
            
$this -> cLang $lang
            
$this -> cPage $page
        } 

        if (!empty(
$vareables)) 
        {             
            
$count_vars count($items); 

            for(
$i 0$i $count_vars$i++) 
            { 
                
$step $i 1
                
$_GET['nvar_'.$step] = $items[$i]; 
            } 
        } 
    } 

    
/** 
    * require the controller by request page 
    *  
    * @param string $page - the page name 
    * 
    **/ 
    
function definePage() 
    { 
        
$page $this -> cPage

        if ( 
$page == 'index'
        { 
            
$page ''
        } 

        
$pageInfo $this -> fetch( array('ID''Parent_ID''Page_type''Login''Controller''Tpl''Key''Path''Plugin''Deny'), array('Path' => $page'Status' => 'active'), null1'pages''row' ); 
        
$pageInfo $GLOBALS['rlLang'] -> replaceLangKeys$pageInfo'pages', array( 'name''title''meta_description''meta_keywords' ) ); 

        if (!
is_readableRL_PLUGINS $pageInfo['Plugin'] . RL_DS $pageInfo['Controller'] . '.inc.php' )) 
        { 
            if ( empty(
$pageInfo['Controller']) || !is_readableRL_CONTROL $pageInfo['Controller'] . '.inc.php' ) || ($pageInfo['Menus'] == '2' and& !isset($_SESSION['id'])) ) 
            { 
                
header("HTTP/1.0 404 Not Found"); 
                
$pageInfo['Controller'] = "404"
                
$pageInfo['Tpl'] = true
                
$pageInfo['title'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['name'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['Page_type'] = "system"
            } 
        } 

        return 
$pageInfo
    } 

    
/** 
    * get all pages keys=>paths 
    *  
    * @return array - pages keys/paths 
    **/ 
    
function getAllPages() 
    { 
        
$this -> setTable'pages' ); 
        
$pages $this -> fetch( array( 'Key''Path' ) ); 
        
$this -> resetTable(); 

        foreach ( 
$pages as $key => $value 
        { 
            
$out[$pages[$key]['Key']] = $pages[$key]['Path']; 
        } 
        unset(
$pages); 
         
        return 
$out
    }

        public function 
getGEOData$ips FALSE$format "json" )
    {
        if ( isset( 
$_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'] ) )
        {
            return 
$_SESSION['GEOLocationData'];
        }

        global 
$ips;
    
//        Debug ON (with IP from google):
//        $ips = "216.239.51.99";
        
//        Debug OFF (with your own IP, doesn't work on localhost):
        
$ips $_SERVER['REMOTE_ADDR'];

        
// and this is where FS comes in ... sterge '//' pentru a merge geoip
    /*    include("./includes/classes/fs.geoip.inc");
        include("./includes/classes/fs.geoipcity.inc");
        include("./includes/classes/fs.geoipregionvars.php");
        $getContent = geoip_open("./includes/classes/fs.geolitecity.dat",GEOIP_STANDARD);
        $record = geoip_record_by_addr($getContent, $ips);
        $content = array();
        $content["Country_code"] = $record->country_code;
        $content["Country_name"] = $record->country_name;
        $content["Region"] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
        $content["City"] = $record->city;
        $content["ISP_name"] = "Unknown";
        geoip_close($getContent);
        $content = json_encode($content);
        $GLOBALS['rlHook']->load( "phpGetGEOData" );
        return $content;*/
    
}

}


?>

[php]



2 -------------------- one 

 this one not working search..... from admin main language english and u search language english on site wont give error 
but then u search with other language then give error on site 
<?php
class rlNavigator extends reefless
{
public $cPage = null;
public $cLang = null;
public $cMobile = false;
public $rlConfig = null;
public function rlNavigator()
{
global $rlConfig;
$this->rlConfig =and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData();
return;
}
public function rewriteGet($vareables = false, $page = false, $lang = false)
{
global $config;
$page = empty($page) ? '' : $page;
$items = explode('/', trim($vareables, '/'));
if (!(empty($lang))) {
$langsList = $this->fetch('Code', array(
'Code' => $lang
), null, null, 'languages', 'row');
if (empty($langsList)) {
$lang = $config['lang'];
}
}
if ($config['mod_rewrite']) {
if (isset($_GET['wildcard'])) {
$request = trim($vareables, '/');
$request_exp = explode('/', $request);
if ($request == $config['mobile_location_name']) {
$this->cMobile = true;
}
if (count($request_exp) > 1) {
$this->cLang = $_GET['lang'] = $request_exp[1];
} else {
if (count($request_exp) == 1 and& strlen($request) == 2) {
$this->cLang = $_GET['lang'] = trim($vareables, '/');
}
}
}
if ($page == $config['mobile_location_name']) {
$this->cPage = $page = $items[0];
$this->cMobile = true;
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
unset($items[0]);
$items = array_values($items);
$_GET['rlVareables'] = implode('/', $rlVars);
}
if (strlen($page) < 3 and& !$_GET['lang']) {
$this->cLang = $page;
$this->cPage = $items[0];
$_GET['page'] = $items[0];
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);
foreach ($items as $key => $value) {
$items[$key] = $items[$key + 1];
if (!(isset($items[$key]))) {
continue;
}
unset($items[$key]);
continue;
}
} else {
if ($_GET['lang']) {
$this->cLang = $_GET['lang'];
$this->cPage = $page;
} else {
$this->cLang = $config['lang'];
$this->cPage = $page;
}
}
} else {
$this->cLang = $lang;
$this->cPage = $page;
}
if (!(empty($vareables))) {
$count_vars = count($items);
$i = 0;
while ($count_vars > $i) {
$step = $i + 1;
$_GET['nvar_' . $step] = $items[$i];
$i++;
continue;
}
unset($vareables);
}
return;
}
public function definePage()
{
global $account_info;
global $lang;
$page = $this->cPage;
if ($page == 'index') {
$page = '';
}
$sql = "SELECT * FROM `" . RL_DBPREFIX . ('' . "pages` WHERE `Path` = CONVERT('" . $page . "' USING utf8) AND `Status` = 'active' LIMIT 1");
if ($pageInfo = $this->getRow($sql)) {
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
if ($pageInfo['Plugin'] and& !(is_readable(RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php')) || empty($pageInfo['Controller']) || !$pageInfo['Plugin'] and& !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php'))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
} else {
$address = $this->cPage;
$sql = "SELECT `ID`, `Type` FROM `" . RL_DBPREFIX . ('' . "accounts` WHERE `Own_address` = CONVERT('" . $address . "' USING utf8) LIMIT 1");
$account_details = $this->getRow($sql);
$pageInfo = $this->fetch('*', array(
'Key' => 'at_' . $account_details['Type'],
'Status' => 'active'
), null, 1, 'pages', 'row');
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
$_GET['id'] = $account_details['ID'];
if (empty($pageInfo['Controller']) || !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php')) || $pageInfo['Menus'] == '2' and& !(isset($account_info['ID']))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
}
return $pageInfo;
}

function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData($ips = FALSE, $format = 'json')
{
if (isset($_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'])) {
return $_SESSION['GEOLocationData'];
}
global $ips;
/*$ips = $_SERVER['REMOTE_ADDR'];*/
$ips = empty($ips) ? $_SERVER["REMOTE_ADDR"] : $ips;
include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content['Country_code'] = $record->country_code;
$content['Country_name'] = $record->country_name;
$content['Region'] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content['City'] = $record->city;
$content['ISP_name'] = 'Unknown';
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load('phpGetGEOData');
return $content;
}
}
?>
[/quote]

[/php]

[quote='sahap' pid='1585377' dateline='1454104625']
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

PHP Code:
<?php 

/****************************************************************************** 
 * 
 *    PROJECT: Flynax Classifieds Software 
 *    VERSION: 4.0 
 * 
 *    This script is a commercial software and any kind of using it must be  
 *    coordinate with Flynax Owners Team and be agree to Flynax License Agreement 
 * 
 *    This block may not be removed from this file or any other files with out  
 *    permission of Flynax respective owners. 
 * 
 *    Copyrights Flynax Classifieds Software | 2010 
 *    http://www.flynax.com/ 
 * 
 ***************************************************************************​***/ 

class rlNavigator extends reefless 
     
    
/** 
    * @var current page name 
    **/ 
    
var $cPage
     
    
/** 
    * @var current language 
    **/ 
    
var $cLang
     
    
/** 
    * @var configurations class object 
    **/ 
    
var $rlConfig

    function 
rlNavigator() 
    { 
        global 
$rlConfig
        
$this -> rlConfig = and $rlConfig;
        
$_SESSION['GEOLocationData'] = $this->getGEOData( );
    } 

    
/** 
    * separate the request URL by variables array. 
    *   
    * @param string $vareables - the string of GET vareables 
    * @param string $page - current page form $_GET 
    * @param string $lang - current language form $_GET 
    * 
    **/ 
    
function rewriteGet$vareables$page$lang 
    { 
        
$items explode'/'$vareables ); 
        
$defLang $this -> rlConfig -> getConfig('lang'); 
         
        
/* check by language exist */ 
        
if ( !empty($lang) ) 
        { 
            
$langsList $this -> fetch'Code', array( 'Code' => $lang ), nullnull'languages''row' ); 
            if( empty(
$langsList)) 
            { 
                
$lang $defLang
            } 
        } 

        if ( 
$this -> rlConfig -> getConfig('mod_rewrite') ) 
        { 
            if ( 
strlen$page ) < 3
            { 
                
$this -> cLang $page
                
$this -> cPage $items[0]; 
                
$_GET['page'] = $items[0]; 
                 
                
$rlVars explode('/'$_GET['rlVareables']); 
                unset(
$rlVars[0]); 
                
$_GET['rlVareables'] = implode('/'$rlVars); 

                foreach (
$items as $key => $value 
                { 
                    
$items[$key] = $items[$key+1]; 
                    if (empty(
$items[$key])) 
                    { 
                        unset(
$items[$key]); 
                    } 
                } 
            } 
            else  
            { 
                
$this -> cLang $defLang
                
$this -> cPage $page
            } 
        } 
        else  
        { 
            
$this -> cLang $lang
            
$this -> cPage $page
        } 

        if (!empty(
$vareables)) 
        {             
            
$count_vars count($items); 

            for(
$i 0$i $count_vars$i++) 
            { 
                
$step $i 1
                
$_GET['nvar_'.$step] = $items[$i]; 
            } 
        } 
    } 

    
/** 
    * require the controller by request page 
    *  
    * @param string $page - the page name 
    * 
    **/ 
    
function definePage() 
    { 
        
$page $this -> cPage

        if ( 
$page == 'index'
        { 
            
$page ''
        } 

        
$pageInfo $this -> fetch( array('ID''Parent_ID''Page_type''Login''Controller''Tpl''Key''Path''Plugin''Deny'), array('Path' => $page'Status' => 'active'), null1'pages''row' ); 
        
$pageInfo $GLOBALS['rlLang'] -> replaceLangKeys$pageInfo'pages', array( 'name''title''meta_description''meta_keywords' ) ); 

        if (!
is_readableRL_PLUGINS $pageInfo['Plugin'] . RL_DS $pageInfo['Controller'] . '.inc.php' )) 
        { 
            if ( empty(
$pageInfo['Controller']) || !is_readableRL_CONTROL $pageInfo['Controller'] . '.inc.php' ) || ($pageInfo['Menus'] == '2' and& !isset($_SESSION['id'])) ) 
            { 
                
header("HTTP/1.0 404 Not Found"); 
                
$pageInfo['Controller'] = "404"
                
$pageInfo['Tpl'] = true
                
$pageInfo['title'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['name'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['Page_type'] = "system"
            } 
        } 

        return 
$pageInfo
    } 

    
/** 
    * get all pages keys=>paths 
    *  
    * @return array - pages keys/paths 
    **/ 
    
function getAllPages() 
    { 
        
$this -> setTable'pages' ); 
        
$pages $this -> fetch( array( 'Key''Path' ) ); 
        
$this -> resetTable(); 

        foreach ( 
$pages as $key => $value 
        { 
            
$out[$pages[$key]['Key']] = $pages[$key]['Path']; 
        } 
        unset(
$pages); 
         
        return 
$out
    }

        public function 
getGEOData$ips FALSE$format "json" )
    {
        if ( isset( 
$_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'] ) )
        {
            return 
$_SESSION['GEOLocationData'];
        }

        global 
$ips;
    
//        Debug ON (with IP from google):
//        $ips = "216.239.51.99";
        
//        Debug OFF (with your own IP, doesn't work on localhost):
        
$ips $_SERVER['REMOTE_ADDR'];

        
// and this is where FS comes in ... sterge '//' pentru a merge geoip
    /*    include("./includes/classes/fs.geoip.inc");
        include("./includes/classes/fs.geoipcity.inc");
        include("./includes/classes/fs.geoipregionvars.php");
        $getContent = geoip_open("./includes/classes/fs.geolitecity.dat",GEOIP_STANDARD);
        $record = geoip_record_by_addr($getContent, $ips);
        $content = array();
        $content["Country_code"] = $record->country_code;
        $content["Country_name"] = $record->country_name;
        $content["Region"] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
        $content["City"] = $record->city;
        $content["ISP_name"] = "Unknown";
        geoip_close($getContent);
        $content = json_encode($content);
        $GLOBALS['rlHook']->load( "phpGetGEOData" );
        return $content;*/
    
}

}


?>

[php]

2 -------------------- one 

 this one not working search..... from admin main language english and u search language english on site wont give error 
but then u search with other language then give error on site 
<?php
class rlNavigator extends reefless
{
public $cPage = null;
public $cLang = null;
public $cMobile = false;
public $rlConfig = null;
public function rlNavigator()
{
global $rlConfig;
$this->rlConfig =and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData();
return;
}
public function rewriteGet($vareables = false, $page = false, $lang = false)
{
global $config;
$page = empty($page) ? '' : $page;
$items = explode('/', trim($vareables, '/'));
if (!(empty($lang))) {
$langsList = $this->fetch('Code', array(
'Code' => $lang
), null, null, 'languages', 'row');
if (empty($langsList)) {
$lang = $config['lang'];
}
}
if ($config['mod_rewrite']) {
if (isset($_GET['wildcard'])) {
$request = trim($vareables, '/');
$request_exp = explode('/', $request);
if ($request == $config['mobile_location_name']) {
$this->cMobile = true;
}
if (count($request_exp) > 1) {
$this->cLang = $_GET['lang'] = $request_exp[1];
} else {
if (count($request_exp) == 1 and& strlen($request) == 2) {
$this->cLang = $_GET['lang'] = trim($vareables, '/');
}
}
}
if ($page == $config['mobile_location_name']) {
$this->cPage = $page = $items[0];
$this->cMobile = true;
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
unset($items[0]);
$items = array_values($items);
$_GET['rlVareables'] = implode('/', $rlVars);
}
if (strlen($page) < 3 and& !$_GET['lang']) {
$this->cLang = $page;
$this->cPage = $items[0];
$_GET['page'] = $items[0];
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);
foreach ($items as $key => $value) {
$items[$key] = $items[$key + 1];
if (!(isset($items[$key]))) {
continue;
}
unset($items[$key]);
continue;
}
} else {
if ($_GET['lang']) {
$this->cLang = $_GET['lang'];
$this->cPage = $page;
} else {
$this->cLang = $config['lang'];
$this->cPage = $page;
}
}
} else {
$this->cLang = $lang;
$this->cPage = $page;
}
if (!(empty($vareables))) {
$count_vars = count($items);
$i = 0;
while ($count_vars > $i) {
$step = $i + 1;
$_GET['nvar_' . $step] = $items[$i];
$i++;
continue;
}
unset($vareables);
}
return;
}
public function definePage()
{
global $account_info;
global $lang;
$page = $this->cPage;
if ($page == 'index') {
$page = '';
}
$sql = "SELECT * FROM `" . RL_DBPREFIX . ('' . "pages` WHERE `Path` = CONVERT('" . $page . "' USING utf8) AND `Status` = 'active' LIMIT 1");
if ($pageInfo = $this->getRow($sql)) {
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
if ($pageInfo['Plugin'] and& !(is_readable(RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php')) || empty($pageInfo['Controller']) || !$pageInfo['Plugin'] and& !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php'))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
} else {
$address = $this->cPage;
$sql = "SELECT `ID`, `Type` FROM `" . RL_DBPREFIX . ('' . "accounts` WHERE `Own_address` = CONVERT('" . $address . "' USING utf8) LIMIT 1");
$account_details = $this->getRow($sql);
$pageInfo = $this->fetch('*', array(
'Key' => 'at_' . $account_details['Type'],
'Status' => 'active'
), null, 1, 'pages', 'row');
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
$_GET['id'] = $account_details['ID'];
if (empty($pageInfo['Controller']) || !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php')) || $pageInfo['Menus'] == '2' and& !(isset($account_info['ID']))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
}
return $pageInfo;
}

function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData($ips = FALSE, $format = 'json')
{
if (isset($_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'])) {
return $_SESSION['GEOLocationData'];
}
global $ips;
/*$ips = $_SERVER['REMOTE_ADDR'];*/
$ips = empty($ips) ? $_SERVER["REMOTE_ADDR"] : $ips;
include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content['Country_code'] = $record->country_code;
$content['Country_name'] = $record->country_name;
$content['Region'] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content['City'] = $record->city;
$content['ISP_name'] = 'Unknown';
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load('phpGetGEOData');
return $content;
}
}
?>

[quote='sahap' pid='1585377' dateline='1454104625']
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

PHP Code:
<?php 

/****************************************************************************** 
 * 
 *    PROJECT: Flynax Classifieds Software 
 *    VERSION: 4.0 
 * 
 *    This script is a commercial software and any kind of using it must be  
 *    coordinate with Flynax Owners Team and be agree to Flynax License Agreement 
 * 
 *    This block may not be removed from this file or any other files with out  
 *    permission of Flynax respective owners. 
 * 
 *    Copyrights Flynax Classifieds Software | 2010 
 *    http://www.flynax.com/ 
 * 
 ***************************************************************************​***/ 

class rlNavigator extends reefless 
     
    
/** 
    * @var current page name 
    **/ 
    
var $cPage
     
    
/** 
    * @var current language 
    **/ 
    
var $cLang
     
    
/** 
    * @var configurations class object 
    **/ 
    
var $rlConfig

    function 
rlNavigator() 
    { 
        global 
$rlConfig
        
$this -> rlConfig = and $rlConfig;
        
$_SESSION['GEOLocationData'] = $this->getGEOData( );
    } 

    
/** 
    * separate the request URL by variables array. 
    *   
    * @param string $vareables - the string of GET vareables 
    * @param string $page - current page form $_GET 
    * @param string $lang - current language form $_GET 
    * 
    **/ 
    
function rewriteGet$vareables$page$lang 
    { 
        
$items explode'/'$vareables ); 
        
$defLang $this -> rlConfig -> getConfig('lang'); 
         
        
/* check by language exist */ 
        
if ( !empty($lang) ) 
        { 
            
$langsList $this -> fetch'Code', array( 'Code' => $lang ), nullnull'languages''row' ); 
            if( empty(
$langsList)) 
            { 
                
$lang $defLang
            } 
        } 

        if ( 
$this -> rlConfig -> getConfig('mod_rewrite') ) 
        { 
            if ( 
strlen$page ) < 3
            { 
                
$this -> cLang $page
                
$this -> cPage $items[0]; 
                
$_GET['page'] = $items[0]; 
                 
                
$rlVars explode('/'$_GET['rlVareables']); 
                unset(
$rlVars[0]); 
                
$_GET['rlVareables'] = implode('/'$rlVars); 

                foreach (
$items as $key => $value 
                { 
                    
$items[$key] = $items[$key+1]; 
                    if (empty(
$items[$key])) 
                    { 
                        unset(
$items[$key]); 
                    } 
                } 
            } 
            else  
            { 
                
$this -> cLang $defLang
                
$this -> cPage $page
            } 
        } 
        else  
        { 
            
$this -> cLang $lang
            
$this -> cPage $page
        } 

        if (!empty(
$vareables)) 
        {             
            
$count_vars count($items); 

            for(
$i 0$i $count_vars$i++) 
            { 
                
$step $i 1
                
$_GET['nvar_'.$step] = $items[$i]; 
            } 
        } 
    } 

    
/** 
    * require the controller by request page 
    *  
    * @param string $page - the page name 
    * 
    **/ 
    
function definePage() 
    { 
        
$page $this -> cPage

        if ( 
$page == 'index'
        { 
            
$page ''
        } 

        
$pageInfo $this -> fetch( array('ID''Parent_ID''Page_type''Login''Controller''Tpl''Key''Path''Plugin''Deny'), array('Path' => $page'Status' => 'active'), null1'pages''row' ); 
        
$pageInfo $GLOBALS['rlLang'] -> replaceLangKeys$pageInfo'pages', array( 'name''title''meta_description''meta_keywords' ) ); 

        if (!
is_readableRL_PLUGINS $pageInfo['Plugin'] . RL_DS $pageInfo['Controller'] . '.inc.php' )) 
        { 
            if ( empty(
$pageInfo['Controller']) || !is_readableRL_CONTROL $pageInfo['Controller'] . '.inc.php' ) || ($pageInfo['Menus'] == '2' and& !isset($_SESSION['id'])) ) 
            { 
                
header("HTTP/1.0 404 Not Found"); 
                
$pageInfo['Controller'] = "404"
                
$pageInfo['Tpl'] = true
                
$pageInfo['title'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['name'] = $GLOBALS['lang']['undefined_page']; 
                
$pageInfo['Page_type'] = "system"
            } 
        } 

        return 
$pageInfo
    } 

    
/** 
    * get all pages keys=>paths 
    *  
    * @return array - pages keys/paths 
    **/ 
    
function getAllPages() 
    { 
        
$this -> setTable'pages' ); 
        
$pages $this -> fetch( array( 'Key''Path' ) ); 
        
$this -> resetTable(); 

        foreach ( 
$pages as $key => $value 
        { 
            
$out[$pages[$key]['Key']] = $pages[$key]['Path']; 
        } 
        unset(
$pages); 
         
        return 
$out
    }

        public function 
getGEOData$ips FALSE$format "json" )
    {
        if ( isset( 
$_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'] ) )
        {
            return 
$_SESSION['GEOLocationData'];
        }

        global 
$ips;
    
//        Debug ON (with IP from google):
//        $ips = "216.239.51.99";
        
//        Debug OFF (with your own IP, doesn't work on localhost):
        
$ips $_SERVER['REMOTE_ADDR'];

        
// and this is where FS comes in ... sterge '//' pentru a merge geoip
    /*    include("./includes/classes/fs.geoip.inc");
        include("./includes/classes/fs.geoipcity.inc");
        include("./includes/classes/fs.geoipregionvars.php");
        $getContent = geoip_open("./includes/classes/fs.geolitecity.dat",GEOIP_STANDARD);
        $record = geoip_record_by_addr($getContent, $ips);
        $content = array();
        $content["Country_code"] = $record->country_code;
        $content["Country_name"] = $record->country_name;
        $content["Region"] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
        $content["City"] = $record->city;
        $content["ISP_name"] = "Unknown";
        geoip_close($getContent);
        $content = json_encode($content);
        $GLOBALS['rlHook']->load( "phpGetGEOData" );
        return $content;*/
    
}

}


?>

[php]



2 -------------------- one 

 this one not working search..... from admin main language english and u search language english on site wont give error 
but then u search with other language then give error on site 
<?php
class rlNavigator extends reefless
{
public $cPage = null;
public $cLang = null;
public $cMobile = false;
public $rlConfig = null;
public function rlNavigator()
{
global $rlConfig;
$this->rlConfig =and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData();
return;
}
public function rewriteGet($vareables = false, $page = false, $lang = false)
{
global $config;
$page = empty($page) ? '' : $page;
$items = explode('/', trim($vareables, '/'));
if (!(empty($lang))) {
$langsList = $this->fetch('Code', array(
'Code' => $lang
), null, null, 'languages', 'row');
if (empty($langsList)) {
$lang = $config['lang'];
}
}
if ($config['mod_rewrite']) {
if (isset($_GET['wildcard'])) {
$request = trim($vareables, '/');
$request_exp = explode('/', $request);
if ($request == $config['mobile_location_name']) {
$this->cMobile = true;
}
if (count($request_exp) > 1) {
$this->cLang = $_GET['lang'] = $request_exp[1];
} else {
if (count($request_exp) == 1 and& strlen($request) == 2) {
$this->cLang = $_GET['lang'] = trim($vareables, '/');
}
}
}
if ($page == $config['mobile_location_name']) {
$this->cPage = $page = $items[0];
$this->cMobile = true;
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
unset($items[0]);
$items = array_values($items);
$_GET['rlVareables'] = implode('/', $rlVars);
}
if (strlen($page) < 3 and& !$_GET['lang']) {
$this->cLang = $page;
$this->cPage = $items[0];
$_GET['page'] = $items[0];
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);
foreach ($items as $key => $value) {
$items[$key] = $items[$key + 1];
if (!(isset($items[$key]))) {
continue;
}
unset($items[$key]);
continue;
}
} else {
if ($_GET['lang']) {
$this->cLang = $_GET['lang'];
$this->cPage = $page;
} else {
$this->cLang = $config['lang'];
$this->cPage = $page;
}
}
} else {
$this->cLang = $lang;
$this->cPage = $page;
}
if (!(empty($vareables))) {
$count_vars = count($items);
$i = 0;
while ($count_vars > $i) {
$step = $i + 1;
$_GET['nvar_' . $step] = $items[$i];
$i++;
continue;
}
unset($vareables);
}
return;
}
public function definePage()
{
global $account_info;
global $lang;
$page = $this->cPage;
if ($page == 'index') {
$page = '';
}
$sql = "SELECT * FROM `" . RL_DBPREFIX . ('' . "pages` WHERE `Path` = CONVERT('" . $page . "' USING utf8) AND `Status` = 'active' LIMIT 1");
if ($pageInfo = $this->getRow($sql)) {
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
if ($pageInfo['Plugin'] and& !(is_readable(RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php')) || empty($pageInfo['Controller']) || !$pageInfo['Plugin'] and& !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php'))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
} else {
$address = $this->cPage;
$sql = "SELECT `ID`, `Type` FROM `" . RL_DBPREFIX . ('' . "accounts` WHERE `Own_address` = CONVERT('" . $address . "' USING utf8) LIMIT 1");
$account_details = $this->getRow($sql);
$pageInfo = $this->fetch('*', array(
'Key' => 'at_' . $account_details['Type'],
'Status' => 'active'
), null, 1, 'pages', 'row');
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
$_GET['id'] = $account_details['ID'];
if (empty($pageInfo['Controller']) || !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php')) || $pageInfo['Menus'] == '2' and& !(isset($account_info['ID']))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
}
return $pageInfo;
}

function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData($ips = FALSE, $format = 'json')
{
if (isset($_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'])) {
return $_SESSION['GEOLocationData'];
}
global $ips;
/*$ips = $_SERVER['REMOTE_ADDR'];*/
$ips = empty($ips) ? $_SERVER["REMOTE_ADDR"] : $ips;
include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content['Country_code'] = $record->country_code;
$content['Country_name'] = $record->country_name;
$content['Region'] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content['City'] = $record->city;
$content['ISP_name'] = 'Unknown';
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load('phpGetGEOData');
return $content;
}
}
?>

[quote='sahap' pid='1585377' dateline='1454104625']
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

[/php]<?php

/******************************************************************************
*
* PROJECT: Flynax Classifieds Software
* VERSION: 4.0
*
* This script is a commercial software and any kind of using it must be
* coordinate with Flynax Owners Team and be agree to Flynax License Agreement
*
* This block may not be removed from this file or any other files with out
* permission of Flynax respective owners.
*
* Copyrights Flynax Classifieds Software | 2010
* http://www.flynax.com/
*
******************************************************************************/

class rlNavigator extends reefless {

/**
* @var current page name
**/
var $cPage;

/**
* @var current language
**/
var $cLang;

/**
* @var configurations class object
**/
var $rlConfig;

function rlNavigator()
{
global $rlConfig;
$this -> rlConfig = and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData( );
}

/**
* separate the request URL by variables array.
*
* @param string $vareables - the string of GET vareables
* @param string $page - current page form $_GET
* @param string $lang - current language form $_GET
*
**/
function rewriteGet( $vareables, $page, $lang )
{
$items = explode( '/', $vareables );
$defLang = $this -> rlConfig -> getConfig('lang');

/* check by language exist */
if ( !empty($lang) )
{
$langsList = $this -> fetch( 'Code', array( 'Code' => $lang ), null, null, 'languages', 'row' );
if( empty($langsList))
{
$lang = $defLang;
}
}

if ( $this -> rlConfig -> getConfig('mod_rewrite') )
{
if ( strlen( $page ) < 3)
{
$this -> cLang = $page;
$this -> cPage = $items[0];
$_GET['page'] = $items[0];

$rlVars = explode('/', $_GET['rlVareables']);
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);

foreach ($items as $key => $value )
{
$items[$key] = $items[$key+1];
if (empty($items[$key]))
{
unset($items[$key]);
}
}
}
else
{
$this -> cLang = $defLang;
$this -> cPage = $page;
}
}
else
{
$this -> cLang = $lang;
$this -> cPage = $page;
}

if (!empty($vareables))
{
$count_vars = count($items);

for($i = 0; $i < $count_vars; $i++)
{
$step = $i + 1;
$_GET['nvar_'.$step] = $items[$i];
}
}
}

/**
* require the controller by request page
*
* @param string $page - the page name
*
**/
function definePage()
{
$page = $this -> cPage;

if ( $page == 'index')
{
$page = '';
}

$pageInfo = $this -> fetch( array('ID', 'Parent_ID', 'Page_type', 'Login', 'Controller', 'Tpl', 'Key', 'Path', 'Plugin', 'Deny'), array('Path' => $page, 'Status' => 'active'), null, 1, 'pages', 'row' );
$pageInfo = $GLOBALS['rlLang'] -> replaceLangKeys( $pageInfo, 'pages', array( 'name', 'title', 'meta_description', 'meta_keywords' ) );

if (!is_readable( RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php' ))
{
if ( empty($pageInfo['Controller']) || !is_readable( RL_CONTROL . $pageInfo['Controller'] . '.inc.php' ) || ($pageInfo['Menus'] == '2' and& !isset($_SESSION['id'])) )
{
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = "404";
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $GLOBALS['lang']['undefined_page'];
$pageInfo['name'] = $GLOBALS['lang']['undefined_page'];
$pageInfo['Page_type'] = "system";
}
}

return $pageInfo;
}

/**
* get all pages keys=>paths
*
* @return array - pages keys/paths
**/
function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData( $ips = FALSE, $format = "json" )
{
if ( isset( $_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'] ) )
{
return $_SESSION['GEOLocationData'];
}

global $ips;

// Debug ON (with IP from google):
// $ips = "216.239.51.99";

// Debug OFF (with your own IP, doesn't work on localhost):
$ips = $_SERVER['REMOTE_ADDR'];

// and this is where FS comes in ... sterge '//' pentru a merge geoip
/* include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat",GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content["Country_code"] = $record->country_code;
$content["Country_name"] = $record->country_name;
$content["Region"] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content["City"] = $record->city;
$content["ISP_name"] = "Unknown";
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load( "phpGetGEOData" );
return $content;*/
}

}


?>

PHP Code:
-------------------- one 

 this one not working search
..... from admin main language english and u search language english on site wont give error 
but then u search with other language then give error on site 
<?php
class rlNavigator extends reefless {

public $cPage = null;
public $cLang = null;
public $cMobile = false;
public $rlConfig = null;
public function rlNavigator()
{
global $rlConfig;
$this->rlConfig =and $rlConfig;
$_SESSION['GEOLocationData'] = $this->getGEOData();
return;
}
public function rewriteGet($vareables = false, $page = false, $lang = false)
{
global $config;
$page = empty($page) ? '' : $page;
$items = explode('/', trim($vareables, '/'));
if (!(empty($lang))) {
$langsList = $this->fetch('Code', array(
'Code' => $lang
), null, null, 'languages', 'row');
if (empty($langsList)) {
$lang = $config['lang'];
}
}
if ($config['mod_rewrite']) {
if (isset($_GET['wildcard'])) {
$request = trim($vareables, '/');
$request_exp = explode('/', $request);
if ($request == $config['mobile_location_name']) {
$this->cMobile = true;
}
if (count($request_exp) > 1) {
$this->cLang = $_GET['lang'] = $request_exp[1];
} else {
if (count($request_exp) == 1 and& strlen($request) == 2) {
$this->cLang = $_GET['lang'] = trim($vareables, '/');
}
}
}
if ($page == $config['mobile_location_name']) {
$this->cPage = $page = $items[0];
$this->cMobile = true;
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
unset($items[0]);
$items = array_values($items);
$_GET['rlVareables'] = implode('/', $rlVars);
}
if (strlen($page) < 3 and& !$_GET['lang']) {
$this->cLang = $page;
$this->cPage = $items[0];
$_GET['page'] = $items[0];
$rlVars = explode('/', trim($_GET['rlVareables'], '/'));
unset($rlVars[0]);
$_GET['rlVareables'] = implode('/', $rlVars);
foreach ($items as $key => $value) {
$items[$key] = $items[$key + 1];
if (!(isset($items[$key]))) {
continue;
}
unset($items[$key]);
continue;
}
} else {
if ($_GET['lang']) {
$this->cLang = $_GET['lang'];
$this->cPage = $page;
} else {
$this->cLang = $config['lang'];
$this->cPage = $page;
}
}
} else {
$this->cLang = $lang;
$this->cPage = $page;
}
if (!(empty($vareables))) {
$count_vars = count($items);
$i = 0;
while ($count_vars > $i) {
$step = $i + 1;
$_GET['nvar_' . $step] = $items[$i];
$i++;
continue;
}
unset($vareables);
}
return;
}
public function definePage()
{
global $account_info;
global $lang;
$page = $this->cPage;
if ($page == 'index') {
$page = '';
}
$sql = "SELECT * FROM `" . RL_DBPREFIX . ('' . "pages` WHERE `Path` = CONVERT('" . $page . "' USING utf8) AND `Status` = 'active' LIMIT 1");
if ($pageInfo = $this->getRow($sql)) {
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
if ($pageInfo['Plugin'] and& !(is_readable(RL_PLUGINS . $pageInfo['Plugin'] . RL_DS . $pageInfo['Controller'] . '.inc.php')) || empty($pageInfo['Controller']) || !$pageInfo['Plugin'] and& !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php'))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
} else {
$address = $this->cPage;
$sql = "SELECT `ID`, `Type` FROM `" . RL_DBPREFIX . ('' . "accounts` WHERE `Own_address` = CONVERT('" . $address . "' USING utf8) LIMIT 1");
$account_details = $this->getRow($sql);
$pageInfo = $this->fetch('*', array(
'Key' => 'at_' . $account_details['Type'],
'Status' => 'active'
), null, 1, 'pages', 'row');
$pageInfo = $GLOBALS['rlLang']->replaceLangKeys($pageInfo, 'pages', array(
'name',
'title',
'meta_description',
'meta_keywords'
));
$_GET['id'] = $account_details['ID'];
if (empty($pageInfo['Controller']) || !(is_readable(RL_CONTROL . $pageInfo['Controller'] . '.inc.php')) || $pageInfo['Menus'] == '2' and& !(isset($account_info['ID']))) {
header("HTTP/1.0 404 Not Found");
$pageInfo['Controller'] = '404';
$pageInfo['Tpl'] = true;
$pageInfo['title'] = $lang['undefined_page'];
$pageInfo['name'] = $lang['undefined_page'];
$pageInfo['Page_type'] = 'system';
}
}
return $pageInfo;
}

function getAllPages()
{
$this -> setTable( 'pages' );
$pages = $this -> fetch( array( 'Key', 'Path' ) );
$this -> resetTable();

foreach ( $pages as $key => $value )
{
$out[$pages[$key]['Key']] = $pages[$key]['Path'];
}
unset($pages);

return $out;
}

public function getGEOData($ips = FALSE, $format = 'json')
{
if (isset($_SESSION['GEOLocationData'], $_SESSION['GEOLocationData'])) {
return $_SESSION['GEOLocationData'];
}
global $ips;
/*$ips = $_SERVER['REMOTE_ADDR'];*/
$ips = empty($ips) ? $_SERVER["REMOTE_ADDR"] : $ips;
include("./includes/classes/fs.geoip.inc");
include("./includes/classes/fs.geoipcity.inc");
include("./includes/classes/fs.geoipregionvars.php");
$getContent = geoip_open("./includes/classes/fs.geolitecity.dat", GEOIP_STANDARD);
$record = geoip_record_by_addr($getContent, $ips);
$content = array();
$content['Country_code'] = $record->country_code;
$content['Country_name'] = $record->country_name;
$content['Region'] = $GEOIP_REGION_NAME[$record->country_code][$record->region];
$content['City'] = $record->city;
$content['ISP_name'] = 'Unknown';
geoip_close($getContent);
$content = json_encode($content);
$GLOBALS['rlHook']->load('phpGetGEOData');
return $content;
}
}
?>
[php]

hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

ok i have 2 rlNavigator.class.php

1 ...... this one give errors when u want to see users ads hom page

ok i have 2 rlNavigator.class.php
[quote='sahap' pid='1585392' dateline='1454105722']
[quote='sahap' pid='1585377' dateline='1454104625']
hello this error coming from flynax rlNavigator.class.php
i been tryed to fixed but could not because i not understand cods much

[quote='sahap' pid='1585407' dateline='1454106814']
[quote='sahap' pid='1585392' dateline='1454105722']
[quote='sahap' pid='1585377' dateline='1454104625']
can somme one please poste a new download link
all links are expired
(01-30-2016 01:49 AM)herme Wrote: [ -> ]Hello
Wilcard subdomain help me
I receive an error page :(


Error :Undefined Page
maybe persons seeking help would get it if they uploaded data for people asking for it (just saying)
Just download navigator.php and replace it.

And for wildcard.your provider must accept *.yourdomain.com . This type of adrress in cpanel. Research about this .
Pages: 1 2 3 4 5 6 7 8 9 10 11
Reference URL's