/** * 删除文件 * */ function file_delete($file) { global $_W; if (empty($file)) { return FALSE; } //兼容其它平台上传 if ($func = platform('file_delete')) { return call_user_func($func, $file); } if (file_exists(IA_ROOT . '/' . $_W['config']['upload']['attachdir'] . '/' . $file)) { unlink(IA_ROOT . '/' . $_W['config']['upload']['attachdir'] . '/' . $file); } return TRUE; }
require_once __DIR__ . '/sandbox/system/init.php'; /* * Determine and execute a generic method of implementation */ switch (PLATFORM_ENGINE) { case 'object': // using object-orientation <strict adherence> require_once PLATFORM_SANDBOX_SYSTEM_CLASSES_PATH . DS . 'platform.php'; $platform = new Platform(); break; case 'objects': // using object-orientation <stdlib re-use> require_once PLATFORM_SANDBOX_SYSTEM_CLASSES_PATH . DS . 'standards/platform.php'; $platform = new Platform(); break; case 'stdlib': // using procedural <optimal use> // using procedural <optimal use> default: require_once PLATFORM_SANDBOX_SYSTEM_FUNCTIONS_PATH . DS . 'platform.php'; platform(); break; } /** * Detect browser type */ if (is_chrome() || is_chromium() || is_safari()) { // do nothing } else { //redirect_to('http://www.google.com'); }
/** * default class contructor * @access public * @param void * @return void */ public function __construct() { platform(); }
path("css/slideshow.css"); ?> /> <title>Neothyne - Arena. Reborn.</title> </head> <body> <?php include 'bits/header.php'; ?> <div id="main"> <h1>Arena. Reborn.</h1> <section style="text-align: center; margin: 0 2%;"> <div class="download-button"> <?php $os = platform(); if ($os) { echo '<span>Download</span>'; } else { echo '<span class="disabled">Download</span>'; } ?> <span> <?php echo $os ? "Launch Edition for <span class=\"{$os['0']}\">{$os}</span>" : "Unsupported system"; ?> </span> </div> <br/> <a class="other-systems" href="other-systems.php">Alternate versions</a> </section>