<div class="Swifost-install--load"> <div class="Swifost-install--load---over"> <svg width="118px" height="114px" viewBox="0 0 128 124" version="1.1"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"> <g sketch:type="MSLayerGroup" transform="translate(64.094438, 62.027151) rotate(90.000000) translate(-64.094438, -62.027151) translate(2.594438, -1.472849)"> <path d="M56.4728486,0.594437594 L82.4728486,0.594437594 C104.552849,0.594437594 122.472849,18.5144376 122.472849,40.5944376 L122.472849,67.5944376 L46.4728486,67.5944376 L46.4728486,10.5944376 C46.4728486,5.07443759 50.9528486,0.594437594 56.4728486,0.594437594" fill="#FFF" sketch:type="MSShapeGroup"></path> <path d="M84.4728486,33.0944376 C88.8888486,33.0944376 92.4728486,36.6784376 92.4728486,41.0944376 L92.4728486,93.0944376 L76.4728486,93.0944376 L76.4728486,41.0944376 C76.4728486,36.6784376 80.0568486,33.0944376 84.4728486,33.0944376" fill="#E77249" sketch:type="MSShapeGroup"></path> <path d="M0.472848643,66.5944376 L76.4728486,66.5944376 L76.4728486,86.5944376 C76.4728486,108.674438 58.5528486,126.594438 36.4728486,126.594438 L10.4728486,126.594438 C4.95284864,126.594438 0.472848643,122.114438 0.472848643,116.594438 L0.472848643,66.5944376" id="Shape" fill="#FFF" sketch:type="MSShapeGroup"></path> <path d="M30.4728486,64.3500366 L46.4728486,64.3500366 L46.4728486,91.5944376 C46.4728486,96.0104376 42.8888486,99.5944376 38.4728486,99.5944376 C34.0568486,99.5944376 30.4728486,96.0104376 30.4728486,91.5944376 L30.4728486,66.5944376" fill="#E77249" sketch:type="MSShapeGroup"></path> </g> </g> </svg> <div class="Swifost-install--load---box"> <h3 class="Swifost-install--load---description"><?php Swifost::go(Swifost::DESCRIPTION); ?> </h3> <a class="Swifost-install--load---url" href="http://swifost.com" target="_blank" title="Visit Swifost">http://swifost.com</a> </div> </div> </div> <div data-box="1" class="Swifost-install--alert---body"> <div class="Swifost-install--form---title"> <h1>Swifost Installation</h1> <p>State permits required</p> </div> <?php if (is_writable(__FILE__)) { echo '
<?php /** * Markdown plugin - Markdown Syntax is easy! * * @package Swifost * @subpackage Plugins * @author Jose Pino, @jofpin | jofpin@gmail.com * @copyright 2015 Swifost / Content Management System * @version 1.0.0 * */ include PLUGINS_PATH . "/markdown_syntax/parsedown/Parsedown.php"; include PLUGINS_PATH . "/markdown_syntax/base.php"; // Filtration and markdown relationship with content (function markdown) Swifost::push()->createFilter("content", "markdown");
<?php /** * I establish the route of all base directories. * * Define: libraries, templates, plugins and content. * * @author Jose Pino, @jofpin | jofpin@gmail.com * @copyright 2015 Swifost / Content Management System */ // libraries define("LIBRARIES_PATH", __DIR__ . "/libraries"); // templates define("TEMPLATES_PATH", __DIR__ . "/templates"); // plugins define("PLUGINS_PATH", __DIR__ . "/plugins"); // content define("CONTENT_PATH", __DIR__ . "/content"); // Load main library Swifost require LIBRARIES_PATH . "/Swifost/Swifost.php"; // First check for installer then go Swifost::push()->ready("config.php", "install.php", "index.php", "install", "ready");
/** * Runnig aplication Swifost (config, install sucess) * * @example Swifost::push()->ready("config.php", install.php", "index.php", "install", "ready"); * * @access public * @param string $fileConfig, $fileInstall, $redirect, $param and $result * */ public function ready($fileConfig, $fileInstall, $redirect, $param, $result) { if (file_exists($fileInstall)) { if (isset($_GET[$param]) && $_GET[$param] == $result) { // Try to delete install file if not DELETE MANUALLY !!! @unlink($fileInstall); // Redirect to main page Swifost::redirect($redirect); } else { include $fileInstall; } } else { // Run Swifost Application self::push()->run($fileConfig); } }