Beispiel #1
0
<?
require($cfg['path'].'/helpers/Paginator.php');
require $cfg['path'] . '/configs/config_shopcoins.php';
//require $cfg['path'] . '/models/search.php';

require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);

require_once $cfg['path'] . '/models/stats.php';
$stats_class = new stats($db_class,$tpl['user']['user_id'],session_id());
 
$search = request('search');

if(isset($_REQUEST['group'])||isset($_REQUEST['materialtype'])){  
	//$search = "";
}

if(contentHelper::get_encoding($search)=='windows-1251'){
	$search = iconv( "CP1251//TRANSLIT//IGNORE","UTF8", $search);
}



$stats_class->saveSearch($search);

$searchArray = explode(' ',$search);

$words = array();

foreach ($searchArray as $s){
    if(trim($s)){
Beispiel #2
0
    $tpl['orderby'] = request('orderby');  
    $orderby_param = '&orderby='.  $tpl['orderby'];
} else {
    $tpl['orderby'] ='dateinsertdesc';
}	


if(!isset($tpl['orderby']))	$tpl['orderby'] = "yeardesc";
//setcookie('orderby', $tpl['orderby'],  time()+ 86400 * 90,'/',$cfg['domain']);

$tpl['pagenum'] = request('pagenum')?request('pagenum'):1;

require_once($cfg['path'].'/helpers/Paginator.php');
require_once($cfg['path'].'/models/shopcoinsbyseries.php');
require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);
$filter_groups =  array();
$tpl['one_series'] =  array();

$shopcoinsbyseries_class = new model_shopcoinsbyseries($db_class);

$mycoins = array();

$OrderByArray = Array();

//$OrderByArray[] = " shopcoins.name desc";

$OrderByArray[] ="novelty desc";

if ($tpl['orderby']=="dateinsertdesc"){
	$OrderByArray[] = "s.dateinsert desc";
Beispiel #3
0
<?
header("Access-Control-Allow-Origin:*");
require $cfg['path'] . '/configs/config_shopcoins.php';
require_once $cfg['path'] . '/models/shopcoinsdetails.php';

$details_class = new model_shopcoins_details($db_class);

$search = request('term');

$searchArray = explode(' ',$search);

$words = array();

foreach ($searchArray as $s){
    if(trim($s)){
        $words[] = trim($s);
    }
}

$numbers =  array();
$years =  array();
$digits =  array();
$strings =  array();

$reg_n="/([A-Za-z0-9-]*)/isu";
$reg_y="/^19[0-9]{2}$|^20[0-9]{2}|^18[0-9]{2}|^17[0-9]{2}|^16[0-9]{2}|^15[0-9]{2}$/";
$reg_d="/^[0-9]*$/";

$i=0;
$k = 0;
Beispiel #4
0
<?
require_once($cfg['path'].'/helpers/Paginator.php');
require_once($cfg['path'].'/models/catalogshopcoinsrelation.php');
require_once $cfg['path'] . '/configs/config_shopcoins.php';
require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);

require_once $cfg['path'] . '/models/stats.php';
$stats_class = new stats($db_class,$tpl['user']['user_id'],session_id());
 

$catalogshopcoinsrelation_class = new model_catalogshopcoinsrelation($db_class);
//var_dump($_SERVER);

$page = 'show';
$tpl['show']['lhreg'] = isset($_COOKIE['lhref'])?trim($_COOKIE['lhref']):(isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:'/shopcoins');

if(substr($tpl['show']['lhreg'],-1) =='?' ) $tpl['show']['lhreg'] = substr($tpl['show']['lhreg'],0,strlen($tpl['show']['lhreg'])-1);

$arraynewcoins = Array(1=>date('Y')-2,2=>date('Y')-1,3=>date('Y'));
$show50 = 0;

$catalog=(integer)request('catalog');
$materialtype=(integer)request('materialtype');
$parent=(integer)request('parent');

if (!$materialtype) 	$materialtype = 1;
if ($parent && !$catalog) 	$catalog = $parent;

$orderusernow = 0;
$ciclelink = "";
Beispiel #5
0
<?

require_once($cfg['path'].'/helpers/Paginator.php');
require_once($cfg['path'].'/models/catalogshopcoinsrelation.php');
require_once $cfg['path'] . '/configs/config_shopcoins.php';
require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);

$catalogshopcoinsrelation_class = new model_catalogshopcoinsrelation($db_class);
//var_dump($_SERVER);

$page = 'show';
$tpl['show']['lhreg'] = isset($_COOKIE['lhref'])?trim($_COOKIE['lhref']):(isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:'/new/shopcoins');
$arraynewcoins = Array(1=>date('Y')-2,2=>date('Y')-1,3=>date('Y'));
$show50 = 0;

$catalog=(integer)request('catalog');
$materialtype=(integer)request('materialtype');
$parent=(integer)request('parent');

if (!$materialtype) 	$materialtype = 1;
if ($parent && !$catalog) 	$catalog = $parent;

$orderusernow = 0;
$ciclelink = "";

$num = 0;
$checkuser = 0;

$arraykeyword = array();
<?
require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($cfg['db']);
$details_class->migrateDetails();
$details_class->migrateKeywords();
die('end');
?>
Beispiel #7
0
<?
require_once $cfg['path'] . '/models/order.php';
require_once $cfg['path'] . '/models/orderdetails.php';
require_once $cfg['path'] . '/models/viporder.php';
require $cfg['path'] . '/configs/config_shopcoins.php';

require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);

$order_class = new model_order($db_class,$shopcoinsorder,$tpl['user']['user_id']);
$orderdetails_class = new model_orderdetails($db_class,$shopcoinsorder);

$user_data =  $user_class->getUserData();
	if($tpl['user']['user_id']==345815){
		//var_dump($user_data);
	}
$sumlimit = $user_data['sumlimit'];
$timelimit = $user_data['timelimit'];

if($sumlimit) $stopsummax = $sumlimit;

$tpl['user']['user_data'] = array();

$tpl['user']['vip_discoint'] = 0;
$tpl['user']['vip_discoint_end'] = 0;

if($tpl['user']['user_id']){
    $tpl['user']['user_data'] = $user_class->getUserData();
	if($tpl['user']['user_data']['vip_discoint']&&(!$tpl['user']['user_data']['vip_discoint_date_end']||$tpl['user']['user_data']['vip_discoint_date_end']>time())){
		$tpl['user']['vip_discoint'] = $tpl['user']['user_data']['vip_discoint'];
		if($user_data['vip_discoint_date_end']) $tpl['user']['vip_discoint_end'] = $user_data['vip_discoint_date_end'];
Beispiel #8
0
$materialtype = request('materialtype') ? (int) request('materialtype') : 1;
$tpl['show_short'] = false;
$tpl['show_short_button'] = false;
if (in_array($_SERVER['REMOTE_ADDR'], $admin_ips) && $tpl['user']['user_id']) {
    $tpl['show_short_button'] = true;
    //var_dump($_COOKIE['sshort']);
    $tpl['show_short'] = isset($_COOKIE['sshort']) && $_COOKIE['sshort'] ? true : false;
}
if ($tpl['show_short']) {
    $shopcoins_class->setShortShow(1);
}
if (isset($materialsRule[request('materialtype')])) {
    $materialtype = $materialsRule[request('materialtype')];
}
require_once $cfg['path'] . '/models/shopcoinsdetails.php';
$details_class = new model_shopcoins_details($db_class);
$mycoins = 0;
$arraykeyword = array();
//до конца недели
$bydate = 0;
//$bydate = $tpl['user']['user_id']?(int)request('bydate'):0;
if (!isset($byDates[$bydate])) {
    $bydate = 0;
}
$urlParams['bydate'] = $bydate;
$nocheck = request('nocheck');
$urlParams['nocheck'] = $nocheck;
if (isset($_REQUEST['mycoins_php'])) {
    $mycoins = 1;
} else {
    $mycoins = request('mycoins');