Пример #1
0
			&copy; 2002&#8212;<?php 
echo date('Y');
?>
			<a href="mailto:og@phpwcms.org?subject=phpwcms">Oliver Georgi</a>.
			<a href="phpwcms.php?do=about" title="<?php 
echo $BL['be_aboutlink_title'];
?>
">Licensed under GPL. Extensions are copyright	of their respective owners.</a>
		</td>
  </tr>
</table>
<?php 
//Set Focus for chat insert filed
set_chat_focus($do, $p);
//If new message was sent -> automatic forwarding to message center
forward_to($forward_to_message_center, PHPWCMS_URL . "phpwcms.php?do=messages", 2500);
?>
<!-- phpwcms BODY_CLOSE -->
</body>
</html>
<?php 
// retrieve complete processing time
list($usec, $sec) = explode(' ', microtime());
header('X-phpwcms-Page-Processed-In: ' . number_format(1000 * ($usec + $sec - $phpwcms_rendering_start), 3) . ' ms');
$BE['HTML'] = ob_get_clean();
// Load ToolTip JS only when necessary
if (strpos($BE['HTML'], 'Tip(')) {
    $BE['BODY_CLOSE']['wz_tooltip.js'] = getJavaScriptSourceLink('include/inc_js/wz_tooltip.js', '');
}
//	parse for backend languages
backend_language_parser();
Пример #2
0
function check_login($type)
{
    global $url_string;
    switch ($type) {
        case 'anonymous':
            if (defined(DISABLED)) {
                redirect(DISABLED);
            }
            anonymous_session();
            break;
        case 'special':
            check_login_special();
            if (!acl("open_url", $url_string)) {
                redirect_to('noaccess.php');
            }
            break;
        case 'xmlrpc':
            check_login_xmlrpc();
            if (!acl("open_url", $url_string)) {
                forward_to('xmlrpc', 'noaccess');
            }
            break;
        case 'standard':
            check_login_standard();
            if (!acl("open_url", $url_string)) {
                redirect_to('noaccess.php');
            }
            break;
        default:
            redirect_to('noaccess.php');
            break;
    }
}
Пример #3
0
<?php

error_reporting(E_ALL);
require_once dirname(__FILE__, 3) . '/src/config.php';
global $url_string, $controller, $action;
try {
    // make sure url string is canonical, including explicit index.php dy default
    if (strpos($url_string, '/index.php') !== 0) {
        $url_string = '/index.php' . $url_string;
    }
    list($controller, $action, $type) = controller_action($url_string);
    // make sure url string is canonical, including explicit index controller and action
    $url_string = merge_params($url_string, ['controller' => $controller, 'action' => $action]);
} catch (Exception $e) {
    die(d_($e));
    redirect_to('no-access.html');
}
// d_([CONFIG::$ENV, $controller, $action, $type]);
// check_login($type);
unset($type);
// include CONFIG::get('ABSPATH') . 'app/c/init.php';
forward_to($controller, $action);
Пример #4
0
 function updateTime()
 {
     $team = $_POST['teamname'];
     $args = $_REQUEST;
     $this->menu = 'backup';
     $this->view = 'calendar/addedittime';
     $obj_assignee = new calendarConfig();
     if ($args[btnSubmit]) {
         $this->invalid_crumb = 0;
         if (getenv(".bycrumb") != $_REQUEST['crumb']) {
             $this->invalid_crumb = 1;
         }
         if (!$this->invalid_crumb) {
             $dbh = Connection::cal_rw();
             try {
                 $res = $obj_assignee->updateTimeConfig($args, $dbh);
             } catch (Exception $e) {
                 $messages = OpsContext::get('messages');
                 $messages->errors[] = $e->getMessage();
                 return forward_to('this', 'configTime');
             }
             if ($res) {
                 echo "<script language='javascript'>parent.window.location=parent.window.location</script>";
             } else {
                 return forward_to('this', 'configTime');
             }
         } else {
             error("INVALID Crumb");
             return forward_to('this', 'configTime');
         }
     } else {
         return forward_to('this', 'configTime');
     }
 }