Beispiel #1
0
         } else {
             if (isset($_POST['secure'])) {
                 if ($site['acl_read'] == 0) {
                     if (!($acl_read = $GO_SECURITY->get_new_acl('cms read: ' . $domain))) {
                         die($strAclError);
                     }
                 } else {
                     $acl_read = $site['acl_read'];
                 }
             } else {
                 $acl_read = 0;
                 if ($site['acl_read'] > 0) {
                     $GO_SECURITY->delete_acl($site['acl_read']);
                 }
             }
             if (!$cms->update_site($site_id, $name, $domain, smart_addslashes($_POST['description']), smart_addslashes($_POST['keywords']), $_POST['template_id'], $_POST['display_type'], $acl_read)) {
                 $feedback = '<p class="Error">' . $strSaveError . '</p>';
             } else {
                 if ($_POST['close'] == 'true') {
                     header('Location: ' . $return_to);
                     exit;
                 }
             }
         }
     }
 } else {
     if (!$cms->get_site_by_domain($domain)) {
         if (isset($_POST['secure'])) {
             if (!($acl_read = $GO_SECURITY->get_new_acl('cms read: ' . $domain))) {
                 die($strAclError);
             }