--- /tmp/dsg/dolibarr/htdocs/collab/github_19.0.3_index.php +++ /tmp/dsg/dolibarr/htdocs/collab/client_index.php @@ -27 +26,0 @@ -// Load Dolibarr environment @@ -35,3 +34 @@ -if (!$user->admin) { - accessforbidden(); -} +if (!$user->admin) accessforbidden(); @@ -45 +42 @@ -$action = GETPOST('action', 'aZ09'); +$action = GETPOST('action', 'alpha'); @@ -47,27 +44,9 @@ -if (GETPOST('delete')) { - $action = 'delete'; -} -if (GETPOST('preview')) { - $action = 'preview'; -} -if (GETPOST('create')) { - $action = 'create'; -} -if (GETPOST('editmedia')) { - $action = 'editmedia'; -} -if (GETPOST('editcss')) { - $action = 'editcss'; -} -if (GETPOST('editmenu')) { - $action = 'editmenu'; -} -if (GETPOST('setashome')) { - $action = 'setashome'; -} -if (GETPOST('editmeta')) { - $action = 'editmeta'; -} -if (GETPOST('editcontent')) { - $action = 'editcontent'; -} +if (GETPOST('delete')) { $action = 'delete'; } +if (GETPOST('preview')) $action = 'preview'; +if (GETPOST('create')) { $action = 'create'; } +if (GETPOST('editmedia')) { $action = 'editmedia'; } +if (GETPOST('editcss')) { $action = 'editcss'; } +if (GETPOST('editmenu')) { $action = 'editmenu'; } +if (GETPOST('setashome')) { $action = 'setashome'; } +if (GETPOST('editmeta')) { $action = 'editmeta'; } +if (GETPOST('editcontent')) { $action = 'editcontent'; } @@ -75,3 +54 @@ -if (empty($action)) { - $action = 'preview'; -} +if (empty($action)) $action = 'preview'; @@ -86,6 +63,2 @@ -if (GETPOST('refreshsite')) { - $pageid = 0; // If we change the site, we reset the pageid. -} -if (GETPOST('refreshpage')) { - $action = 'preview'; -} +if (GETPOST('refreshsite')) $pageid = 0; // If we change the site, we reset the pageid. +if (GETPOST('refreshpage')) $action = 'preview'; @@ -95 +68,2 @@ -if ($action == 'add') { +if ($action == 'add') +{ @@ -103 +77,2 @@ - if (empty($objectpage->title)) { + if (empty($objectpage->title)) + { @@ -108 +83,2 @@ - if (!$error) { + if (!$error) + { @@ -110 +86,2 @@ - if ($res <= 0) { + if ($res <= 0) + { @@ -115 +92,2 @@ - if (!$error) { + if (!$error) + { @@ -119 +97,3 @@ - } else { + } + else + { @@ -128 +108,2 @@ -if ($action == 'delete') { +if ($action == 'delete') +{ @@ -135 +116,2 @@ - if ($res > 0) { + if ($res > 0) + { @@ -137 +119,2 @@ - if (!($res > 0)) { + if (!$res > 0) + { @@ -142 +125,2 @@ - if (!$error) { + if (!$error) + { @@ -148 +132,3 @@ - } else { + } + else + { @@ -151 +137,3 @@ - } else { + } + else + { @@ -170 +158,2 @@ -if ($action == 'create') { +if ($action == 'create') +{ @@ -177,3 +166 @@ -if ($action != 'preview' && $action != 'editcontent') { - $style = ' margin-bottom: 5px;'; -} +if ($action != 'preview' && $action != 'editcontent') $style = ' margin-bottom: 5px;';