コード例 #1
0
ファイル: index.php プロジェクト: jth131/jappix
            } else {
                // No cookie, is this a mobile device?
                require_once './server/mobile-detect.php';
                $mobile = new Mobile_Detect();
                // Really mobile?
                if ($mobile->isMobile() && !$mobile->isTablet()) {
                    $include_app = 'mobile';
                }
            }
        }
    }
}
// Special stuffs for Jappix apps?
if ($include_app == 'desktop' || $include_app == 'mobile') {
    // Redirects the user to HTTPS if forced
    if (!useHttps() && httpsForce()) {
        // Apply some special headers
        header('Status: 301 Moved Permanently', true, 301);
        header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
        // Kill the script!
        exit('HTTP/1.1 301 Moved Permanently');
    }
    // Is it a static node?
    if (isStatic()) {
        $include_app = 'static';
    }
    // Is it an upload node?
    if (isUpload()) {
        $include_app = 'upload';
    }
    // Save this visit (for the stats)
コード例 #2
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.");