<?php /* * loader.php * หน้าเพจสำหรับให้ GLoader เรียกมา * * @author Goragod Wiriya <*****@*****.**> * @link http://www.kotchasan.com/ * @copyright 2016 Goragod.com * @license http://www.kotchasan.com/license/ */ // load Kotchasan include 'load.php'; // Initial Kotchasan Framework $app = Kotchasan::createWebApplication(Gcms\Config::create()); $app->defaultController = 'Index\\Loader\\Controller'; $app->run();
<?php /* * BingSiteAuth.php * * @author Goragod Wiriya <*****@*****.**> * @link http://www.kotchasan.com/ * @copyright 2016 Goragod.com * @license http://www.kotchasan.com/license/ */ // load Kotchasan include 'load.php'; // config $cfg = Gcms\Config::create(); if (empty($cfg->msvalidate)) { new \Kotchasan\Http\NotFound(); } else { $response = new Kotchasan\Http\Response(); $content = '<' . '?xml version="1.0"?' . '>'; $content .= "\n<users>"; $content .= "\n\t<user>" . $cfg->msvalidate . "</user>"; $content .= "\n</users>"; $response->withContent($content)->withHeader('Content-Type', 'application/xml; charset=UTF-8')->send(); }