array ( "vimeo.com", "youtube.com" ) ); //DEFINE WHAT FIELDS ARE ATTRIBUTES $main_menu_attr = array(); $num_main_menu_attr = count($main_menu_attr); //DEFINE WHAT FIELDS ARE LIBRARIES $main_menu_libs = array("videos", "pictures", "files"); $num_main_menu_libs = count($main_menu_libs); $main_menu_fields = array ( //GENERAL CONTENT "title_lang0" => array ( 1, 1, 1, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 1 ), //must always have title, lang0 is the handler. "text_lang0" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 0 ), "size" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "context" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "medium" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "year" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "cv" => array ( 0, 1, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "expositions" => array ( 0, 1, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "about" => array ( 0, 1, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "address" => array ( 0, 0, 1, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "facebook" => array ( 0, 0, 1, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "email" => array ( 0, 0, 1, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), "twitter" => array ( 0, 0, 1, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), //EMBEDS "embed" => array ( 0, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 0, 0 ), //UPLOADS "upload" => array ( 0, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 1, 0 ) ); $num_main_menu_fields = count($main_menu_fields); //DEFINE WHAT FIELDS ARE LONG TEXTS $longfields = array ( "text_lang0", "context", "medium", "cv", "expositions", "about", "address", "embed"); $num_longfields = count($longfields); $main_menu_privileges= array( "connections" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 0, 0, 0 ), //possible to attatch connections to this item? "additem" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 0 ), //possible to add items? "changenumber" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 0 ), //possible to change order of items? "delete" => array ( 1, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 0 ) //possible to delete items? ); $main_menu_conprivileges= array( "work" => array ( 0, 0, 0, /*attributes>*//*embeds>*//*uploads>*/ 1, 1, 0 ), //what items can you connect to this item? ); //// END OF SITE ITEMS AND THEIR EDITABLE FIELDS //// //WHAT VIEW ARE WE IN? if(isset($_GET['viewnr'])){$viewnr = $_GET['viewnr'];} else{ $viewnr = NULL; } if($viewnr == NULL){ $viewnr = 0;} $view = $main_menu_views[$viewnr]; //WHAT IS THE EDITID? if(isset($_GET['editid'])){$editid = $_GET['editid'];} else{ $editid = NULL; } //WHAT LANGUAGE ARE WE EDITING? if(isset($_GET['langnr'])){$langnr = $_GET['langnr'];} else{ $langnr = NULL; } if($langnr == NULL){ $langnr = 0;} //GET TITLE FOR EDITID ITEM TO DISPLAY IN HEADS if($editid != 'add' && $editid != NULL) { $edititem = mysql_query("SELECT * FROM " . $db_prefix . "_" . $view . " WHERE `id` = " . $editid . " ORDER BY id ASC"); $title = mysql_result($edititem,0,"title_lang0"); } ?>