feature 2108 added: user upload removed from core. It will come back as a
"new generation" user upload in the Community plugin. git-svn-id: http://piwigo.org/svn/trunk@8651 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
f03dcee21a
commit
fe569ab1bf
109 changed files with 99 additions and 1829 deletions
|
|
@ -60,11 +60,6 @@ $history_checkboxes = array(
|
|||
'history_guest'
|
||||
);
|
||||
|
||||
$upload_checkboxes = array(
|
||||
'upload_link_everytime',
|
||||
'email_admin_on_picture_uploaded',
|
||||
);
|
||||
|
||||
$comments_checkboxes = array(
|
||||
'comments_forall',
|
||||
'comments_validation',
|
||||
|
|
@ -144,14 +139,6 @@ if (isset($_POST['submit']))
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'upload' :
|
||||
{
|
||||
foreach( $upload_checkboxes as $checkbox)
|
||||
{
|
||||
$_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'default' :
|
||||
{
|
||||
// Never go here
|
||||
|
|
@ -217,10 +204,6 @@ $tabsheet->add('main', l10n('Main'), $conf_link.'main');
|
|||
$tabsheet->add('display', l10n('Display'), $conf_link.'display');
|
||||
$tabsheet->add('history', l10n('History'), $conf_link.'history');
|
||||
$tabsheet->add('comments', l10n('Comments'), $conf_link.'comments');
|
||||
if ($conf['enable_synchronization'])
|
||||
{
|
||||
$tabsheet->add('upload', l10n('Upload'), $conf_link.'upload');
|
||||
}
|
||||
$tabsheet->add('default', l10n('Guest Settings'), $conf_link.'default');
|
||||
// TabSheet selection
|
||||
$tabsheet->select($page['section']);
|
||||
|
|
@ -300,28 +283,6 @@ switch ($page['section'])
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'upload' :
|
||||
{
|
||||
$template->assign(
|
||||
'upload',
|
||||
array(
|
||||
'upload_user_access_options'=> get_user_access_level_html_options(ACCESS_GUEST),
|
||||
'upload_user_access_options_selected' => array($conf['upload_user_access'])
|
||||
)
|
||||
);
|
||||
//Necessary for merge_block_vars
|
||||
foreach ($upload_checkboxes as $checkbox)
|
||||
{
|
||||
$template->append(
|
||||
'upload',
|
||||
array(
|
||||
$checkbox => $conf[$checkbox]
|
||||
),
|
||||
true
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'default' :
|
||||
{
|
||||
$edit_user = build_user($conf['guest_id'], false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue