ae32b32000-11-27Martin Nilsson <trans-reg project="roxen_config"/>
f32b2a2000-08-19Per Hedbor <topmenu base="../" selected='sites'/>
98fbf81999-10-18Per Hedbor  <content>
e777572000-02-27Per Hedbor <cv-split>
f32b2a2000-08-19Per Hedbor <subtablist><st-page>
80cd682003-11-17Anders Johansson  <h1><translate id="248">Create new site</translate></h1>
dd2f1d1999-11-17Per Hedbor 
8ce0072000-09-12Per Hedbor <define variable='var.common'>
fc8ffc2017-05-23Pontus Östlund  <if variable='var.error'> <div class='notify error'>&var.error;</div> </if> <translate id="269" variable='var.sitename_txt'>Site name:</translate> <input name="name" value="&form.name;" id='site-name'
c71bfa2017-06-12Pontus Östlund  placeholder='&var.sitename_txt;' size='60' required='' pattern='[ a-zA-Z0-9]+|(?!CVS)|(?!global variables)' />&form.name;&var.sitename_txt;
fc8ffc2017-05-23Pontus Östlund  <p><translate id="270">
e337902008-09-10Martin Stjernholm The name of the configuration must contain characters other than space and tab, it must not contain '?', '!', '/', '\', '~', '"', ''', '`', '#', '$', '%', '&amp;', '=', ';', ':', '_', '&lt;', '&gt;', '|', '*', and it must not be 'CVS', 'Global Variables' or 'global variables', nor the name of an existing configuration. This name will show up in the sites menu, a lowercased, filesystem-friendly version will become the virtual server's configuration file name as well as the name of its log file directory.
fc8ffc2017-05-23Pontus Östlund </translate></p>
dd2f1d1999-11-17Per Hedbor 
e3aab72000-07-25Andreas Lange <translate id="248" variable="var.create_txt">Create new site</translate> <translate id="271" variable="var.template_txt">with template</translate>
7aab021999-11-02Per Hedbor 
fc8ffc2017-05-23Pontus Östlund <ul class='nolist button-list'> <li> <button data-submit='' class='icon next right' name='new_with_template'>&var.create_txt; &var.template_txt;</button> </li> <!-- name="new_with_template">&var.create_txt; &var.template_txt;</submit-gbutton2> --> <li> <button data-submit='' class='icon next right' name='new'>&var.create_txt;</button> </li> </ul> <!-- <submit-gbutton2 width='230' align_icon='right' icon_src='&usr.next;' name="new">&var.create_txt;</submit-gbutton2> --> <hr class='divider'>
028f2d2002-04-18Anders Johansson <cf-cancel href="./"/>
8ce0072000-09-12Per Hedbor </define>
f32b2a2000-08-19Per Hedbor 
8ce0072000-09-12Per Hedbor <if variable="form.name">
cc75f52000-10-21Martin Nilsson  <define variable="var.error" preparse="1"><insert file='verify_site_name.pike' nocache='1' /></define> <if not="1" variable='var.error is error'>
8ce0072000-09-12Per Hedbor  <if variable='form.new_with_template..x'>
cc75f52000-10-21Martin Nilsson  <define variable="form.name" preparse="1"><insert file='encode_form_name.pike' /></define>
e1fff72016-01-15Henrik Grubbström (Grubba)  <redirect to='create_site_with_template.pike?name=&form.name:http;&amp;&usr.set-wiz-id;'/>&form.name:http;&amp;&usr.set-wiz-id;
8ce0072000-09-12Per Hedbor  </if> <if variable='form.new..x'> <insert file='create_site.pike'/> <redirect to='site.html/&form.name:http;/' />&form.name:http; </if> <else> <eval>&var.common:none;</eval> </else> <true/> </if> </if>
cc75f52000-10-21Martin Nilsson <if variable='var.error is error'><define variable="var.error" preparse="1"><translate id="296">Illegal site name</translate></define><set variable="var.go" value='1' /></if> <if not="1" variable='form.name'><set variable="var.go" value='1' /></if>
8ce0072000-09-12Per Hedbor <if variable='var.go'> <eval>&var.common:none;</eval>
f32b2a2000-08-19Per Hedbor </if>
7aab021999-11-02Per Hedbor 
e777572000-02-27Per Hedbor </st-page> </subtablist> </cv-split>
e1fff72016-01-15Henrik Grubbström (Grubba) </content>