u53r
Junior Member
Posts: 27
Joined: Feb 2010
Reputation: 0
|
RE: <Locations> hinzufuegen?!
Quote:<?php
require_once( "util.php" );
require_once( "settings.php" );
function pluginsSort($a, $b)
{
$lvl1 = (float) $a["info"]["runlevel"];
$lvl2 = (float) $b["info"]["runlevel"];
if($lvl1>$lvl2)
return(1);
if($lvl1<$lvl2)
return(-1);
return( 0 );
}
function getFlag($permissions,$pname,$fname)
{
$ret = true;
if(array_key_exists($pname,$permissions) &&
array_key_exists($fname,$permissions[$pname]))
$ret = $permissions[$pname][$fname];
else
if(array_key_exists("default",$permissions) &&
array_key_exists($fname,$permissions["default"]))
$ret = $permissions["default"][$fname];
return($ret);
}
function getPluginInfo( $name, $permissions )
{
$info = array();
$fname = "../plugins/".$name."/plugin.info";
if(is_readable($fname))
|
|
08-06-2010 05:37 AM |
|