function getMainTemplate() { global $settings, $sql; // Haupt-Template $template = '{..doctype..} <html lang="' . $settings['language'] . '"> <head> {..title..}{..meta..}{..link..}{..script..} </head> {..body..} </html>'; // Dynamischen Titel laden $template_title = getTitle(); // Metadaten laden $template_meta = ' <meta name="title" content="' . $template_title . '"> <meta name="description" content="' . $settings['description'] . '"> <meta name="keywords" lang="' . $settings['language'] . '" content="' . $settings['keywords'] . '"> <meta name="robots" content="index,follow"> <meta name="Revisit-after" content="3 days"> <meta http-equiv="content-language" content="' . $settings['language'] . '"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="DC.Title" content="' . $template_title . '"> <meta name="DC.Description" content="' . $settings['description'] . '"> <meta name="DC.Language" content="' . $settings['language'] . '"> <meta name="DC.Format" content="text/html"> '; // link's + CSS einbinden $template_link = ' <link rel="shortcut icon" href="style/icons/favicon.ico">' . getCSS(); // Platzhalter ersetzen $template = str_replace("{..title..}", "<title>" . $template_title . "</title>", $template); $template = str_replace("{..meta..}", $template_meta, $template); $template = str_replace("{..link..}", $template_link, $template); $template = str_replace("{..script..}", getJS(), $template); // Haupt-Template zurückgeben return $template; }
window.alert = function () {}; window.onbeforeunload = function(){ $(document).unbind().die(); //remove listeners on document $(document).find('*').unbind().die(); //remove listeners on all nodes } </script> <script type="text/javascript"> try { <?php echo getJS(); ?> } catch (e) { console.error(e.message); parent.window.onDifferent('Error'); } $(function () { <?php @(include "{$path}/unit-tests.js"); ?> }); </script> </head>
return $css; } function getJS() { $js = ''; $file = "js/flickr_photo_search-min.js"; if (file_exists($file)) { $js = file_get_contents($file); } $scripts = <<<SCRIPTS <script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> <script type="text/javascript"> {$js} </script> SCRIPTS; return $scripts; } /* End of Functions */ /* Being Markup Preparetion */ $css = getCSS(); $js = getJS(); $html = <<<MARKUP <head> {$css} </head> <body> {$result} {$js} </body> MARKUP; echo $html;
* contact support@securelive.net or call 888-300-4546 for assistance. * ****************************************************************************************************/ #FOR SERVER EDITION define("MOD_PATH", "."); define("IMG_PATH", MOD_PATH."/images"); if(!isset($_GET['mode']) || $_GET['mode'] == 'ajax'){ define("IMG_PATH", "images"); $isIE7 = (bool)(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 7") !== false); $popup_div = false; $badge = getBadge(null, $popup_div, $isIE7); echo " <HTML> <head> ".getJS($popup_div)." </head> <body style='background: #D00000;'> </body> </HTML>"; } if(!class_exists('adminFuncs')){ class adminFuncs{ public $connected; public $config_fp; public function sl_get_path(){ $filepath = "false"; if($this->config_exists()){ include($this->config_fp);
$validar = $_SESSION['username']; if (!isset($validar)) { ?> <script type="text/javascript" language="javascript">window.location="../acceso/";</script> <?php } else { ?> <!DOCTYPE html> <html lang="en"> <head> <?php include_once 'functions.php'; getMeta(); getTitle(); getCss(); getJS(); ?> </head> <body> <div class="navbar navbar-inverse" role="navigation"> <div class="navbar-header"> <a class="navbar-brand" href="../inicio/"><img src="../images/logo.png" alt="Londinium"></a> <a class="sidebar-toggle"><i class="icon-paragraph-justify2"></i></a> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-icons"> <span class="sr-only">Toggle navbar</span> <i class="icon-grid3"></i> </button> <button type="button" class="navbar-toggle offcanvas"> <span class="sr-only">Toggle navigation</span> <i class="icon-paragraph-justify2"></i> </button>
<?php $this->load->view('common/header'); $user = getLoginUserDetail(); ?> <script type="text/javascript" src="<?php echo getJS('jquery.ui.timepicker.js'); ?> "></script> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#eventStartTime').timepicker({ showPeriod: true, showNowButton: true, showDeselectButton: true, showCloseButton: true, showLeadingZero: true }); jQuery('#eventEndTime').timepicker({ showPeriod: true, showNowButton: true, showDeselectButton: true, showCloseButton: true, showLeadingZero: true }); }); </script> <script language="javascript" type="text/javascript" src="<?php echo base_url(); ?> assets/tiny_mce/tiny_mce.js"></script>
function sl_widget($args){ extract($args); $options = explode('#sl#', get_option('sl_badge_widget')); $base_url = plugins_url() . '/' . dirname(plugin_basename(__FILE__)) . '/'; #Get $params { $arr = array('sl_badge_series','sl_badge_type','sl_badge_color','sl_position','custom_pad_top','custom_pad_right','custom_pad_left','custom_pad_bottom','custom_margin_top','custom_margin_right','custom_margin_left','custom_margin_bottom','custom_position','custom_zindex','sl_popup','moduleclass_sfx'); $params = new ParamWrapper(); for($i=0;$i<count($arr);$i++){ $params->set($arr[$i],$options[$i]); } } $isIE7 = (bool)(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 7") !== false); $popup_div = false; $badge = getBadge($params, $popup_div, $isIE7); echo $before_widget; echo getJS($popup_div); echo $badge; echo $after_widget; }
<?php $headers = apache_request_headers(); $client_time = isset($headers['If-Modified-Since']) ? strtotime($headers['If-Modified-Since']) : 0; $now = gmmktime(); $now_list = gmmktime() - 60 * 5; if ($client_time < $now and $client_time > $now_list) { header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $client_time) . 'GMT', true, 304); } else { header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $now) . ' GMT', true, 200); } $js['sh'] = array('/static/scripts/shCore.js', '/static/scripts/shBrushBash.js', '/static/scripts/shBrushCpp.js', '/static/scripts/shBrushCSharp.js', '/static/scripts/shBrushCss.js', '/static/scripts/shBrushDelphi.js', '/static/scripts/shBrushDiff.js', '/static/scripts/shBrushGroovy.js', '/static/scripts/shBrushJava.js', '/static/scripts/shBrushJScript.js', '/static/scripts/shBrushPhp.js', '/static/scripts/shBrushPlain.js', '/static/scripts/shBrushPython.js', '/static/scripts/shBrushRuby.js', '/static/scripts/shBrushScala.js', '/static/scripts/shBrushSql.js', '/static/scripts/shBrushVb.js', '/static/scripts/shBrushXml.js'); define("WEBPATH", realpath('../')); if (isset($_GET['file'])) { echo getJS(explode('|', $_GET['file'])); } elseif (isset($_GET['g'])) { echo getJS($js[$_GET['g']]); } function getJS($files) { $js = ''; foreach ($files as $f) { $js .= file_get_contents(WEBPATH . $f); $js .= "\n"; } return $js; }
form { width: 100%; } #status { text-align: center; font-size: 15px; margin: 15px auto; width: 450px; } </style> <?echo getJS($a);?> </head> <body> <?echo getBody($a);?> </body> </html> <? function getTitle($a) { $id = $_GET["id"]; if(!(isset($id)) || strlen($id)<11 || strlen($id)>11) unset($a);
$menuPath = '/view/site/dashboard/user/menu.php'; $sitePath = '/view/site/dashboard/user/contacts.php'; break; default: // DASHBOARD // Model require_once APP_PATH . 'model/getActivePackages.php'; require_once APP_PATH . 'model/getAllPackages.php'; require_once APP_PATH . 'model/bookPackage.php'; require_once APP_PATH . 'model/sendBill.php'; require_once APP_PATH . 'model/getJs.php'; // PDF MAKER require_once APP_PATH . 'lib/fpdf.php'; require_once APP_PATH . 'lib/pdf.php'; require_once APP_PATH . 'lib/phpmailer.php'; // controller require_once APP_PATH . 'control/haendlerDashboardController.php'; // call models $activePackages = getActivePackages($_SESSION['user_id'], $db); if ($activePackages) { $_SESSION['user_has_package'] = true; } else { $_SESSION['user_has_package'] = false; } $packages = getAllPackages($db); $scripts = getJS($allScripts, ['booking' => 1], true); // Template $menuPath = '/view/site/dashboard/user/menu.php'; $sitePath = '/view/site/dashboard/user/dashboard.php'; break; }