示例#1
0
 public static function getEventCalendar()
 {
     return fromcache::get("eventcalendar", "24", "fromdb_agenda::getEventCalendarData");
 }
示例#2
0
 public static function getStaticDisplayColumns()
 {
     return fromcache::get("entrancecolumns", "12", "display::outputStaticDisplayColumns");
 }
示例#3
0
 static function getAllPlaylists()
 {
     return fromcache::get("youtubeplaylists", "24", "fromdb_youtube::getAllPlaylistsData");
 }
示例#4
0
 public static function recreateMenulookupCache()
 {
     fromcache::reset_common_cache("menulookup");
     $array = fromcache::get("menulookup", "24", "\$GLOBALS['documentClass']->buildCompleteMenuArraysData");
     return is_array($array) && !empty($array) ? TRUE : FALSE;
 }
示例#5
0
 public static function getPeopleArray($searchVariant = "all", $mUser = FALSE, $stopOnError = IS_TESTSERVER, $sourceDb = PEOPLE_DATA_SOURCE_DB)
 {
     if (empty($sourceDb)) {
         $sourceDb = PEOPLE_DATA_SOURCE_DB;
     }
     switch ($searchVariant) {
         case "search":
             return self::getPeopleArrayData("search", $mUser, "active", "NOR", $stopOnError, $sourceDb);
             break;
         case "user":
             return self::getPeopleArrayData("user", $mUser, "active", "NOR", $stopOnError, $sourceDb);
             break;
         case "complete":
             return fromcache::get("peoplecomplete", "24", "people::getPeopleArrayData", "multiple", FALSE, "", "NOR", $stopOnError, $sourceDb);
             break;
         case "alumni":
             return fromcache::get("peoplealumni", "24", "people::getAlumniArrayData");
             break;
         case "all":
             return fromcache::get("peoplelist", "24", "people::getPeopleArrayData", "multiple", $mUser, "active", "NOR", $stopOnError, $sourceDb);
             break;
     }
     return array();
 }
示例#6
0
 public function getEventCalendar()
 {
     if (!OK_TO_CALL_EVENTS) {
         return functions::callMethod('fromdb_agenda', 'fromdb/agenda', 'getEventCalendar');
     }
     // ----------------------
     return fromcache::get("eventcalendar", "24", "fromdb_nwevents->getEventCalendarData");
 }
示例#7
0
 public static function outputTheoryMonthAgendatable($nocache = false)
 {
     if ($nocache) {
         return event::outputAgendatable("longagenda", "month", "theory", "0", "0", "1");
     } else {
         return fromcache::get("seminarschedule", "12", "event::outputAgendatable", "longagenda", "month", "theory", "0", "0", "1");
     }
 }
示例#8
0
         }
     }
 }
 // end if
 $uri['matchText'] = OS_outputFormat($uri['matchText'], $GLOBALS["QUERY"]['andor']);
 $uri['title'] = OS_outputFormat($uri['title'], $GLOBALS["QUERY"]['andor']);
 $uri['matchURI'] = (double) $GLOBALS["VDATA"]['s.weight'][4] > 0 ? OS_outputFormat($uri['uri'], $GLOBALS["QUERY"]['andor']) : $uri['uri'];
 $uri['description'] = OS_outputFormat($uri['description'], array());
 // --------------------
 // -- Remove paths that the current user has no access rights to see
 //    ($uri['path'] added by HVZM)
 // --------------------
 $uri['path'] = preg_replace("~http://[^/]*/~", "", str_replace("/index.php", "", $uri['uri']));
 //if ($uri["relevance"])              debug::rr(array(                "title"       => $uri['title'],                "description" => $uri['description'],                "category"    => $uri['category'],                "uri"         => $uri['uri'],                "matchURI"    => $uri['matchURI'],                "path"        => $uri['path'],                "filetype"    => $uri['ctype'],                "matchText"   => $uri['matchText'],                "relevance"   => $uri["relevance"]));echo "<br>".$uri["category"];var_dump(auth::isAccessGranted($GLOBALS["nw_categories"][$uri["category"]]));
 // $allpaths -- array with union of all sitemap info for entire site
 $allpaths = fromcache::get('allsitemap', '24', 'widget::WgetAllPaths');
 if (!class_exists("auth", FALSE)) {
     require_once PATH_CLASSES . "/lib/auth.php";
 }
 if ($uri["relevance"] && (isset($allpaths[$uri["path"]]["access"]) && !auth::isAccessGranted($allpaths[$uri["path"]]["access"]) || isset($GLOBALS["nw_categories"][$uri["category"]]) && !auth::isAccessGranted($GLOBALS["nw_categories"][$uri["category"]]))) {
     $uri["relevance"] = 0;
 }
 // --------------------
 // -- Reduce weight of signature page paths:
 // --------------------
 if ($uri["relevance"] && strpos($uri['uri'], "/signature/") !== false) {
     $uri["relevance"] = 0.1;
 }
 // --------------------
 // -- Remove paths of single-user pages:
 // --------------------
示例#9
0
 public static function getSidebarBoxes()
 {
     return fromcache::get("sidebar", "12", "block::BsidebarBoxes", "sidebarboxes", "acc-item");
 }