clipbucket/upload/cb_install/modes/sitesettings.php

63 lines
2.5 KiB
PHP
Raw Normal View History

2013-10-07 12:17:06 +00:00
<?php
//Lets just save admin settings so we can move forward
$uid = 1;
$pass = pass_code(post('password'));
$db->update(tbl("users"),array
('username','password','email','doj','num_visits','ip','signup_ip','background_color','total_groups','banned_users'),array
(post('username'),$pass,post('email'),now(),1,$_SERVER['REMOTE_ADDR'],$_SERVER['REMOTE_ADDR'],'',0,''),"userid='$uid'");
//Login user
$userquery->login_user(post('username'),post('password'))
2014-06-05 04:38:48 +00:00
?><?//=msg_arr(array('msg'=>'Admin details have been updated'))?>
2013-10-07 12:17:06 +00:00
2014-06-05 04:38:48 +00:00
</div>
2013-10-07 12:17:06 +00:00
2014-06-05 04:38:48 +00:00
<div class="nav_des clearfix">
<div class="cb_container">
<h4 style="color:#fff">Website basic configurations</h4>
<p style="color:#fff; font-size:13px;">here you can set basic configuration of your website, you can change them later by going to Admin area &gt; Website Configurations
</p>
</div><!--cb_container-->
</div><!--nav_des-->
<!--<h2>Website basic configurations</h2>
here you can set basic configuration of your website, you can change them later by going to Admin area &gt; Website Configurations
2013-10-07 12:17:06 +00:00
2014-06-05 04:38:48 +00:00
<p>-->
<div id="sub_container" class="br5px">
<div class="db_image"><img src=<?installer_path()?>"images/site_setting.png" style="margin-top: 28px;margin-left: 545px;" width="280" height="280"/></div>
<div class="site_fields" style="margin-top:-290px;">
2013-10-07 12:17:06 +00:00
<form name="installation" method="post" id="installation">
2014-06-05 04:38:48 +00:00
<div class="field" >
2013-10-07 12:17:06 +00:00
<label for="title">Website title</label>
2014-06-05 04:38:48 +00:00
<input name="title" type="text" id="title" class="form-control" value="Clipbucket v2.7 Beta">
<p class="grey-text font-size" style="margin-top:0px;">Its your website title and you can change it from admin area.</p>
2013-10-07 12:17:06 +00:00
</div>
<div class="field">
<label for="slogan">Website Slogan</label>
2014-06-05 04:38:48 +00:00
<input name="slogan" type="text" id="slogan" class="form-control"value="A way to broadcast yourself">
<p class="grey-text font-size" style="margin-top:0px;">Its a slogan of your website and you can change it from admin area.</p>
2013-10-07 12:17:06 +00:00
</div>
<div class="field">
<label for="baseurl">Website URL</label>
2014-06-05 04:38:48 +00:00
<input name="baseurl" type="text" id="baseurl" class="form-control" value="<?=BASEURL?>">
<p class="grey-text font-size" style="margin-top:0px;">without trailing slash '/'</p>
2013-10-07 12:17:06 +00:00
</div>
<input type="hidden" name="mode" value="register" />
2014-06-05 04:38:48 +00:00
<p><br>
2013-10-07 12:17:06 +00:00
<?=button('Save and Continue',' onclick="$(\'#installation\').submit()" ');?>
</form>
2014-06-05 04:38:48 +00:00
</div>