Какие бывают стучалки и методы лечения

Серега

Постоялец
Регистрация
26 Июн 2011
Сообщения
99
Реакции
42
Поставил скрипт Flynax pets nulled
Да, установилась, все вроде-бы отлично, но выбилась такая вот херня:

админка
Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 34

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 35

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 50

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 51

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/classes/reefless.class.php on line 62

сам сайт
Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 28

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 29

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 44

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 45

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/classes/reefless.class.php on line 62

Может это и есть стучалки?
 
скорее всё дело в некорректной работе скрипта... указаны строки в чём именно проблемма. посмотрите к чему обращается скрипт в этих строках
 
скорее всё дело в некорректной работе скрипта... указаны строки в чём именно проблемма. посмотрите к чему обращается скрипт в этих строках
я не разбираюсь, не могли бы мне помочь? Я выложу эти файлы сюда
 

вот они:


admin.control.inc.php

PHP:
<?php
 
/******************************************************************************
*
*    PROJECT: Flynax Classifieds Software
*    VERSION: 3.2
*    LISENSE: FL0HXF6DKASG - http://www.flynax.com/license-agreement.html
*    PRODUCT: Pets Classifieds Software
*    DOMAIN: smilesdelivery.com
*    FILE: ACCOUNTS.INC.PHP
*
*    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 | 2011
*    http://www.flynax.com/
*
******************************************************************************/
 
/* define interface */
define( 'REALM', 'admin' );
 
/* send headers */
header('Cache-Control: must-revalidate');
 
session_start();
 
require_once( RL_CLASSES . 'rlDb.class.php' );
require_once( RL_CLASSES . 'reefless.class.php' );
 
$rlDb = &new rlDb();
$reefless = &new reefless();
 
/* load classes */
$reefless -> connect(RL_DBHOST, RL_DBPORT, RL_DBUSER, RL_DBPASS, RL_DBNAME);
$reefless -> loadClass( 'Debug' );
$reefless -> loadClass( 'Config' );
$reefless -> loadClass( 'Lang' );
$reefless -> loadClass( 'Valid' );
$reefless -> loadClass( 'Notice' );
$reefless -> loadClass( 'Admin', 'admin' );
$reefless -> loadClass( 'Actions' );
 
/* ajax library load */
require_once( RL_AJAX . 'xajax_core' . RL_DS . 'xajax.inc.php' );
 
$rlXajax = & new xajax();
$_response = & new xajaxResponse();
$GLOBALS['_response'] = $_response;
 
$rlXajax -> configure('javascript URI', RL_URL_HOME . 'libs/ajax/' );
$rlXajax -> configure('debug', RL_AJAX_DEBUG);
 
$rlXajax -> setCharEncoding( 'UTF-8' );
 
$reefless -> loadClass( 'AjaxAdmin', 'admin' );
$rlXajax -> registerFunction( array( 'logIn', $rlAjaxAdmin, 'ajaxLogIn' ) );
$rlXajax -> registerFunction( array( 'logOut', $rlAjaxAdmin, 'ajaxLogOut' ) );
/* ajax library end */
 
/* smarty library load */
require_once( RL_LIBS . 'smarty' . RL_DS . 'Smarty.class.php' );
$reefless -> loadClass( 'Smarty' );
/* smarty library load end */
 
/* register functions */
$rlSmarty -> register_function('fckEditor', array( 'rlSmarty', 'fckEditor' ));
 
/* utf8 library functions */
function loadUTF8functions()
{
    $names = func_get_args();
   
    if ( empty($names) )
    {
        return false;
    }
   
    foreach ( $names as $name )
    {
        if (file_exists( RL_LIBS . 'utf8' . RL_DS . 'utils' . RL_DS . $name . '.php' ))
        {
            require_once( RL_LIBS . 'utf8' . RL_DS . 'utils' . RL_DS . $name . '.php' );
        }
    }
}
/* utf8 library functions end */





 
PHP:
reefless.class.php
 
<?php
 
/******************************************************************************
 
*
 
* PROJECT: Flynax Classifieds Software
 
* VERSION: 3.2
 
* LISENSE: FL0HXF6DKASG - http://www.flynax.com/license-agreement.html
 
* PRODUCT: Pets Classifieds Software
 
* DOMAIN: smilesdelivery.com
 
* FILE: ACCOUNTS.INC.PHP
 
*
 
* 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 | 2011
 
* http://www.flynax.com/
 
*
 
******************************************************************************/
 
class reefless extends rlDb
 
{
 
/**
 
* requires php class file, creates global class object
 
*
 
* @param string $className - loaded class name
 
* @param string $type - class type ( null or admin )
 
* @param string $plugin - plugin name
 
**/
 
function loadClass( $className, $type = null, $plugin = false )
 
{
 
$className = 'rl' . $className;
 
if ( !is_object( $className ) )
 
{
 
$path = $plugin ? RL_PLUGINS . $plugin . RL_DS :RL_CLASSES;
 
if ( !empty( $type ) && $type == 'admin' )
 
{
 
$fileSource = $path . 'admin' . RL_DS . $className . '.class.php' ;
 
}
 
elseif ( $type == null )
 
{
 
$fileSource = $path . $className . '.class.php';
 
}
 
global $$className;
 
if ( !is_object( $$className ) )
 
{
 
if ( file_exists( $fileSource ) )
 
{
 
require_once( $fileSource );
 
}
 
else
 
{
 
die( "The '{$className}' class not found" );
 
}
 
$$className = &new $className;
 
$GLOBALS[$className] = $$className;
 
}
 
}
 
}
 
/**
 
* redirect to referer
 
*
 
* @param string $varString - additional url string
 
*
 
* @return redirect
 
**/
 
function referer( $vars = false, $cur_lang = false, $new_lang = false )
 
{
 
$request_url = $_SERVER['HTTP_REFERER'];
 
//if IE
 
if (empty($request_url))
 
{
 
$request_url = $_SERVER['REQUEST_URI'];
 
}
 
if ( $GLOBALS['config']['mod_rewrite'] && $cur_lang )
 
{
 
$replace = $search = RL_URL_HOME;
 
$search .= $GLOBALS['config']['lang'] == $cur_lang ? '' : $cur_lang . "/";
 
$replace .= $GLOBALS['config']['lang'] == $new_lang ? '' : $new_lang . "/";
 
$request_url = str_replace($search, $replace, $request_url);
 
}
 
if ( !empty($vars) )
 
{
 
$var_char = false !== strpos($request_url, '?') ? '&' : '?' ;
 
$request_url .= $var_char . $vars;
 
}
 
header( "Location: " . $request_url );
 
exit;
 
}
 
/**
 
* redirect to ...
 
*
 
* @param array $varString - additional url array
 
* @param string $target - target url
 
*
 
* @return redirect
 
**/
 
function redirect( $vars = null, $target = false )
 
{
 
if ($target)
 
{
 
header( "Location: " . $target );
 
exit;
 
}
 
if (defined('REALM'))
 
{
 
$request_url = str_replace( trim(RL_DIR, RL_DS), '', $_SERVER['PHP_SELF']);
 
$request_url = trim($request_url, '/');
 
}
 
else
 
{
 
$request_url = str_replace( trim(RL_DIR, RL_DS), '', $_SERVER['REQUEST_URI']);
 
$request_url = trim($request_url, '/');
 
}
 
$request_url = RL_URL_HOME . $request_url;
 
if ( is_array($vars) )
 
{
 
if (defined('REALM'))
 
{
 
$request_url .= "?";
 
}
 
else
 
{
 
if ( false !== strpos( $request_url, '?' ) )
 
{
 
$request_url .= "&";
 
}
 
else
 
{
 
$request_url .= "?";
 
}
 
}
 
foreach ( $vars as $var => $value )
 
{
 
$request_url .= $var."=".$value."&";
 
}
 
$request_url = substr($request_url, 0, -1);
 
}
 
header( "Location: " . $request_url );
 
exit;
 
}
 
/**
 
* refresh page
 
*
 
* @param array $varString - additional url array
 
*
 
* @return redirect
 
**/
 
function refresh()
 
{
 
$addUrl = str_replace( RL_DIR, '', $_SERVER['REQUEST_URI']);
 
$addUrl = trim($addUrl, '/');
 
$refresh = RL_URL_HOME . $addUrl;
 
header( "Location: " . $refresh );
 
exit;
 
}
 
/**
 
* check admin session expire time
 
**/
 
function checkSessionExpire()
 
{
 
$ses_exp = session_cache_expire()-5;
 
if ( isset($_SESSION['admin_expire_time']) && time() - $_SESSION['admin_expire_time'] > $ses_exp * 60 )
 
{
 
session_destroy();
 
return false;
 
}
 
else
 
{
 
$_SESSION['admin_expire_time'] = $_SERVER['REQUEST_TIME'];
 
return true;
 
}
 
}
 
/**
 
* read directory
 
*
 
* @param string $dir - directory path
 
* @param bool $dir_mode - read directories only
 
* @param bool $type - require content type
 
*
 
* @return directory content
 
**/
 
function scanDir( $dir = null, $dir_mode = false, $type = false )
 
{
 
if (is_dir($dir))
 
{
 
if ($dh = opendir($dir))
 
{
 
$index = 0;
 
while (($file = readdir($dh)) !== false)
 
{
 
if (!ereg( '^\.{1,2}', $file ))
 
{
 
if ($type)
 
{
 
$content[$index]['name'] = $file;
 
$content[$index]['type'] = filetype($dir . $file);
 
$index++;
 
}
 
else
 
{
 
if ($dir_mode)
 
{
 
if (is_dir($dir . $file))
 
{
 
$content[] = $file;
 
}
 
}
 
else
 
{
 
$content[] = $file;
 
}
 
}
 
}
 
}
 
closedir($dh);
 
}
 
}
 
return $content;
 
}
 
/**
 
* get page content
 
*
 
* @param string $url - page url
 
*
 
* @return page content
 
**/
 
function getPageContent($url)
 
{
 
$content = null;
 
$user_agent = 'reefLESS bot';
 
if (ini_get('allow_url_fopen'))
 
{
 
$stream = fopen($url, "r");
 
if ($stream) {
 
while (!feof($stream)) {
 
$content .= fgets($stream, 4096);
 
}
 
fclose($stream);
 
}
 
}
 
elseif (extension_loaded('curl'))
 
{
 
set_time_limit(50);
 
$ch = curl_init();
 
curl_setopt($ch, CURLOPT_URL, $url);
 
curl_setopt($ch, CURLOPT_HEADER, 0);
 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
 
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
 
$content = curl_exec($ch);
 
curl_close($ch);
 
}
 
else
 
{
 
return false;
 
}
 
return $content;
 
}
 
}
<-------------- добавлено через 38 сек. -------------->
PHP:
control.inc.php
 
<?php
 
/******************************************************************************
*
*    PROJECT: Flynax Classifieds Software
*    VERSION: 3.2
*    LISENSE: FL0HXF6DKASG - http://www.flynax.com/license-agreement.html
*    PRODUCT: Pets Classifieds Software
*    DOMAIN: smilesdelivery.com
*    FILE: ACCOUNTS.INC.PHP
*
*    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 | 2011
*    http://www.flynax.com/
*
******************************************************************************/
 
session_start();
 
require_once( RL_CLASSES . 'rlDb.class.php' );
require_once( RL_CLASSES . 'reefless.class.php' );
 
$rlDb = &new rlDb();
$reefless = &new reefless();
 
/* load classes */
$reefless -> connect(RL_DBHOST, RL_DBPORT, RL_DBUSER, RL_DBPASS, RL_DBNAME);
$reefless -> loadClass( 'Debug' );
$reefless -> loadClass( 'Config' );
$reefless -> loadClass( 'Lang' );
$reefless -> loadClass( 'Valid' );
$reefless -> loadClass( 'Hook' );
 
if ( !isset($_SERVER['TERM']) )
{
    /* load ajax library */
    require_once( RL_AJAX . 'xajax_core' . RL_DS . 'xajax.inc.php' );
 
    $rlXajax = &new xajax();
    $_response = &new xajaxResponse();
    $GLOBALS['_response'] = $_response;
 
    $rlXajax -> configure('javascript URI', RL_URL_HOME . 'libs/ajax/' );
    $rlXajax -> configure('debug', RL_AJAX_DEBUG);
 
    $rlXajax -> setCharEncoding( 'UTF-8' );
    /* ajax library end */
}
 
/* load smarty library */
require_once( RL_LIBS . 'smarty' . RL_DS . 'Smarty.class.php' );
$reefless -> loadClass( 'Smarty' );
 
define('RL_SETUP', 'JGxpY2Vuc2VfZG9tYWluID0gInNtaWxlc2RlbGl2ZXJ5LmNvbSI7CgkJCQkJICRsaWNlbnNlX251bWJlciA9ICJGTDBIWEY2REtBU0ciOw==');
 
/* gpc checking */
if (get_magic_quotes_gpc())
{
    if ( isset($_SERVER['CONTENT_TYPE']) )
    {
        $in = array(&$_GET, &$_POST);
        while (list($k,$v) = each($in))
        {
            foreach ($v as $key => $val)
            {
                if (!is_array($val)) {
                    $in[$k][$key] = str_replace(array("\'", '\"'), array( "'", '"'), $val);
                    continue;
                }
                $in[] =& $in[$k][$key];
            }
        }
        unset($in);
    }
}
 
эта ошибка возникает из за версии php (скорее всего у вас 5.3). просто уберитерите вывод ошибок в php.ini.
Найдите строки:
error_reporting
display_errors
И замените их на:
error_reporting = E_NONE
display_errors = Off

ЗЫ: извиняюсь, не посмотрел сразу что именно за ошибка и направил не на тот путь. а на стучалки чтоб проверить всегда стоит вылаживать весь скрипт.
 
Вот все скрипты и все дополнительные модули Flynax, выложены для тестирования в одном архиве.
Для просмотра ссылки Войди или Зарегистрируйся
сайт мой на который я ставил pets classifields не отображался вообще на главной странице а админка работала, я включил отчет по всем ошибкам и выбились вышесказанные ошибки.
адрес сайта вы видели
zoopsk.com
 
Поставил скрипт Flynax pets nulled
Да, установилась, все вроде-бы отлично, но выбилась такая вот херня:

админка
Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 34

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 35

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 50

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/admin/controllers/admin.control.inc.php on line 51

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/classes/reefless.class.php on line 62

сам сайт
Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 28

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 29

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 44

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/control.inc.php on line 45

Strict Standards: Assigning the return value of new by reference is deprecated in /home/zoopsk/zoopsk.com/www/includes/classes/reefless.class.php on line 62

Может это и есть стучалки?


Strocka 34 :
$rlDb = &new rlDb();
isprav na:
$rlDb = new rlDb();

analogichno i 35, 50, 51 strocki


Ydachi!
 
Назад
Сверху