Bitcoin Forum
November 16, 2024, 05:50:51 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SELLING] Shiftcode gpt script / Performa network script.  (Read 1584 times)
Harry_1988 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 28, 2016, 09:01:16 AM
Last edit: June 28, 2016, 10:23:50 AM by Harry_1988
 #1

Shiftcode gpt script - Tested and working. Require php <= 5.3.3
Performa network script - Not tested yet.

You will get full source code included dadabases.

Make your offer.

Some files from shiftcode gpt script

main.php
Code:
<?
/*--------------------------------------------------------*\
| ShiftCode
| Author: Andrew Rosolino (andrew@shiftcode.com)
\*--------------------------------------------------------*/

include('/home/shiftcod/public_html/global.php');
require_once('GainCorp/gaincorp.php');

//if(isset($_SERVER['REMOTE_ADDR']))
// error_reporting(E_ALL);
//ini_set('allow_call_time_pass_reference',false);

ini_set('pcre.backtrack_limit',-1);

$_conf = array();

if(isset($_SERVER['REDIRECT_QUERY_STRING']))
parse_str($_SERVER['REDIRECT_QUERY_STRING'],$_GET);

if($_SERVER['DOCUMENT_ROOT']=='' && $_SERVER['PWD']!='')
$_SERVER['DOCUMENT_ROOT'] = preg_replace('/^(\/home\/shiftcod\/(www|public_html)\/sites\/[0-9]+)\/.*$/','\\1',$_SERVER['PWD']);

/*--------------------------------------------------------*\
| ShiftCode Site ID
| Directory Path
| Logs Path
| Font Path
\*--------------------------------------------------------*/
define('SC_SID',(int)substr(strrchr($_SERVER['DOCUMENT_ROOT'],'/'),1));
 define('SC_HTTPS',isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on');
//if(SC_SID == 674) define('SC_HTTPS', true);
define('SC_CPATH','/home/shiftcod/public_html/sites/'.SC_SID.'/');
define('SC_LPATH','/home/shiftcod/public_html/logs/');
define('SC_FPATH','/home/shiftcod/public_html/fonts/');
define('SC_SOUNDPATH','/home/shiftcod/public_html/sounds/');

/*--------------------------------------------------------*\
| Database Host
| Database User
| Database Pass
| Database Table
\*--------------------------------------------------------*/
define('SC_DBHOST', '127.0.0.1');
define('SC_DBUSER','root');
define('SC_DBPASS','heGS73'[12sdv]*');
define('SC_DBDB','sc_'.SC_SID);
define('SC_DBPRE2','shared.');
define('SC_DBPRE','sc_'.SC_SID.'.');

/*--------------------------------------------------------*\
| Smarty Complile
\*--------------------------------------------------------*/
define('SC_SMARTYCOMPILE','/home/shiftcod/compile/'.SC_SID);

function _db_load()
{
global $_conf,$_db,$_geo;

$q = $_db->query('
SELECT
s.*,
a.mid
FROM shiftcode.sites s
LEFT JOIN shiftcode.siteAdmins a ON
a.sid=s.id AND
a.owner=1
WHERE id='.SC_SID);
$r = $_db->fetch($q);
$_conf += $r;
$_conf['owner'] = $r;
$_conf['siteName'] = &$_conf['name'];

$q = $_db->query('
SELECT `key`,`value`
FROM '.dbPre().'config');
$_conf += $_db->pair($q,'key','value');

$usingSub = preg_match('/\.shiftcode\.com$/',$_SERVER['HTTP_HOST']);
$rSub = $r['subRedirect']=='1' && $usingSub;
if(!defined('SC_IMPORTANT'))
{
if($_SERVER['HTTP_HOST']=='' || $rSub)
{
$domain = $_db->get('
SELECT domain
FROM shiftcode.domains
WHERE sid='.SC_SID.' AND status=\'1\' AND 1=1');
if($domain && $rSub)
exit(
header('Location: http://'.$domain.$_SERVER['REQUEST_URI']));

$_SERVER['HTTP_HOST'] = $domain?
$domain:
$_conf['sub'].'.shiftcode.com';
}
elseif($r['wwwRedirect']=='1' && !$usingSub && !preg_match('/^www\./',$_SERVER['HTTP_HOST']))
exit(
header('Location: http://www.'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
elseif($r['wwwRedirect']=='2' && !$usingSub && preg_match('/^www\./',$_SERVER['HTTP_HOST']))
exit(
header('Location: http://'.substr($_SERVER['HTTP_HOST'],4).$_SERVER['REQUEST_URI']));
elseif($r['sslRedirect']=='1' && !$usingSub && !SC_HTTPS)
exit(
header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
}

define('SC_DOMAIN',$_SERVER['HTTP_HOST']);
define('SC_COOKIE',preg_replace('|^www.|','',$_SERVER['HTTP_HOST']));
define('SC_SPATH','http'.(SC_HTTPS?'s':'').'://'.SC_DOMAIN.'/');
//if(SC_SID == 674) define('SC_SPATH','https://'.SC_DOMAIN.'/');
//if(SC_SID == 674) define('SC_SPATH', 'https://'.SC_DOMAIN.'/');
define('SC_ADIR',$_conf['adminDir']);
define('SC_APATH','http'.(SC_HTTPS?'s':'').'://'.SC_DOMAIN.'/'.SC_ADIR.'/');
//if(SC_SID == 674) define('SC_APATH','https://'.SC_DOMAIN.'/'.SC_ADIR.'/');
define('SC_AIPATH',SC_APATH.'images/');
define('SC_HPATH',SC_CPATH.$_conf['hiddenDir'].'/');

/*--------------------------------------------------------*\
| Site Name
\*--------------------------------------------------------*/
define('SC_NAME',$_conf['name']);

if(
!IS_DEV &&
!defined('SC_IMPORTANT') &&
!defined('SC_ADMIN') &&
get('dtDown')=='1' &&
!in_array($_SERVER['REMOTE_ADDR'],array_map('trim',explode("\n",get('dtIPs')))))
dieMsg(html_entity_decode(get('dtMsg')));

// Suspended
if(
$r['status']==2)
{
if(IS_DEV)
echo 'Site is suspended.';
else if(!defined('SC_IMPORTANT'))
dieMsg('This site is temporarily suspended, please contact billing department.');
else
define('SC_DOWN',1);
}

// Expired
else if(
!get('noexpire') &&
strtotime(get('license'))-time()<=-604800)
{
if(IS_DEV)
echo 'Site is expired.';
else if(!defined('SC_IMPORTANT'))
dieMsg('This site is expired.');
else
define('SC_DOWN',1);
}

// Remove Expired Banners
//if(get('expBanners')=='1')
//{
// set('expBanners','1');
// exec('rm -rf '.SC_CPATH.'images/.htaccess');
//}

switch(get('isDown'))
{
case 1:
die(SC_NAME.' is down for its monthly performance upgrade. Please check back in 5 minutes.');
break;
case 2:
die(SC_NAME.' is down for its daily backup. Please check back in 1 minute.');
break;
case 3:
die(SC_NAME.' is down for perfomance upgrades. We will return as soon as we are done.');
break;
}

// Is a user and not a server?
if(
!defined('SC_IMPORTANT') &&
!defined('SC_ADMIN') &&
isset($_SERVER['REMOTE_ADDR']) &&
$_SERVER['REMOTE_ADDR']!='')
{
// Blocked Country?
if(get('blockedCountries')!='' && get('blockedCountries')!='||')
{
$country = $_geo->getCountry($_SERVER['REMOTE_ADDR']);
if($country!='' && preg_match('!(^|\|\|)'.preg_quote($country).'(\|\||$)!i',get('blockedCountries')))
{
header("Status: 404 Not Found");
header("HTTP/1.1 404 Not Found");
die;
}
}

// Blocked ISP
if(get('listISPDeny')!='' && in_array(htmlentities($_geo->getISP($_SERVER['REMOTE_ADDR'])),explode("\n",get('listISPDeny'))))
{
header("Status: 404 Not Found");
header("HTTP/1.1 404 Not Found");
die;
}
}
}

/*--------------------------------------------------------*\
| Load Site
\*--------------------------------------------------------*/
require_once(SC_CPATH.'func.php');

/*--------------------------------------------------------*\
| Die Message
\*--------------------------------------------------------*/
function dieMsg($msg)
{
global $_db,$_conf;

/*
if(get('expBanners')!='1')
{
// Redirect
$redirect = array();

// Banners
if(
$_db->get('
SELECT COUNT(*)
FROM '.dbPre().'products
WHERE id=11'))
{
$q = $_db->query('
SELECT *
FROM '.dbPre().'imagePaths
WHERE
type IN (\'refBanner\',\'refFlyer\') AND
((width=468 AND height=60) || (width=120 AND height=60))');
while($r = $_db->fetch($q))
$redirect[] = 'RedirectMatch ^/images/banners/'.preg_quote($r['path']).' http://shiftcode.com/advertise/banner'.$r['width'].'x'.$r['height'];
}

// Signature
if(
$_db->get('
SELECT COUNT(*)
FROM '.dbPre().'products
WHERE id=32'))
{
$q = $_db->query('
SELECT *
FROM '.dbPre().'imagePaths
WHERE
type IN (\'signature\') AND
((width=468 AND height=60) || (width=120 AND height=60))');
while($r = $_db->fetch($q))
$redirect[] = 'RedirectMatch ^/images/signature/'.$r['id'].'(.*) http://shiftcode.com/advertise/banner'.$r['width'].'x'.$r['height'];
}

$fp = fopen(SC_CPATH.'images/.htaccess','w');
fwrite($fp,implode("\n",$redirect));
fclose($fp);

set('expBanners','1');
}

if($_SERVER['REQUEST_URI']!='')
{
$_db->query('
INSERT INTO shiftcode.trackExpired(sid,name,domain,request,referral,ip,action)
VALUES
(
'.SC_SID.',
\''.addslashes(SC_NAME).'\',
\''.addslashes($_SERVER['HTTP_HOST']).'\',
\''.addslashes($_SERVER['REQUEST_URI']).'\',
\''.addslashes($_SERVER['HTTP_REFERER']).'\',
\''.$_SERVER['REMOTE_ADDR'].'\',
NOW()
)');
$ref = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
?>
<html>
<head>
<title><?=$msg?></title>
<meta http-equiv="refresh" content="3;url=http://shiftcode.com/advertise/?redirect&<?=urlencode($ref)?>" />
</head>
<body>
<div><?=$msg?></div><br />
<div>You are currently being redirected to our sponsor/advertiser. Please <a href="http://shiftcode.com/advertise/?redirect&<?=urlencode($ref)?>">click here</a> if you are not redirected.</div>
</body>
</html>
<?
}*/
die($msg);
}
?>
index.php
Code:
<?
/*--------------------------------------------------------*\
| Site
| Author: Andrew Rosolino (andrew@shiftcode.com)
\*--------------------------------------------------------*/

/*--------------------------------------------------------*\
| Grab the main source file.
\*--------------------------------------------------------*/
if(
!preg_match('/\.php$/',$_SERVER['REDIRECT_URL']) &&
preg_match('/\./',$_SERVER['REDIRECT_URL']))
die('The page requested does not exist on this server.');

$_SERVER['PHP_SELF'] = $_SERVER['REDIRECT_URL'];
require_once('main.php');

stripPost();
unStripPost();

$page = addslashes(substr($_SERVER['REDIRECT_URL'],1));
if(!strpos($page,'/'))
$page = basename($page,'.php');

$pageid = $_db->get('
SELECT pageid
FROM '.dbPre().'pages
WHERE
pageid=\''.$page.'\'');

if($pageid===false)
{
if(
$page==get('home') ||
(!get('home') && action('loadhomepage')))
die('There is no page to load or the homepage has not been configured.');

$pageid = $_db->get('
SELECT pageid
FROM '.dbPre().'pages
WHERE
pageid=\''.get('home').'\'');

if($pageid===false)
exit(
header('Location: /'.get('home').'?loadhomepage'));
}

$_dis->page($pageid);
?>
Harry_1988 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 29, 2016, 02:54:15 PM
 #2

For more info go to http://www.gptsitescript.com/
FreeCashPro
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile WWW
August 26, 2017, 09:26:21 AM
 #3

You know this post is just wrong on so many levels and you 'Harry_1988' are an ass!  ::)  

First of all you are attempting to screw both ShiftCode and any person that thinks he/she are buying a working latest version script!

I'm very familiar with this script and I know that there are several built-in ways to defeat stolen and hacked copies of the script.  I know personally that any script not on official ShiftCode servers will fail to run if it's not listed on the one (in the world) ShiftCode license server.  That along with several other built in security features that will prevent unauthorized counterfeit (namely, your own) scripts to run.

Yes, I am the author of GPTSiteScript.com (yes, I know tons about this script)
tmjohnscott
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 21, 2018, 09:05:07 PM
 #4

info harry message me
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!