$_['aff']));
echo showNotification($lang['admin_page_display'], 'valide', 'icon-emo-happy');
break;
case 'up':
ksort($ordre_pages);
$previousValue = getValueArray($ordre_pages, $_['sort'], -1);
$previousValueArray = lecture_xml("../data/pages/".$previousValue);
$previousOrder = $previousValueArray['page']['ordre']['#text'];
ecriture_xml('../data/pages/'.$previousValue, array('page/ordre'=>$_['sort']));
ecriture_xml('../data/pages/'.$ordre_pages[$_['sort']], array('page/ordre'=>$previousOrder));
echo showNotification($lang['admin_page_order'], 'valide', 'icon-emo-happy');
break;
case 'down':
ksort($ordre_pages);
$previousValue = getValueArray($ordre_pages, $_['sort'], +1);
$previousValueArray = lecture_xml("../data/pages/".$previousValue);
$previousOrder = $previousValueArray['page']['ordre']['#text'];
ecriture_xml('../data/pages/'.$previousValue, array('page/ordre'=>$_['sort']));
ecriture_xml('../data/pages/'.$ordre_pages[$_['sort']], array('page/ordre'=>$previousOrder));
echo showNotification($lang['admin_page_order'], 'valide', 'icon-emo-happy');
break;
case 'new':
include("../modules/".$_['type']."/edition.php");
break;
case 'edit':
$page = lecture_xml("../data/pages/".$lecture_pages[$_['id']].".xml");
include("../modules/".$page['page']['type']['#text']."/edition.php");
break;
case 'delete':
if($_['id']==HOME_PAGE) echo showNotification($lang['admin_page_cantDeleteHome'], 'error', 'icon-emo-unhappy');
else
{
if (isset($_['del']))
{
$tmpTrashbin = explode('#', $lecture_pages[$_['id']]);
rename ("../data/pages/".$lecture_pages[$_['id']].".xml", "../data/corbeille/".date("d-m-Y G\hi\ms\s")."_@@@".$tmpTrashbin[1].".xml");
echo showNotification($lang['admin_page_confimedDelete'], 'valide', 'icon-emo-happy');
}
else
{
?>
|
';
elseif ($pages==end($list)) echo '';
else
{
echo '';
echo '';
} ?>
';
else if ($page['page']['etat']['#text']==1) echo '| ';
else if ($page['page']['etat']['#text']==2) echo '| ';
else echo '| ';
?>
|
$_['aff']));
echo showNotification($lang['admin_plugins_display'], 'valide', 'icon-emo-happy');
break;
case 'delete':
if (isset($_['del']))
{
removeFolder("../plugins/".$_['folder']);
echo showNotification($lang['admin_plugins_deleted'], 'valide', 'icon-emo-happy');
}
else
{
?>
|
| ';
else echo '';
?>
|
|
|
".$lang['admin_plugins_empty']." | ";
?>
$_['folder']));
echo showNotification($lang['admin_themes_changed'], 'valide', 'icon-emo-happy');
include('../lib/config.lib.php');
break;
case 'edit':
include("../themes/".$_['dossier']."/edition.php");
break;
case 'delete':
if (isset($_['del']))
{
removeFolder("../themes/".$_['folder']);
echo showNotification($lang['admin_themes_deleted'], 'valide', 'icon-emo-happy');
}
else
{
?>
$_['nom_site'], 'configuration/description_site'=>$_['description_site'], 'configuration/footer'=>$_['footer_site']));
//echo showNotification($lang['updateSuccessfull'], 'valide', 'icon-emo-happy');
header("Location: ".ADMIN_REQUEST_URL."&updated");
die();
}
?>
$_['firstName'],
'configuration/users/'.$_SESSION['_LOGIN'].'/lastname'=>$_['lastName'],
'configuration/users/'.$_SESSION['_LOGIN'].'/email'=>$_['email'],
'configuration/users/'.$_SESSION['_LOGIN'].'/language'=>$_['language']
));
if($_['password']!="password" && $_['password']!="") ecriture_xml('../data/config.xml', array('configuration/users/'.$_SESSION['_LOGIN'].'/password'=>password_hash($_['password'],PASSWORD_DEFAULT)));
if($_FILES['photo_file']['name']!="")
{
$nameTmp = generateEasyPassword(6).'_'.$_FILES['photo_file']['name'];
move_uploaded_file($_FILES['photo_file']['tmp_name'], '../data/images/'.basename($nameTmp));
ecriture_xml('../data/config.xml', array('configuration/users/'.$_SESSION['_LOGIN'].'/avatar'=>'data/images/'.$nameTmp));
}
header("Location: ".ADMIN_REQUEST_URL."&updated");
}
?>
$tmpMaintenance,
'configuration/maintenanceMessage#CDATA'=>$_['message']
));
header("Location: ".ADMIN_REQUEST_URL."&updated");
}
?>
$tmpDebug,
'configuration/urlrewriting'=>$tmpRew,
'configuration/urlrewriting_key'=>$_['urlrew'],
'configuration/lang'=>$_['language']
));
header("Location: ".ADMIN_REQUEST_URL."&updated");
}
?>
0,
'page/id'=>LAST_KEY,
'page/ordre'=>LAST_ORDER
));
header("Location: ".ADMIN_REQUEST_URL."&updated");
break;
case 'delete':
if (isset($_['del']))
{
unlink(DATA_TRASH.$_['file']);
echo showNotification($lang['admin_settings_trashDeleteOK'], 'valide', 'icon-emo-happy');
}
else
{
?>