Roxen.git / server / config_interface / actions / make_site_template.pike

version» Context lines:

Roxen.git/server/config_interface/actions/make_site_template.pike:1:   /* -  * $Id: make_site_template.pike,v 1.10 2012/04/16 17:21:34 mast Exp $ +  * $Id$    *    * Make a site-template from a virtual server configuration.    *    * Henrik Grubbström 2001-11-16    */      #include <roxen.h>   #include <config_interface.h>   //<locale-token project="admin_tasks"> LOCALE </locale-token>   #define LOCALE(X,Y) _STR_LOCALE("admin_tasks",X,Y)
Roxen.git/server/config_interface/actions/make_site_template.pike:28:      string parse(RequestID id)   {    if( !config_perm( "Create Site" ) )    error("No permission, dude!\n"); // This should not happen, really.       string res = "<font size='+1'><b>"+    LOCALE(144, "Create site template")+"</b></font>\n";       // See [bug 5600] for a list of problems with this wizard. -  res += "<p><font color='red'>" + LOCALE(0, #"\ +  res += "<p><font color='red'>" + LOCALE(407, #"\   Warning: The site templates generated by this action have multiple   issues and might not produce a working or correctly configured site.   YMMV. This action is deprecated.") + "</font></p>\n";       string conf_name;    Configuration conf;    int done;       if (!(conf_name = id->variables->conf)) {    foreach(indices(id->variables), string var) {
Roxen.git/server/config_interface/actions/make_site_template.pike:84:    // Select a filename.    res += sprintf("<p>%s: %s</p>\n",    LOCALE(148, "Selected configuration"),    Roxen.html_encode_string(conf_name));       res += sprintf("<p>Filename (.pike will be added): "    "<input type='text' name='fname' value='%s'></p>\n",    Roxen.http_encode_url(lower_case(replace(conf_name,    " ", "_"))));    -  res += "<cf-ok/> <cf-cancel href='./?class="+action+"'/>"; +  res += "<cf-ok/> <cf-cancel href='./?class="+action+"&amp;&usr.set-wiz-id;'/>";    } else {    // Page 3    //    // Create the site template.    res += sprintf("<input type=hidden name='fname' value='%s' />\n",    Roxen.html_encode_string(id->variables->fname));       conf->enable_all_modules();       string fname = combine_path("/", id->variables->fname)[1..];
Roxen.git/server/config_interface/actions/make_site_template.pike:229:    }    }    if (!done) {    res +=    "<input type=hidden name='action' value='make_site_template.pike' />";    }       if (!conf) {    // Only on first page.    res += "<br clear='all'>" -  "<cf-cancel href='./?class="+action+"'/>"; +  "<cf-cancel href='./?class="+action+"&amp;&usr.set-wiz-id;'/>";    }       return res;   }