Author Topic: Template tester droplet  (Read 1670 times)

Offline maxsart

  • Posts: 1
Template tester droplet
« on: April 30, 2011, 06:01:05 PM »
The droplet posted on amasp doesn't work correctly.
This work ok on latest version of WB (tested on 2.81 revision 1287)

global $database, $wb;
$list = $database->query("select * from `".TABLE_PREFIX."addons` where function= 'template'");
$str="";
$perm="";
$url = $_SERVER['PHP_SELF'];
while ($template = $list->fetchRow() ) {
    $str .= "<a href=$url?template=" . $template['directory']. "&perm =$perm>" . $template['name'] . "<a><br>";
}
return ($str);

 

postern-length