-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (20 loc) · 733 Bytes
/
index.php
File metadata and controls
38 lines (20 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// CopyShop Index File, this is the starting point for your front end.
// From here it fires the following file. If you are reading our code for the first time,
// go here next and follow the code. It's pretty simple.
//$host = $_SERVER['HTTP_HOST'];
//$x = substr($host, 0, 4);
//if ($x !== "www.") {
//echo 'hello';
//Header( "HTTP/1.1 301 Moved Permanently" );
//Header( "Location: http://www.".$_SERVER['HTTP_HOST']."/?".$_SERVER["QUERY_STRING"] );
//}
//error options, for debugging
error_reporting(E_ALL ^ E_NOTICE);
ini_set("display_errors", 1);
ini_set("display_warnings", 1);
// start a session if need be
if(session_id() == ""){session_start();}
// fire it up
require('cs-includes/start.php');
?>