setsession($session);
}
// ____________________________________________________ C O N F I G ______________________________________________
public function configform()
{
?>
Config file does not exist yet, or maybe you deleted it ? Anyway, it is time to set it :
';
if ($art->secure() == 1) {
echo 'cet article est privé ';
}
if ($art->secure() == 2) {
echo "cet article n'est pas publié ";
}
if ($app->session() >= $art->secure()) {
?>
= $art->titre() ?>
= $art->soustitre() ?>
= $art->html($app) ?>
';
}
public function edit(Art $art, App $app, $list)
{
if ($app->session() >= self::$edit) {
?>
id() . '">' . $item->titre() . '';
}
echo ' ';
?>
CSS
Color
HTML
template
= $title ?>
= $edit == 0 ? ' ' : '' ?>
= $edit == 1 ? '✏' : '' ?> = $art->titre() ?>
';
echo '';
foreach ($getlist as $item) {
if (in_array($tag, $item->tag('array'))) {
echo '' . $item->titre() . ' - ' . $item->intro();
if ($this->session() >= 2) {
echo ' - modifier ';
} else {
echo '';
}
}
}
echo ' ';
echo ' ';
}
public function lien($getlist, $lien)
{
echo '';
echo '
';
foreach ($getlist as $item) {
if (in_array($lien, $item->lien('array'))) {
echo '' . $item->titre() . ' - ' . $item->intro();
if ($this->session() >= 2) {
echo ' - modifier ';
} else {
echo '';
}
}
}
echo ' ';
echo '
';
}
public function home($getlist)
{
echo '';
foreach ($getlist as $item) {
echo '' . $item->titre() . ' - ' . $item->intro();
if ($this->session() >= 2) {
echo ' - modifier ';
} else {
echo '';
}
}
echo ' ';
}
public function dump($getlist)
{
echo '';
foreach ($getlist as $item) {
echo '';
var_dump($item);
echo ' ';
}
echo ' ';
}
public function home2($getlist)
{
echo '';
if ($this->session() >= 2) {
echo '
';
foreach ($getlist as $item) {
$count = 0;
foreach ($getlist as $lien) {
if (in_array($item->id(), $lien->lien('array'))) {
$count++;
}
}
echo '' . $item->titre() . ' - ' . $item->intro();
echo ' - ' . $count . ' ';
echo ' - modifier ';
}
echo ' ';
}
echo '
';
}
public function home2table(App $app, $getlist)
{
echo '';
echo '
';
echo 'W ';
$this->search();
if ($app->session() >= $app::EDITOR) {
echo 'Home ';
echo '';
echo 'titre résumé lien from lien to dernière modif date de création edit ';
foreach ($getlist as $item) {
$liento = 0;
$lienfrom = 0;
foreach ($getlist as $lien) {
if (in_array($item->id(), $lien->lien('array'))) {
$liento++;
}
}
foreach ($item->lien('array') as $count) {
$lienfrom++;
}
echo '';
echo '' . $item->titre() . ' ';
echo '' . $item->intro() . ' ';
echo '' . $lienfrom . ' ';
echo '' . $liento . ' ';
echo '' . $item->datemodif('hrdi') . ' ';
echo '' . $item->datecreation('hrdi') . ' ';
echo 'modifier ';
echo ' ';
}
echo '
';
}
echo ' ';
echo '
';
}
public function aside(App $app)
{
if ($app->session() >= $app::EDITOR) {
echo '';
foreach ($app->lister() as $item) {
echo '' . $item['titre'] . ' - [' . $item['titre'] . '](?id=' . $item['id'] . ')
';
}
echo ' ';
}
}
public function nav($app)
{
echo '';
//echo $this->session();
echo '';
echo 'home ';
if ($app->session() == $app::FREE) {
if (isset($_GET['id'])) {
echo '';
} else {
echo ' ';
}
?>
session() > $app::FREE) {
if (isset($_GET['id'])) {
echo '';
} else {
echo ' ';
}
?>
session() == $app::ADMIN && isset($_GET['id']) && $app->exist($_GET['id'])) {
if (isset($_GET['edit']) && $_GET['edit'] == 1) {
echo 'display ';
} else {
echo 'edit ';
}
}
if ($app->session() == $app::ADMIN && !isset($_GET['id'])) {
echo 'Media ';
echo 'Record ';
echo 'Admin ';
}
?>
session() >= 2) {
?>
Add Media
';
echo 'Media List ';
echo '';
echo '';
echo '';
?>
compress /2
downscale /2
upscale *2
';
echo '';
}
//______________________________________________________ R E C _________________________________________________
public function recordlist(App $app, $dir = "../ACRRecordings/")
{
echo '';
echo 'Media List ';
echo '';
echo '';
echo '';
?>
compress /2
downscale /2
upscale *2
';
echo ' ';
}
//______________________________________________________ A D M _________________________________________________
public function admincss(Config $config, array $list)
{
echo '';
echo 'Default CSS for articles ';
echo '';
echo ' ';
echo '';
foreach ($list as $item) {
if ($item == $config->cssread()) {
echo '' . $item . ' ';
} else {
echo '' . $item . ' ';
}
}
echo ' ';
echo ' ';
echo ' ';
$cssfile = '..' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'lecture' . DIRECTORY_SEPARATOR . $config->cssread();
if (is_file($cssfile)) {
$cssread = file_get_contents($cssfile);
echo '';
echo 'Edit current CSS ';
echo '';
echo '' . $cssread . ' ';
echo ' ';
echo ' ';
echo ' ';
}
?>
Add CSS file
Database
Status : ok
Database credentials
Actions
Create new table on your database
= 0) {
$session = intval($session);
$this->session = $session;
}
}
//______________________________________________________ G E T _________________________________________________
public function session()
{
return $this->session;
}
}
?>