b374k
m1n1 1.01
Apache
Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
uid=2234(oyaide) gid=100(users) groups=100(users)
server ip : 213.186.33.18 | your ip : 216.73.216.109
safemode OFF
 >  / home / oyaide / www / moycompany.com / piwigo2 / themes / elegant / admin /
Filename/home/oyaide/www/moycompany.com/piwigo2/themes/elegant/admin/admin.inc.php
Size1002
Permissionrwxr-xr-x
Owneroyaide : users
Create time11-Mar-2016 09:45
Last modified08-Mar-2016 15:46
Last accessed08-Mar-2016 15:46
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

// Need upgrade?
global $conf;
include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php');

load_language('theme.lang', PHPWG_THEMES_PATH.'elegant/');

$config_send= array();

if(isset($_POST['submit_elegant']))
{
$config_send['p_main_menu']=(isset($_POST['p_main_menu']) and !empty($_POST['p_main_menu'])) ? $_POST['p_main_menu'] : 'on';
$config_send['p_pict_descr']=(isset($_POST['p_pict_descr']) and !empty($_POST['p_pict_descr'])) ? $_POST['p_pict_descr'] : 'on';
$config_send['p_pict_comment']=(isset($_POST['p_pict_comment']) and !empty($_POST['p_pict_comment'])) ? $_POST['p_pict_comment'] : 'off';

conf_update_param('elegant', $config_send, true);

array_push($page['infos'], l10n('Information data registered in database'));
}

$template->set_filenames(array(
'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));

$template->assign('options', safe_unserialize($conf['elegant']));

$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');

?>