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

version» Context lines:

Roxen.git/server/config_interface/actions/upload_license.pike:1:   /* -  * $Id: upload_license.pike,v 1.14 2005/12/21 13:50:38 noring Exp $ +  * $Id$    */      #include <roxen.h>   //<locale-token project="admin_tasks"> LOCALE </locale-token>   #define LOCALE(X,Y) _STR_LOCALE("admin_tasks",X,Y)      constant action = "maintenance";      string name= LOCALE(180, "Upload license...");   string doc = LOCALE(168, "Upload a new Roxen license file.");
Roxen.git/server/config_interface/actions/upload_license.pike:33:    <set variable='var.ok' value='ok'/>    </if>    <elseif license='&var.filename;'>    <input type='hidden' name='action' value='&form.action;'/>    <input type='hidden' name='file' value='&form.file;'/>    <input type='hidden' name='file.filename' value='&var.filename;'/>    <imgs src='&usr.err-2;' alt='#' />    Warning: The license file <b>&var.filename;</b> does already exists.    Do you want to overwrite the file?<br /><br />    <submit-gbutton>Overwrite</submit-gbutton> -  <cf-cancel href='./?class="+action+#"'/> +  <cf-cancel href='./?class="+action+#"&amp;&usr.set-wiz-id;'/>    </elseif>    <else>    <set variable='var.ok' value='ok'/>    </else>    <if variable='var.ok'>    <upload-license filename='&var.filename;' from='form.file'/>    License uploaded successfully.    <br /><br />    <cf-ok/>    </if>
Roxen.git/server/config_interface/actions/upload_license.pike:59:       <if variable='var.show-form = true'>    <input type='hidden' name='action' value='&form.action;'/>    Select local file to upload: <br />    <input type='file' name='file' size='40'/>    <input type='hidden' name='fixedfilename' value='' />    <submit-gbutton name='ok' width='75' align='center'    onClick=\"this.form.fixedfilename.value=this.form.file.value.replace(/\\\\/g,'\\\\\\\\')\"><translate id=\"201\">OK</translate></submit-gbutton>    <br /><br />    -  <cf-cancel href='./?class="+action+#"'/> +  <cf-cancel href='./?class="+action+#"&amp;&usr.set-wiz-id;'/>    </if>   ";       return txt;   }