forked from thunix/www
First site 2.0 copy
This commit is contained in:
parent
e817232293
commit
eef3cf38db
206
signup.php
206
signup.php
|
@ -1,104 +1,104 @@
|
||||||
<?php
|
<?php
|
||||||
if( !defined('FormmailMakerFormLoader') ){
|
if( !defined('FormmailMakerFormLoader') ){
|
||||||
require_once( dirname(__FILE__).'/signup.lib.php' );
|
require_once( dirname(__FILE__).'/signup.lib.php' );
|
||||||
phpfmg_display_form();
|
phpfmg_display_form();
|
||||||
};
|
};
|
||||||
function phpfmg_form( $sErr = false ){
|
function phpfmg_form( $sErr = false ){
|
||||||
$style=" class='form_text' ";
|
$style=" class='form_text' ";
|
||||||
?>
|
?>
|
||||||
<div id='frmFormMailContainer'>
|
<div id='frmFormMailContainer'>
|
||||||
<form style="text-align: center;" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php echo PHPFMG_ADMIN_URL . '' ; ?>' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>
|
<form style="text-align: center;" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php echo PHPFMG_ADMIN_URL . '' ; ?>' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>
|
||||||
<input type='hidden' name='formmail_submit' value='Y'>
|
<input type='hidden' name='formmail_submit' value='Y'>
|
||||||
<input type='hidden' name='mod' value='ajax'>
|
<input type='hidden' name='mod' value='ajax'>
|
||||||
<input type='hidden' name='func' value='submit'>
|
<input type='hidden' name='func' value='submit'>
|
||||||
<ol class='phpfmg_form' >
|
<ol class='phpfmg_form' >
|
||||||
<li class='field_block' id='field_0_div'><div class='col_label'>
|
<li class='field_block' id='field_0_div'><div class='col_label'>
|
||||||
<label class='form_field'>Contact Name:</label></div>
|
<label class='form_field'>Contact Name:</label></div>
|
||||||
<div class='col_field'>
|
<div class='col_field'>
|
||||||
<input type="text" name="field_0" id="field_0" value="<?php phpfmg_hsc("field_0", ""); ?>" class='text_box'>
|
<input type="text" name="field_0" id="field_0" value="<?php phpfmg_hsc("field_0", ""); ?>" class='text_box'>
|
||||||
<div id='field_0_tip' class='instruction'></div>
|
<div id='field_0_tip' class='instruction'></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class='field_block' id='field_1_div'><div class='col_label'>
|
<li class='field_block' id='field_1_div'><div class='col_label'>
|
||||||
<label class='form_field'>Desired Username:</label></div>
|
<label class='form_field'>Desired Username:</label></div>
|
||||||
<div class='col_field'>
|
<div class='col_field'>
|
||||||
<input type="text" name="field_1" id="field_1" value="<?php phpfmg_hsc("field_1", ""); ?>" class='text_box'>
|
<input type="text" name="field_1" id="field_1" value="<?php phpfmg_hsc("field_1", ""); ?>" class='text_box'>
|
||||||
<div id='field_1_tip' class='instruction'></div>
|
<div id='field_1_tip' class='instruction'></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class='field_block' id='field_2_div'><div class='col_label'>
|
<li class='field_block' id='field_2_div'><div class='col_label'>
|
||||||
<label class='form_field'>Email Address:</label></div>
|
<label class='form_field'>Email Address:</label></div>
|
||||||
<div class='col_field'>
|
<div class='col_field'>
|
||||||
<input type="text" name="field_2" id="field_2" value="<?php phpfmg_hsc("field_2", ""); ?>" class='text_box'>
|
<input type="text" name="field_2" id="field_2" value="<?php phpfmg_hsc("field_2", ""); ?>" class='text_box'>
|
||||||
<div id='field_2_tip' class='instruction'></div>
|
<div id='field_2_tip' class='instruction'></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class='field_block' id='field_3_div'><div class='col_label'>
|
<li class='field_block' id='field_3_div'><div class='col_label'>
|
||||||
<label class='form_field'>What interests you about thunix?</label></div>
|
<label class='form_field'>What interests you about thunix?</label></div>
|
||||||
<div class='col_field'>
|
<div class='col_field'>
|
||||||
<textarea name="field_3" id="field_3" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_3"); ?></textarea>
|
<textarea name="field_3" id="field_3" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_3"); ?></textarea>
|
||||||
|
|
||||||
<div id='field_3_tip' class='instruction'></div>
|
<div id='field_3_tip' class='instruction'></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class='field_block' id='field_4_div'><div class='col_label'>
|
<li class='field_block' id='field_4_div'><div class='col_label'>
|
||||||
<label class='form_field'>Public SSH Key:</label></div>
|
<label class='form_field'>Public SSH Key:</label></div>
|
||||||
<div class='col_field'>
|
<div class='col_field'>
|
||||||
<textarea name="field_4" id="field_4" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_4"); ?></textarea>
|
<textarea name="field_4" id="field_4" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_4"); ?></textarea>
|
||||||
<div id='field_4_tip' class='instruction'></div>
|
<div id='field_4_tip' class='instruction'></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class='field_block' id='phpfmg_captcha_div'>
|
<li class='field_block' id='phpfmg_captcha_div'>
|
||||||
<div class='col_label'><label class='form_field'>Security Code:</label></div><div class='col_field'>
|
<div class='col_label'><label class='form_field'>Security Code:</label></div><div class='col_field'>
|
||||||
<?php phpfmg_show_captcha(); ?>
|
<?php phpfmg_show_captcha(); ?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div class='form_submit_block col_field'>
|
<div class='form_submit_block col_field'>
|
||||||
<input type='submit' value='Send' class='form_button'>
|
<input type='submit' value='Send' class='form_button'>
|
||||||
<div id='err_required' class="form_error" style='display:none;'>
|
<div id='err_required' class="form_error" style='display:none;'>
|
||||||
<label class='form_error_title'>Please fill in every field.</label>
|
<label class='form_error_title'>Please fill in every field.</label>
|
||||||
</div>
|
</div>
|
||||||
<span id='phpfmg_processing' style='display:none;'>
|
<span id='phpfmg_processing' style='display:none;'>
|
||||||
<img id='phpfmg_processing_gif' src='<?php echo PHPFMG_ADMIN_URL . '?mod=image&func=processing' ;?>' alt='Processing...'> <label id='phpfmg_processing_dots'></label>
|
<img id='phpfmg_processing_gif' src='<?php echo PHPFMG_ADMIN_URL . '?mod=image&func=processing' ;?>' alt='Processing...'> <label id='phpfmg_processing_dots'></label>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</form>
|
</form>
|
||||||
<br><p>If you don't have a public SSH key, don't worry! Check out <a href="https://tilde.team/wiki/?page=ssh">this guide</a> to SSH keys and make sure that you only fill in your public SSH key here.</p>
|
<br><p>If you don't have a public SSH key, don't worry! Check out <a href="https://tilde.team/wiki/?page=ssh">this guide</a> to SSH keys and make sure that you only fill in your public SSH key here.</p>
|
||||||
<p>Signing up implies that you agree with our <a href="/tos.php">terms of service</a>. If you haven't done so, please read it before you sign up.</p>
|
<p>Signing up implies that you agree with our <a href="/tos.php">terms of service</a>. If you haven't done so, please read it before you sign up.</p>
|
||||||
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
|
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<!-- end of form container -->
|
<!-- end of form container -->
|
||||||
<!-- [Your confirmation message goes here] -->
|
<!-- [Your confirmation message goes here] -->
|
||||||
<div id='thank_you_msg' style='display:none;'>
|
<div id='thank_you_msg' style='display:none;'>
|
||||||
Your signup form has been sent. Thank you!
|
Your signup form has been sent. Thank you!
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
phpfmg_javascript($sErr);
|
phpfmg_javascript($sErr);
|
||||||
}
|
}
|
||||||
# end of form
|
# end of form
|
||||||
function phpfmg_form_css(){
|
function phpfmg_form_css(){
|
||||||
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
|
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
ol.phpfmg_form{
|
ol.phpfmg_form{
|
||||||
list-style-type:none;
|
list-style-type:none;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
margin:0px;
|
margin:0px;
|
||||||
}
|
}
|
||||||
.text_box, .text_area, .text_select {
|
.text_box, .text_area, .text_select {
|
||||||
min-width:500px;
|
min-width:500px;
|
||||||
max-width:500px;
|
max-width:500px;
|
||||||
}
|
}
|
||||||
.form_error_title{
|
.form_error_title{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #FF0000;
|
color: #FF0000;
|
||||||
}
|
}
|
||||||
<?php phpfmg_text_align();?>
|
<?php phpfmg_text_align();?>
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
# end of css
|
# end of css
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue