* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html * */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')) { include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// $complete_type=strtoupper($mod_inc); if($type=='P') { $requete= SQL_getPublicationTitle($parent); $result=$sql_object->DBSelect($requete); $current_title=FormatText($result[0]['publi_title'], '2HTML'); $publi_owner=$result[0]['publi_posted_by']; //////////// Check Droits utilisateur //////////// if (!$l21auth->hasRight('publication')) ReloadIndex('admin'); if ($l21auth->GetSessionElement('id')!=$publi_owner && !$l21auth->isSuperAdmin()) ReloadIndex('admin'); /////////// } if($type=='W') { $requete= SQL_getWorkshopRepTitleAndGroup($parent); $result=$sql_object->DBSelect($requete); $current_title=FormatText($result[0]['workrep_title'].' ('.$result[0]['workshop_denomination'].')', '2HTML'); $workshop_id=$result[0]['workrep_workshop_id']; //////////// Check Droits utilisateur //////////// if (!$l21auth->hasRight('workshop')) ReloadIndex('admin'); if (!$l21auth->isWorkgroupOrganiser($l21auth->GetSessionElement('id'), $sql_object, $workshop_id) && !$l21auth->isSuperAdmin()) ReloadIndex('admin'); /////////// } ?>
AddMultiRes($parent, $data_table, $complete_type, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo."&type=".$type."&id=".$parent; if($result===true) { header("Location: ".safe_redirect($link_confirm)); exit; } else system_error(); } if(isset($_POST['valider'])) { $table = array(); $table[0]=$_POST['multi_name']; $table[1]=$_POST['multi_description']; $table[2]=$_POST['multi_url']; $table[3]=0; // range $integrity=$resources_object->CheckDataIntegrity($table,'MULTI'); if(is_string($integrity)) { $text_format='2FIELD'; } else { $text_format='2HTML'; } $form_name=formatText($_POST['multi_name'], $text_format); $form_description=formatText($_POST['multi_description'], $text_format); $form_url=formatText($_POST['multi_url'], $text_format); $table=urlencode(serialize($table)); } ?>

\n"; echo "
".mb_ucfirst(_t('resources','multi_name'))." :
\n"; echo "
".$form_name."
\n"; echo "
".mb_ucfirst(_t('resources','multi_description'))." :
\n"; echo "
".$form_description."
\n"; echo "
".mb_ucfirst(_t('resources','url'))." :
\n"; echo "
".$form_url."
\n"; echo "\n"; ?>