Exemplo n.º 1
0
 function parse_uri_string(){
     if ($this->is_cli){
         $uri = '/'.implode('/', array_splice($_SERVER['argv'], 1));
     } elseif (($req_uri = str_replace(site_data('relative_path'), '', $_SERVER['REQUEST_URI'])) != '/') {
         $uri = $req_uri;
     } else {
         $uri = '/'.$this->_config['default_controller'];
     }
     $this->_uri = $uri;
     $routes = require_once(APP_PATH.'/routes.php');
     $_SERVER['QUERY_STRING'] = preg_replace(array_keys($routes), $routes, $this->_uri).'&'.$_SERVER['QUERY_STRING'];
     parse_str($_SERVER['QUERY_STRING'], $this->_var);
     return $this;
 }
Exemplo n.º 2
0
<?php

include "../../common/lib.php";
notLogin("../../login.php");
$login_name = login_name();
$row_site = site_data();
//各々のページを選んで飛んできていなかったら、一覧へ戻す
if (!isset($_GET["page_id"])) {
    url_get("../index.php");
} else {
    $page_id = $_GET["page_id"];
}
//ログインしているユーザID
$login = $_SESSION["login"];
//メッセージを表示
$m = "";
if ($_SESSION["message"]) {
    $m .= $_SESSION["message"];
    $_SESSION["message"] = NULL;
    $page_id = $_GET["page_id"];
    $m .= "<p><a href='index.php?page_id={$page_id}'>OK</a></p>";
}
//アップロードメッセージ表示
$up_m = "";
if (isset($_SESSION["up_img"])) {
    $up_m .= $_SESSION["up_img"];
    $_SESSION["up_img"] = NULL;
    $up_m .= "<p><a href='index.php?page_id={$page_id}'>OK</a></p>";
}
//ページのデータを取得
$retu = "*";
Exemplo n.º 3
0
<![endif]-->

<?php 
if (isset($_GET['id'])) {
    switch ($page) {
        case 'home':
            echo '<link href="./css/cover.css" rel="stylesheet">';
            break;
        default:
            echo '<link href="./css/logo-nav.css" rel="stylesheet">';
    }
} else {
    echo '<link href="./css/cover.css" rel="stylesheet">';
}
echo '<link href="./css/footer.css" rel="stylesheet">';
?>

<style>
body{
background: url(../img/<?php 
site_data($db, 'background');
?>
) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>

Exemplo n.º 4
0
    <title>BastArtistic page administration - BACMS</title>

    <!-- Bootstrap core CSS -->
    <link href="../css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../css/dashboard.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="<?php 
site_data($db, 'site_path');
?>
tinymce/tinymce.min.js"></script>
    <script>
tinymce.init({
    selector: "textarea",
    theme: "modern",
    plugins: [
         "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
         "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
         "save table contextmenu directionality emoticons template paste textcolor responsivefilemanager"
   ],
   content_css: "css/content.css",
   toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons | responsivefilemanager ", 
   style_formats: [
        {title: 'Bold text', inline: 'b'},
Exemplo n.º 5
0
?>
">
                    <img src="./img/<?php 
site_data($db, 'logo');
?>
" name="logo" width="100" height="100">
                </a>
            </div>
            <div class="navbar-brand-text"><a href="<?php 
site_data($db, 'site_path');
?>
"><?php 
site_data($db, 'site_name');
?>
</a> <br> <?php 
site_data($db, 'motto');
?>
</div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <?php 
include "./include/nav_menu.php";
?>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>
Exemplo n.º 6
0
function static_content_url($static_file){
    return site_data('domain').'/static'.$static_file;
}
Exemplo n.º 7
0
site_data($db, 'meta_author');
?>
">
    <label for="meta_keywords">Keywords</label>
    <input type="text" class="form-control" id="meta_keywords" name="meta_keywords" value="<?php 
site_data($db, 'meta_keywords');
?>
">
    <label for="background">Background</label>
    <input type="text" class="form-control" id="background" name="background" value="<?php 
site_data($db, 'background');
?>
">
    <label for="logo">Logo</label>
    <input type="text" class="form-control" id="logo" name="logo" value="<?php 
site_data($db, 'logo');
?>
">
    <br>
    <button type="submit" class="btn btn-default">Submit</button>
    <?php 
if (isset($_GET['error'])) {
    $error = $_GET['error'];
    if ($error == '0') {
        printf('<a href="./?section=site_settings"><button type="button" class="btn btn-success">OK</button></a>');
    }
    if ($error != '0') {
        printf('<a href="./?section=site_settings"><button type="button" class="btn btn-warning">ERROR: %s</button></a>', $error);
    }
}
?>