Example #1
0
function html_header()
{
    global $url_relative, $html_title, $html_body_class;
    if (!defined('HTML_HEADER_DISPLAYED')) {
        define('HTML_HEADER_DISPLAYED', true);
        if (!isset($html_title)) {
            $html_title = '';
        }
        if (!isset($html_body_class)) {
            $html_body_class = 'body';
        }
        echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' . "\n";
        echo "<html>\n";
        echo "\t<head>\n";
        echo '		<meta http-equiv="content-type" content="text/html; charset=windows-1250">' . "\n";
        echo '		<link type="text/css" rel="stylesheet" href="' . $url_relative . 'style.css" />' . "\n";
        if (!empty($html_title)) {
            echo "\t\t<title>{$html_title}</title>\n";
        }
        if (!defined('NOSTARTBODY')) {
            html_body();
        }
    }
}
Example #2
0
<?php 
for ($i = 0; $i < 30; $i++) {
    echo '			linknames[' . $i . '] = "' . tc('9_' . $i . 'ee31', false) . '";' . "\n";
}
?>
			window.location.href = "../innerpages/" + linknames[i] + ".php";
		}
		function go5(){
			document.location = "../innerpages/<?php 
tc('9_26dd2e');
?>
.php";
		}
	</script>
<?php 
html_body();
?>
		<!-- span -->
		<span onclick="go1()">click here </span> 
		<span onmouseout="go2()">click here </span>
		<span onmousedown="go3()">click here </span>
		<span onmouseup="go4()">click here </span>
		<!-- p -->
		<p onclick="genericGo(5)">click here </p> 
		<p onmouseout="genericGo(6)">click here </p>
		<p onmousedown="genericGo(7)">click here </p>
		<p onmouseup="genericGo(8)">click here </p>
		<br/>
		<!-- div -->
		<div onclick="genericGo(9)">click here</div>
		<div onmouseout="genericGo(10)">click here</div>
Example #3
0
         $redirect = true;
         break;
     case 'clearCache':
         clear_mautic_cache();
         $nextTask = 'buildCache';
         $redirect = true;
         break;
     case 'applyMigrations':
         // Apply critical migrations
         apply_migrations();
         $nextTask = 'finish';
         break;
     case 'finish':
         clear_mautic_cache();
         if (!empty($standalone)) {
             html_body("<div class='well'><h3 class='text-center'>Success!</h3><h4 class='text-danger text-center'>Remove this script!</h4></div>");
         } else {
             $status['complete'] = true;
             $status['stepStatus'] = 'Success';
             $status['nextStep'] = 'Processing Database Updates';
             $status['nextStepStatus'] = 'In Progress';
             $status['updateState']['cacheComplete'] = true;
         }
         break;
     default:
         $status['error'] = true;
         $status['message'] = 'Invalid task';
         $status['stepStatus'] = 'Failed';
         break;
 }
 if ($standalone || !empty($redirect)) {
 function render()
 {
     if (PA::$profiler) {
         PA::$profiler->startTimer('PageRenderer_render');
     }
     // Get HTML of HEADer section
     $extra_head_html = $this->get_extra_head_html();
     html_header($this->page_title, $extra_head_html);
     if ($this->onload) {
         $this->html_body_attributes .= ' onload="' . $this->onload . '"';
     }
     html_body($this->html_body_attributes);
     $this->header->set('onload', $this->onload);
     $this->header->set('error', @$_GET['error']);
     $this->header->tier_one_tab = $this->main_tier;
     $this->header->tier_two_tab = $this->second_tier;
     $this->header->tier_three_tab = $this->third_tier;
     $this->page->set("fullwidth_content", $this->fullwidth_content);
     foreach ($this->module_arrays as $module_column => $array_modules) {
         $this->page->set('array_' . $module_column . '_modules', $array_modules);
     }
     $this->page->set('top_navigation_bar', $this->top_navigation_bar);
     $this->page->set('header', $this->header);
     $this->page->set('footer', $this->footer);
     $this->page->set('current_theme_path', PA::$theme_url);
     $res = $this->page->fetch();
     if (PA::$profiler) {
         PA::$profiler->stopTimer('PageRenderer_render');
     }
     return $res;
 }
include_once "api/Theme/Template.php";
require_once "api/Category/Category.php";
$parameter = '<script type="text/javascript" language="javascript" src="' . PA::$theme_url . '/base_javascript.js"></script></script>
<script type="text/javascript" language="javascript" src="' . PA::$theme_url . '/javascript/prototype.js"></script>
<script type="text/javascript" language="javascript" src="' . PA::$theme_url . '/javascript/scriptaculous.js"></script>';
html_header("Group Home", $parameter);
//print '<body style="background-color: #363636;">';
$setting_data = ModuleSetting::load_setting(PAGE_GROUPS_CATEGORY, $uid);
$leftModulesFromDB = $setting_data['left'];
$middleModulesFromDB = $setting_data['middle'];
$rightModulesFromDB = $setting_data['right'];
$page = new Template(CURRENT_THEME_FSPATH . "/groups.tpl");
$page->set('current_theme_path', PA::$theme_url);
//header of group page
$optional_parameters = "onload=\"{$onload}\"";
html_body($optional_parameters);
//header of group page
$header = new Template(CURRENT_THEME_FSPATH . "/header.tpl");
$header->set('current_theme_path', PA::$theme_url);
$header->set('current_theme_rel_path', PA::$theme_rel);
// find navigation link for header
$navigation = new Navigation();
$navigation_links = $navigation->get_links();
$header->set('navigation_links', $navigation_links);
$header->set('onload', $onload);
$header->tier_one_tab = $main_tier;
$header->tier_two_tab = $second_tier;
$header->tier_three_tab = $third_tier;
if (PA::$network_info) {
    $header->set_object('network_info', PA::$network_info);
}
 * @title          Production Environment File
 *
 * @author         Pierre-Henry Soria <*****@*****.**>
 * @link           http://software.hizup.com
 * @copyright      (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / Config / Environment
 */
namespace PH7;

defined('PH7') or exit('Restricted access');
/************************/
// SECURITY CHECK
/************************/
// If php.ini is inadequate, we fix it.
error_reporting(0);
//error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set('display_errors', 'Off');
ini_set('display_startup_errors', 'Off');
ini_set('track_errors', 'Off');
ini_set('html_errors', 'Off');
if (is_dir(PH7_PATH_ROOT . '_install/')) {
    $sMsg = '<p class="warning">Security Alert – <a href="' . Framework\Core\Kernel::SOFTWARE_WEBSITE . '">pH7CMS</a></p>
     <p class="error">Please remove "_install/" folder from your server before continuing.</p>
     <p>You can delete this folder using an FTP client (FileZilla or other).</p>
     <p>You can also delete this folder with an SSH connection if your host allows. Below is the UNIX command to do this is:<br />
     <code>sudo rm -rf /YOUR-PUBLIC-SERVER-PATH/YOUR-WEBSITE/_install/</code></p>
     <p>After doing this, please <a href="' . PH7_URL_ROOT . '">reload pH7CMS</a></p>';
    echo html_body('SECURITY ALERT : Please remove "_install" folder', $sMsg);
    exit;
}