示例#1
0
<?php

/**
 * Подключение функций и проверка авторизации
 */
include "functions/functions.php";
if (!is_authorised()) {
    redirect("login.php");
    exit;
}
/**
 * Секция объявления переменных для данной страницы
 * title - заголовок страницы
 */
$title = "Mail Box";
$isMainActive = $isDocumentsActive = $isAbonentsActive = $isIncomeActive = $isOutcomeActive = $isNewDocumentActive = '';
$isMainActive = ' class="active"';
/**
 * Подключение заголовочного файла
 */
include_once "header.php";
/**
 * Вывод контента текущей страницы
 */
?>

            <img src="images/mailbox.jpg" width="300px" style="float:right">
            <h2>Главная</h2>
            <p>
                Выберите подходящее действие в меню слева.
            </p>
示例#2
0
<?php

/**
 * Подключение функций и проверка авторизации
 */
$error_message = '';
include "functions/functions.php";
if (is_authorised()) {
    redirect("index.php");
    exit;
}
?>
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8">
    <title>Авторизация</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="bootstrap/css/login-style.css" rel="stylesheet">

</head>

<body>

<div class="container">
示例#3
0
     //   include_once 'build-package.php';
     //   exit;
     // break;
 // case 'build-package':
 //   global $build_id;
 //   $edition_num = array_shift($request_params);
 //   $build_id = $edition_num;
 //   include_once 'build-package.php';
 //   exit;
 // break;
 case 'edition':
     $edition_num = array_shift($request_params);
     if (empty($edition_num)) {
         reply_wth_message('No edition number specified', HttpStatusCode::BAD_REQUEST);
     }
     if (!is_authorised($edition_num, $pugpigCredsSecret)) {
         reply_unauthorised();
     }
     $subpath = implode("/", $request_params);
     $file = end($request_params);
     $matches = null;
     if ($file === "content.xml") {
         reply_content_xml($edition_num);
     } else {
         if ($file === "package.xml") {
             reply_package_xml($edition_num);
         } else {
             if (preg_match('/page\\-(\\d+).manifest/', $file, $matches) > 0) {
                 reply_page_manifest($edition_num, intval($matches[1]), $subpath);
             } else {
                 if (preg_match('/page\\-(\\d+).html/', $file, $matches) > 0) {