2011-04-17 02:45:05 +04:00
|
|
|
<div id="login">
|
2011-04-19 03:17:35 +04:00
|
|
|
<img src="<?php echo image_path('', 'owncloud-logo-medium-white.png'); ?>" alt="ownCloud" />
|
2011-04-17 17:49:54 +04:00
|
|
|
<form action="#" method="post">
|
2011-04-17 02:45:05 +04:00
|
|
|
<input type='hidden' name='install' value='true'/>
|
|
|
|
<fieldset>
|
2011-04-19 03:17:35 +04:00
|
|
|
<input type="text" name="login" id="admin" value="admin username" />
|
|
|
|
<input type="password" name="pass" id="password" value="password" />
|
2011-04-17 02:45:05 +04:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<?php if(!$_['hasSQLite']): ?>
|
|
|
|
<legend><abbr title="to use SQLite instead, install it on your server">MySQL</abbr> Database</legend>
|
2011-04-19 03:17:35 +04:00
|
|
|
<input type="text" name="dbuser" id="dbuser" value="MySQL user" />
|
|
|
|
<input type="password" name="dbpass" id="dbpass" value="password" />
|
|
|
|
<input type="text" name="dbname" id="dbname" value="database name" />
|
2011-04-17 02:45:05 +04:00
|
|
|
<?php endif;?>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset id="advanced">
|
|
|
|
<legend><a id="advanced_options_link" href="">Advanced ▾</a></legend>
|
|
|
|
<div id="advanced_options">
|
2011-04-17 17:49:54 +04:00
|
|
|
<label class="left">Data directory</label><input type="text" name="directory" value="<?php echo($_['datadir']);?>" />
|
2011-04-17 02:45:05 +04:00
|
|
|
<?php if($_['hasMySQL'] and $_['hasSQLite']): ?>
|
2011-04-17 20:00:10 +04:00
|
|
|
<input type="radio" name="dbtype" value='sqlite' id="sqlite" checked="checked" /><label class="sqlite" for="sqlite">SQLite</label>
|
|
|
|
<input type="radio" name="dbtype" value='mysql' id="mysql"><label class="mysql" for="mysql">MySQL</label>
|
2011-04-17 02:45:05 +04:00
|
|
|
<div id="use_mysql">
|
2011-04-19 03:17:35 +04:00
|
|
|
<input type="text" name="dbuser" id="dbuser" value="MySQL user" />
|
|
|
|
<input type="password" name="dbpass" id="dbpass" value="password" />
|
|
|
|
<input type="text" name="dbname" id="dbname" value="database name" />
|
2011-04-17 02:45:05 +04:00
|
|
|
<?php endif;?>
|
|
|
|
<?php if($_['hasMySQL'] and !$_['hasSQLite']): ?>
|
2011-04-19 03:17:35 +04:00
|
|
|
<input type="hidden" name="dbtype" value="mysql" />
|
2011-04-17 02:45:05 +04:00
|
|
|
<?php endif;?>
|
|
|
|
<?php if(!$_['hasMySQL'] and $_['hasSQLite']): ?>
|
2011-04-19 03:17:35 +04:00
|
|
|
<input type="hidden" name="dbtype" value="sqlite" />
|
2011-04-17 02:45:05 +04:00
|
|
|
<?php endif;?>
|
2011-04-17 15:42:07 +04:00
|
|
|
<?php if($_['hasMySQL'] and $_['hasSQLite']): ?>
|
2011-04-19 03:17:35 +04:00
|
|
|
<label class="left">Database host</label><input type="text" name="dbhost" id="dbhost" value="localhost" />
|
|
|
|
<label class="left">Table prefix</label><input type="text" name="dbtableprefix" id="dbtableprefix" value="oc_" />
|
2011-04-17 02:45:05 +04:00
|
|
|
</div>
|
|
|
|
<?php endif;?>
|
2011-04-17 15:42:07 +04:00
|
|
|
<?php if($_['hasMySQL'] and !$_['hasSQLite']): ?>
|
2011-04-19 03:17:35 +04:00
|
|
|
<label class="left">Database host</label><input type="text" name="dbhost" id="dbhost" value="localhost" />
|
|
|
|
<label class="left">Table prefix</label><input type="text" name="dbtableprefix" id="dbtableprefix" value="oc_" />
|
2011-04-17 15:42:07 +04:00
|
|
|
<?php endif;?>
|
2011-04-17 02:45:05 +04:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<p class="submit"><input type="submit" value="Create" /></p>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2011-04-17 17:49:54 +04:00
|
|
|
</div>
|