├── README.md ├── config.php ├── index.php ├── mini.php ├── cron.php ├── api.php └── ajax.php /README.md: -------------------------------------------------------------------------------- 1 | # - 2 | 彩虹自助下单系统;彩虹云商城;彩虹开源系统;彩虹发卡网;彩虹代刷网 3 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | 'localhost', //数据库服务器 5 | 'port' => 3306, //数据库端口 6 | 'user' => '', //数据库用户名 7 | 'pwd' => '', //数据库密码 8 | 'dbname' => '', //数据库名 9 | 'dbqz' => 'shua' //数据表前缀 10 | ); 11 | ?> -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 5.4 !'); 5 | } 6 | if (isset($_SERVER) && $_SERVER['REQUEST_URI'] == '/favicon.ico')exit; 7 | 8 | include("./includes/common.php"); 9 | 10 | if($conf['invite_tid'] && isset($_GET['i']) && $_GET['i']!=$_COOKIE['invitecode']){ 11 | $invite_result = processInvite($_GET['i']); 12 | if($invite_result=='captcha'){ 13 | @header('Content-Type: text/html; charset=UTF-8'); 14 | include TEMPLATE_ROOT.'default/captcha.php'; 15 | exit; 16 | } 17 | } 18 | @header('Content-Type: text/html; charset=UTF-8'); 19 | if($conf['fenzhan_page']==1 && !empty($conf['fenzhan_remain']) && !in_array($domain,explode(',',$conf['fenzhan_remain'])) && $is_fenzhan==false){ 20 | include ROOT.'template/default/404.html'; 21 | exit; 22 | } 23 | if($conf['forceloginhome']==1 && !$islogin2){ 24 | exit(""); 25 | } 26 | 27 | $qq=isset($_GET['qq'])?htmlspecialchars(strip_tags(trim($_GET['qq']))):null; 28 | 29 | $addsalt=md5(mt_rand(0,999).time()); 30 | $_SESSION['addsalt']=$addsalt; 31 | $x = new \lib\hieroglyphy(); 32 | $addsalt_js = $x->hieroglyphyString($addsalt); 33 | 34 | if($is_fenzhan==true && file_exists(ROOT.'assets/img/logo_'.$conf['zid'].'.png')){ 35 | $logo = 'assets/img/logo_'.$conf['zid'].'.png'; 36 | }else{ 37 | $logo = 'assets/img/logo.png'; 38 | } 39 | if($conf['cdnpublic']==1){ 40 | $cdnpublic = '//lib.baomitu.com/'; 41 | }elseif($conf['cdnpublic']==2){ 42 | $cdnpublic = 'https://cdn.bootcdn.net/ajax/libs/'; 43 | }elseif($conf['cdnpublic']==4){ 44 | $cdnpublic = '//s1.pstatp.com/cdn/expire-1-M/'; 45 | }else{ 46 | $cdnpublic = '//cdn.staticfile.org/'; 47 | } 48 | if(!empty($conf['staticurl'])){ 49 | $cdnserver = '//'.$conf['staticurl'].'/'; 50 | }else{ 51 | $cdnserver = null; 52 | } 53 | 54 | if(!empty($conf['gg_announce']))$conf['anounce']=$conf['gg_announce'].$conf['anounce']; 55 | 56 | if($is_fenzhan == true && $siterow['power']==2){ 57 | if($siterow['ktfz_price']>0)$conf['fenzhan_price']=$siterow['ktfz_price']; 58 | if($conf['fenzhan_cost2']<=0)$conf['fenzhan_cost2']=$conf['fenzhan_price2']; 59 | if($siterow['ktfz_price2']>0 && $siterow['ktfz_price2']>=$conf['fenzhan_cost2'])$conf['fenzhan_price2']=$siterow['ktfz_price2']; 60 | } 61 | 62 | list($background_image, $background_css) = \lib\Template::getBackground(); 63 | 64 | if($conf['sitename_hide']==1 && !empty($conf['title'])){ 65 | $hometitle = $conf['title']; 66 | }else{ 67 | $hometitle = $conf['sitename'].(!empty($conf['title'])?' - '.$conf['title']:null); 68 | } 69 | $mod = isset($_GET['mod'])?$_GET['mod']:'index'; 70 | $loadfile = \lib\Template::load($mod); 71 | include $loadfile; -------------------------------------------------------------------------------- /mini.php: -------------------------------------------------------------------------------- 1 | hieroglyphyString($addsalt); 20 | 21 | $rs=$DB->query("SELECT * FROM pre_class WHERE active=1 ORDER BY sort ASC"); 22 | $select=''; 23 | $shua_class[0]='默认分类'; 24 | while($res = $rs->fetch()){ 25 | $shua_class[$res['cid']]=$res['name']; 26 | $select.=''; 27 | } 28 | 29 | $select2=''; 30 | 31 | @header('Content-Type: text/html; charset=UTF-8'); 32 | ?> 33 | 34 | 35 |
36 | 37 | 38 |