<link rel="stylesheet" href="assets/css/style.css"> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> </head> <body> <?php include "includes/nav.php"; ?> <?php include "includes/header.php"; ?> <div id="content"> <?php PageContent(); ?> </div> <!-- content --> <!--Footer has all scripts--> <?php include "includes/footer.php"; ?> </body> </html>
$aDbConf['db_sock'] = array(name => "Database socket path", ex => "/tmp/mysql50.sock", desc => "Leave blank or specify MySQL Database socket path.", def => "", check => ''); $aDbConf['db_name'] = array(name => "Database name", ex => "YourDatabaseName", desc => "Your MySQL database name here.", check => 'return strlen($arg0) >= 1 ? true : false;'); $aDbConf['db_user'] = array(name => "Database user", ex => "YourName", desc => "Your MySQL database read/write user name here.", check => 'return strlen($arg0) >= 1 ? true : false;'); $aDbConf['db_password'] = array(name => "Database password", ex => "YourPassword", desc => "Your MySQL database password here.", check => 'return strlen($arg0) >= 0 ? true : false;'); $aGeneral = array(); $aGeneral['site_title'] = array(name => "Site Title", ex => "The Best Community", desc => "The name of your site", check => 'return strlen($arg0) >= 1 ? true : false;'); $aGeneral['site_email'] = array(name => "Site e-mail", ex => "*****@*****.**", desc => "Your site e-mail.", check => 'return strlen($arg0) > 0 AND strstr($arg0,"@") ? true : false;'); $aGeneral['notify_email'] = array(name => "Notify e-mail", ex => "*****@*****.**", desc => "Envelope \"From:\" address for notification messages", check => 'return strlen($arg0) > 0 AND strstr($arg0,"@") ? true : false;'); $aGeneral['bug_report_email'] = array(name => "Bug report email", ex => "*****@*****.**", desc => "Your email for receiving bug reports.", check => 'return strlen($arg0) > 0 AND strstr($arg0,"@") ? true : false;'); $aGeneral['admin_username'] = array(name => "Admin Username", ex => "admin", desc => "Specify the admin name here", check => 'return strlen($arg0) >= 1 ? true : false;'); $aGeneral['admin_password'] = array(name => "Admin Password", ex => "dolphin", desc => "Specify the admin password here", check => 'return strlen($arg0) >= 1 ? true : false;'); /*----------Vars----------------*/ /*------------------------------*/ $sAction = $_REQUEST['action']; $sError = ''; $cont = PageContent($sError); mb_internal_encoding('UTF-8'); echo PageHeader($sAction, $sError); echo $cont; echo PageFooter($sAction); function PageContent(&$sError) { global $aConf, $permDirectories, $permFiles, $reversalDirectories, $reversalFiles; global $confFirst, $aDbConf, $aGeneral, $aRayFolders, $aRayFiles; $ret = ''; switch ($_REQUEST['action']) { case 'step7': $ret .= loadDolphin(); break; case 'step6': $dirName = '';
function HTMLBody() { $page = Page::getInstance(); $html = "<body>"; $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>"; $html .= "<div id='fs'></div>"; //$html.= file_get_contents("img/icons.svg"); $html .= "<header class='headerContainer' >"; $html .= SiteHeader(); $html .= "</header>"; $html .= "<nav class='menuContainer'>"; $html .= SiteMenu(); $html .= "</nav>"; $html .= "<div class='pageContainer'>"; $html .= "<div class='module module--page pageWrapper'>"; $html .= PageHeader(); $html .= PageNav(); $html .= PageContent(); $html .= PageAds(); $html .= "</div>"; $html .= "</div>"; $html .= "<footer class='footerContainer'>"; $html .= SiteFooter(); $html .= "</footer>"; //$html.= js('_assets/js/components/es5-shim'); //$html .= "<script>var DEBUG = true, POLYFILLPROMISE = false;</script>"; /* $html .= js('_assets/js/olli/module'); $html .= includelib('_assets/js/olli', 'build.json'); //$html.= js('js/olli'); $html .= js('_assets/js/olli/test'); */ ///* $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>"; $html .= js('_assets/es6/vendors/browser'); $html .= js('_assets/es6/vendors/system-polyfills'); $html .= js('_assets/es6/vendors/system'); $html .= "<script>"; $html .= "System.config({"; $html .= " transpiler: 'babel'"; //$html .= " baseURL: '_assets/es6/olli'"; $html .= " });"; $html .= "System.import('_assets/es6/olli/olli-test.js?cache=" . time() . "');"; $html .= "</script>"; //*/ /* $html.= js('js/olli-dev'); $html .= js('_assets/js/olli/test'); */ $html .= "</body>"; return $html; }
function HTMLBody() { $page = Page::getInstance(); $html = "<body>"; $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>"; $html .= "<header class='headerContainer' >"; $html .= SiteHeader(); $html .= "</header>"; $html .= "<nav class='menuContainer'>"; $html .= SiteMenu(); $html .= "</nav>"; $html .= "<div class='pageContainer'>"; $html .= "<div class='module module--page pageWrapper'>"; $html .= PageHeader(); $html .= PageNav(); $html .= PageContent(); $html .= PageAds(); $html .= "</div>"; $html .= "</div>"; $html .= "<footer class='footerContainer'>"; $html .= SiteFooter(); $html .= "</footer>"; /* $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>"; $html.= js('_assets/es6/vendors/browser'); $html.= js('_assets/es6/vendors/system-polyfills'); $html.= js('_assets/es6/vendors/system'); $html .= "<script>"; $html .= "System.config({"; $html .= " transpiler: 'babel'"; //$html .= " baseURL: '_assets/es6/olli'"; $html .= " });"; $html .= "System.import('_assets/es6/olli/olli-test.js?cache=".time()."');"; $html .="</script>"; */ /* $html .= js('js/dist/app.min'); */ // /* $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>"; $html .= js('_assets/es6/vendors/browser'); $html .= js('_assets/es6/vendors/system-polyfills'); $html .= js('_assets/es6/vendors/system'); $html .= "<script>"; $html .= "System.config({"; $html .= " transpiler: 'babel'"; //$html .= " baseURL: '_assets/es6/olli'"; $html .= " });"; $html .= "System.import('_assets/es6/app.js?cache=" . time() . "');"; $html .= "</script>"; // */ $html .= "</body>"; return $html; }