00001 <?php
00002 header(
"content-type : text/xml; charset=utf-8");
00003 echo '<?xml version=
"1.0" encoding=
"utf-8" ?>';
00004 ?>
00005 <!DOCTYPE
html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
00006
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
00007 <
html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"fr-ch" lang=
"fr-ch">
00008 <head>
00009 <title>a(dmin)Blog</title>
00010 <style type="text/css" title="admin">
00011 <!--
00012 html, body, #header, #page, #menu{margin:0;padding:0;}
00013 body{background:#000;color:#fff;font:90% Verdana, Bitstream Vera Sans, FreeSans, Sans, sans-serif;}
00014
#header{position:absolute;top:0;right:1em;font-size:1em;color:#ff0;font-family:serif;font-style:italic;}
00015
#header p{display:none;}
00016
#page{position:absolute;top:4em;left:0;right:0;border-top:0.1em solid #ff0;border-bottom:0.2em solid #ff0;background:#fff;color:#000;padding:0.3em 1em;}
00017
#menu{position:absolute;top:2.6em;left:1em;right:1em;font-weight:bold;font-size:0.9em;}
00018
#menu li{list-style:none;float:left;border-left:0.3em solid #000;border-bottom:0 none;}
00019
#menu a{display:block;text-decoration:none;color:#333;background:#eee;padding:0.2em 0.3em;border:0.1em solid #ccc;border-bottom:0 none;}
00020
#menu a:hover{background:#fff;color:#000;border-color:#ff0;}
00021
table{width:100%;}
00022 form{text-align:center;}
00023 fieldset{width:40em;margin:0
auto;text-align:left;padding:0.2 0.3em;}
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 table{width:100%;background:#eee;padding:0;margin:0;border-collapse: collapse;}
00035 td ul{margin:0;padding:0;}
00036 td li{display:
inline;}
00037 thead{background:#333;color:#fff;}
00038 thead th{padding:0.3em 0.2em;border-right:1px solid #666;}
00039 tbody td{border-bottom:1px solid #fff;border-right:1px solid #fff;padding:0.2em 0.2em;}
00040 tbody tr:hover{background:#ffc;}
00041 label{display:block;}
00042 input, .label, textarea, select{display:block;margin-left:10em;width:25em;font-size:1em;font-family:
"Bitstream Vera Sans",Sans, sans-serif;}
00043 input:focus, textarea:focus, select:focus{background:#ffc;}
00044 input.submit{width:10em;margin-left:22em;margin-top:1em;background:#999;}
00045 -->
00046 </style>
00047
00048 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8"/>
00049 </head>
00050 <body>
00051 <div
id=
"header">
00052 <h1>a(dmin)Blog</h1>
00053 <p><em>it’s just admin</em></p>
00054 </div>
00055 <div
id="page">
00056 <?php
00057 $ROOTURL = "http:
00058 $ROOTPATH = "
atomServer";
00059 $SALT = 'paprika';
00060
00061 include_once($ROOTPATH."/inc/fct.inc.php");
00062 include_once($ROOTPATH."/atomServer.class.php");
00063
00064 $atom = new AtomServer($ROOTPATH,$ROOTURL);
00065
00066 if(isset($_GET["page"]) && $_GET["page"] == 'user')
00067 {
00068 include_once($ROOTPATH.
"/inc/user.admin.php");
00069 }
00070 elseif(isset($_GET[
"page"]) && $_GET[
"page"] == 'feed')
00071 {
00072 include_once($ROOTPATH.
"/inc/feed.admin.php");
00073 }
00074 elseif(isset($_GET[
"page"]) && isset($_GET[
"user"]) && $_GET[
"page"] == 'entry' && !empty($_GET[
"user"]))
00075 {
00076 include_once($ROOTPATH.
"/inc/entry.admin.php");
00077 }
00078
else
00079 {
00080 ?>
00081 <h3>Welcome into the admin system.</h3>
00082 <p><strong>it's a no restriction area, please be gentle!</strong></p>
00083 <p>AtomAPI is better because of some php limitations (sorry).</p>
00084 <?php
00085 }
00086 ?>
00087 </div>
00088 <ul
id=
"menu">
00089 <li><a href=
"/">«</a></li>
00090 <li><a href=
"/admin.php"><</a></li>
00091 <li><a href=
"/admin.php?page=user">
user</a></li>
00092 <li><a href=
"/admin.php?page=feed">
feed</a></li>
00093 </ul>
00094 </body>
00095 </
html>