}); </script> <?php show_google_analytics(); ?> </head> <body id="shortURL"> <div id="header"> <h1><a href="<?php show_base_url(); ?> "><?php show_domain(); ?> </a></h1> <h2><?php show_image_filename(); ?> </h2> <div id="shortURL-links"> <a id="viewer-link" href="<?php show_image_viewer(); ?> "><?php show_lang_txt('txt_show_viewer_link'); ?> </a> <a id="direct-link" href="<?php
$form = str_replace('<!-- col_n -->', $r_form, $form); } } //bouton enregistrer $bt_enr = "<input type='button' onclick=\"\n\tthis.form.action='./admin.php?categ=acces&sub=domain&action=update&id={$id}'; \n\tthis.form.submit();return false;\" \n\tvalue=\"" . addslashes($msg['77']) . "\" class='bouton' />"; $form = str_replace('<!-- bt_enr -->', $bt_enr, $form); //bouton appliquer $bt_app = "<input type='button' onclick=\"pbar_init();\" \n\tvalue=\"" . addslashes($msg['dom_prf_ini']) . "\" class='bouton' />"; $form = str_replace('<!-- bt_app -->', $bt_app, $form); $chk_sav_spe_rights = "<input type='checkbox' id='chk_sav_spe_rights' name='chk_sav_spe_rights' value='1' checked='checked' /> <label for='chk_sav_spe_rights' >" . htmlentities($msg['dom_sav_spe_rights'], ENT_QUOTES, $charset) . "</label>"; $form = str_replace('<!-- chk_sav_spe_rights -->', $chk_sav_spe_rights, $form); //bouton raz droits calculés $bt_raz = "<input type='button' onclick=\"\r\n\tthis.form.action='./admin.php?categ=acces&sub=domain&action=raz&id={$id}';\r\n\tthis.form.submit();return false;\"\r\n\tvalue=\"" . addslashes($msg['dom_prf_raz']) . "\" class='bouton' />"; $form = str_replace('<!-- bt_raz -->', $bt_raz, $form); if ($maj) { $form = str_replace('<!-- maj -->', $maj_form, $form); } print $form; } switch ($action) { case 'update': $dom->saveDomainRights($chk_rights); show_domain($id, true); break; case 'raz': $dom->deleteDomainRights(); case 'view': default: show_domain($id); break; }