|
@@ -1,12 +1,14 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
+// Start session for language preference
|
|
|
|
|
+if (session_status() === PHP_SESSION_NONE) {
|
|
|
|
|
+ session_start();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
require_once '../includes/config.php';
|
|
require_once '../includes/config.php';
|
|
|
require_once '../includes/database.php';
|
|
require_once '../includes/database.php';
|
|
|
require_once '../includes/auth.php';
|
|
require_once '../includes/auth.php';
|
|
|
require_once '../includes/translation.php';
|
|
require_once '../includes/translation.php';
|
|
|
|
|
|
|
|
-// Start session for language preference
|
|
|
|
|
-session_start();
|
|
|
|
|
-
|
|
|
|
|
// Initialize translation system
|
|
// Initialize translation system
|
|
|
try {
|
|
try {
|
|
|
$translation = Translation::getInstance();
|
|
$translation = Translation::getInstance();
|
|
@@ -217,7 +219,7 @@ switch ($action) {
|
|
|
<h1><a href="index.php"><?php echo SITE_TITLE; ?></a></h1>
|
|
<h1><a href="index.php"><?php echo SITE_TITLE; ?></a></h1>
|
|
|
<nav class="admin-nav">
|
|
<nav class="admin-nav">
|
|
|
<a href="index.php"><?php echo t('nav_dashboard'); ?></a>
|
|
<a href="index.php"><?php echo t('nav_dashboard'); ?></a>
|
|
|
- <a href="edit.php"><?php echo t('manage_publications'); ?></a>
|
|
|
|
|
|
|
+ <a href="edit.php"><?php echo t('create_publication'); ?></a>
|
|
|
<a href="publications.php"><?php echo t('manage_publications'); ?></a>
|
|
<a href="publications.php"><?php echo t('manage_publications'); ?></a>
|
|
|
<a href="categories.php"><?php echo t('manage_categories'); ?></a>
|
|
<a href="categories.php"><?php echo t('manage_categories'); ?></a>
|
|
|
<a href="users.php" class="active"><?php echo t('manage_users'); ?></a>
|
|
<a href="users.php" class="active"><?php echo t('manage_users'); ?></a>
|