Ejemplo n.º 1
0
					<a class="home-images manager" href="./?m=manager<?php 
        echo $keep_get;
        ?>
"><?php 
        _e("Manager");
        ?>
</a>
					<?php 
    }
    ?>
					<a class="home-images project" href="https://project.jappix.com/"><?php 
    _e("Project");
    ?>
</a>
					<?php 
    if (sslCheck() && !httpsForce()) {
        echo sslLink();
    }
    ?>
				</div>
			</div>
		</div>
		
		<div class="home-images corporation">
			<div class="corp_network">
				<h2 class="nomargin">Jappix.com</h2>
				<div class="tabulate">
					<a href="https://www.jappix.com/">
						<span class="name">Jappix</span>
						<span class="desc"><?php 
    _e("Social channel, chat and more.");
Ejemplo n.º 2
0
function httpsForce()
{
    if (HTTPS_FORCE == 'on' && sslCheck()) {
        return true;
    }
    return false;
}
Ejemplo n.º 3
0
function httpsForce()
{
    return HTTPS_FORCE == 'on' && sslCheck();
}
Ejemplo n.º 4
0
/**
 * global settings
 **/
function show_step_globals($step)
{
    global $lang, $parser, $installer_uri, $config, $dirh;
    global $timezone_table;
    write2log('> [show_step_globals()]');
    // get timezones
    include dirname(__FILE__) . '/../framework/CAT/Helper/DateTime.php';
    $timezone_table = CAT_Helper_DateTime::getInstance()->getTimezones();
    $lang_dir = dirname(__FILE__) . "/../languages/";
    $lang_files = $dirh->setRecursion(false)->setSkipFiles(array('index'))->getPHPFiles($lang_dir, $lang_dir);
    $dirh->setRecursion(true);
    // reset
    // get language name
    foreach ($lang_files as $temp_file) {
        $str = file($lang_dir . $temp_file);
        $language_name = "";
        foreach ($str as $line) {
            if (strpos($line, "language_name") != false) {
                eval($line);
                break;
            }
        }
        $lang_short = pathinfo($temp_file, PATHINFO_FILENAME);
        $langs[$lang_short] = $language_name;
    }
    ksort($langs);
    if (!isset($config['default_language'])) {
        $config['default_language'] = $lang->getLang();
    }
    // generate a GUID prefix
    if (!isset($config['guid_prefix'])) {
        // VERY simple algorithm, no need for something more creative
        $config['guid_prefix'] = implode('', array_rand(array_flip(array_merge(range('a', 'z'), range('A', 'Z'), range('0', '9'))), 4));
    }
    // operating system
    // --> FrankH: Detect OS
    $ctrue = " checked='checked'";
    $cfalse = "";
    if (substr(php_uname('s'), 0, 7) == "Windows") {
        $osw = $ctrue;
        $osl = $cfalse;
        $startstyle = "none";
    } else {
        $osw = $cfalse;
        $osl = $ctrue;
        $startstyle = "block";
    }
    // <-- FrankH: Detect OS
    $output = $parser->get('globals.tpl', array('installer_cat_url' => dirname($installer_uri) . '/', 'installer_guid_prefix' => $config['installer_guid_prefix'], 'timezones' => $timezone_table, 'installer_default_timezone_string' => $config['default_timezone_string'], 'languages' => $langs, 'installer_default_language' => $config['default_language'], 'editors' => findWYSIWYG(), 'installer_default_wysiwyg' => $config['default_wysiwyg'], 'installer_ssl' => isset($config['ssl']) ? $config['ssl'] : sslCheck(), 'installer_guid_prefix' => $config['guid_prefix'], 'is_linux' => $osl, 'is_windows' => $osw, 'errors' => $step['errors'], 'ssl_available' => isset($config['ssl_available']) ? $config['ssl_available'] : sslCheck()));
    write2log('< [show_step_globals()]');
    return array(true, $output);
}