Пример #1
0
 function wiki_eval_page($url, $wiki, $error)
 {
     $error = false;
     if (($src = wiki_get_page_src($url, $wiki)) == false) {
         $error = true;
         return stencil_core_page(content_error_page('404', array('url' => $url . wiki_get_indexfile($wiki))));
     }
     return eval_code($src);
 }
Пример #2
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * 403 page error generator
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
print content_error_page(403);
Пример #3
0
 function content_static_page($fname)
 {
     $fname = config_get('site-root') . $fname . '/' . config_get('data-file');
     if (($src = get_file($fname)) == false) {
         $src = content_error_page('404', array('url' => $fname));
     }
     return stencil_core_page($src);
 }