Roxen.git
/
server
/
config_interface
/
sites
/
add_module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/config_interface/sites/add_module.pike:1:
-
//
$Id: add_module.pike,v 1.90 2009/03/17 16:37:52 jonasw Exp $
+
//
$Id$
#include <config_interface.h> #include <module.h> #include <module_constants.h> #include <roxen.h> int no_reload() { if( sizeof( already_added ) ) return 1; // Reloading this script now would destroy state. } //<locale-token project="roxen_config">LOCALE</locale-token> #define LOCALE(X,Y) _STR_LOCALE("roxen_config",X,Y) // Class is the name of the directory. array(string) class_description( string d, RequestID id ) { string name, doc;
-
while(!(< "", "/" >)[d] && !
file
_
stat
( d+"/INFO" ))
+
while(!(< "", "/" >)[d] && !
Stdio.is_
file( d+"/INFO" ))
d = dirname(d); if((< "", "/" >)[d]) return ({"Local modules", "" }); string n = Stdio.read_bytes( d+"/INFO" ); sscanf( n, "<"+id->misc->config_locale+">%s" "</"+id->misc->config_locale+">", n ); sscanf( n, "%*s<name>%s</name>", name ); sscanf( n, "%*s<doc>%s</doc>", doc ); if( search(n, "<noshow/>" ) != -1 )
Roxen.git/server/config_interface/sites/add_module.pike:101:
"<input type='search' size='30' name='mod_query' id='mod_query' " " onkeydown='return query_update_results(event);'" " onkeypress='return query_update_results(event);'>" "</form>" "</td>" "<td><img src='/internal-roxen-spinner-white'" " id='mod_spinner' style='visibility: hidden'></td>" "</tr>" "</table>";
-
return sprintf( "<use file='/template' />
\n
"
+
return sprintf( "<use file='/template' />"
"<tmpl title=' %s'%s>"
-
"<topmenu base='/' selected='sites'/>
\n
"
+
"<topmenu base='/' selected='sites'/>"
"<content><cv-split>" "<subtablist width='100%%'>" "<st-tabs></st-tabs>" "<st-page>" "<h2>Site: '&form.config;'</h2>" "<if not='1' variable='form.initial'>" "<table width='100%%' border='0' cellspacing='4' " " cellpadding='0'>" "<tr><td nowrap='nowrap'>%s:</td><td>" "<form action='' style='margin: 0'>"