Thread: [Openupload-svn-update] SF.net SVN: openupload:[161] trunk/www/setup.inc.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-11-20 15:09:44
|
Revision: 161
http://openupload.svn.sourceforge.net/openupload/?rev=161&view=rev
Author: tsdogs
Date: 2008-11-20 15:09:40 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
fix number of uploads, and add progress tracking method.
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-19 20:17:54 UTC (rev 160)
+++ trunk/www/setup.inc.php 2008-11-20 15:09:40 UTC (rev 161)
@@ -277,6 +277,7 @@
function setupcheck($step) {
global $_POST;
+ global $_SESSION;
$message = 'Let\'s check your php installation';
if (isset($_POST['check'])) {
@@ -323,7 +324,32 @@
msg('GD Support: not found','fail');
msg('GD is needed for captcha plugin');
}
+ echo '<div id="message"><b>Upload progress traking (only one is needed)</b></div>';
+ $progress_values = array('none');
+ if (function_exists('uploadprogress_get_info')) {
+ msg('UploadProgress Support: exsists','ok');
+ $progress_values[]='uploadprogress';
+ } else {
+ msg('UploadProgress: not found','fail');
+ }
+ if (function_exists('apc_fetch')) {
+ $msg = 'APC Support: exsists';
+ if (ini_get('apc.enabled')) {
+ $msg .= ', Enabled: yes';
+ if (ini_get('apc.rfc1867')) {
+ $progress_values[]='apc';
+ msg($msg.', rfc1867 enabled: yes','ok');
+ } else {
+ msg($msg.', rfc1867 enabled: NO','fail');
+ }
+ } else {
+ msg($msg.', Enabled: NO','fail');
+ }
+ } else {
+ msg('APC: not found','fail');
+ }
echo '<hr>';
+ $_SESSION['progress_values']=$progress_values;
$checked = true;
$message ='If everything looks good proceed!';
}
@@ -558,6 +584,7 @@
function options($step) {
global $_POST;
global $CONFIG;
+ global $_SESSION;
$tr = listModules($CONFIG['INSTALL_ROOT'].'/lib/modules/tr');
$auth = listModules($CONFIG['INSTALL_ROOT'].'/lib/modules/auth');
@@ -575,7 +602,8 @@
$CONFIG['registration']['email_confirm']=isset($_POST['confirmregistration'])?$_POST['confirmregistration']:'no';
$CONFIG['max_upload_size']=$_POST['max_upload_size'];
$CONFIG['max_download_time']=$_POST['max_download_time'];
- $CONFIG['multiupload']=$_POST['max_download_time'];
+ $CONFIG['multiupload']=$_POST['multiupload'];
+ $CONFIG['progress']=$_POST['progress'];
if ($CONFIG['translator']=='') {
$error = true;
@@ -605,6 +633,10 @@
$error = true;
msg('Please insert a max number of uploaded files per upload','fail');
}
+ if ($CONFIG['progress']=='') {
+ $error = true;
+ msg('Please select a method to trak the uploaded files','fail');
+ }
if (!$error) {
return $step+1;
}
@@ -621,6 +653,7 @@
$CONFIG['max_upload_size']=100;
$CONFIG['max_download_time']=120;
$CONFIG['multiupload']=1;
+ $CONFIG['progress']=$_SESSION['progress_values'][count($_SESSION['progress_values'])-1];
}
?>
<form method="POST" action="index.php">
@@ -664,6 +697,14 @@
<tr><td>Maximum upload size (in MB):</td><td><input type="text" name="max_upload_size" value="<?php echo $CONFIG['max_upload_size']; ?>"></td></tr>
<tr><td>Maximum download time (in Min)<br>0 disables it:</td><td><input type="text" name="max_download_time" value="<?php echo $CONFIG['max_download_time']; ?>"></td></tr>
<tr><td>Max num. of file uploaded per upload:</td><td><input type="text" name="multiupload" value="<?php echo $CONFIG['multiupload']; ?>"></td></tr>
+<tr><td>Upload tracking method:</td><td><select name="progress">
+<?php
+ foreach ($_SESSION['progress_values'] as $v) {
+ $sel = $CONFIG['progress']==$v?'selected':'';
+ echo '<option value="'.$v.'" '.$sel.'>'.$v.'</option>';
+ }
+?>
+</select></td></tr>
<TR><TD colspan="2"><input type="submit" value="Next >>"></TD></TR>
</table>
</form>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2008-11-20 18:33:13
|
Revision: 162
http://openupload.svn.sourceforge.net/openupload/?rev=162&view=rev
Author: tsdogs
Date: 2008-11-20 18:33:02 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
it ain't perfect but pgsql support is now on.
Reworked the whole SQL syntax to be more usable by the database functions.
ACL should now correspond to the documentation
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-20 15:09:40 UTC (rev 161)
+++ trunk/www/setup.inc.php 2008-11-20 18:33:02 UTC (rev 162)
@@ -49,6 +49,7 @@
);
/* DATABASE INITIALIZATION QUERY */
+
$MYSQL_QUERY = array (
'dropdb' => 'DROP DATABASE IF EXISTS `%1`',
'createdb' => 'CREATE DATABASE `%1`',
@@ -56,162 +57,236 @@
'createuser' => '',
'grant' => 'GRANT ALL PRIVILEGES ON %2.* TO "%1"@"localhost" IDENTIFIED BY "%3"',
'droptable' => 'DROP TABLE IF EXISTS `%1%2`',
- 'structure' => array (
- 'acl' => 'CREATE TABLE `%1acl` (
- `id` int(11) NOT NULL auto_increment,
- `module` varchar(100) NOT NULL,
- `action` varchar(100) NOT NULL,
- `group_name` varchar(50) NOT NULL,
- `access` varchar(10) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- 'banned' => 'CREATE TABLE `%1banned` (
- `id` int(11) NOT NULL auto_increment,
- `ip` varchar(50) NOT NULL,
- `access` varchar(50) NOT NULL,
- `priority` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- 'files' => 'CREATE TABLE `%1files` (
- `id` varchar(100) NOT NULL,
- `name` varchar(200) NOT NULL,
- `mime` varchar(200) NOT NULL,
- `description` tinytext NOT NULL,
- `size` int(12) NOT NULL,
- `remove` varchar(100) NOT NULL,
- `user_login` varchar(100) NOT NULL,
- `ip` varchar(40) NOT NULL,
- `upload_date` datetime NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1',
- 'file_options' => 'CREATE TABLE `%1file_options` (
- `id` bigint(20) NOT NULL auto_increment,
- `file_id` varchar(100) NOT NULL,
- `module` varchar(50) NOT NULL,
- `name` varchar(50) NOT NULL,
- `value` varchar(200) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `file_id` (`file_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- 'groups' => 'CREATE TABLE `%1groups` (
- `name` varchar(50) NOT NULL,
- `description` varchar(250) default NULL,
- PRIMARY KEY (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1',
- 'langs' => 'CREATE TABLE `%1langs` (
- `id` varchar(10) NOT NULL,
- `name` varchar(100) NOT NULL,
- `locale` varchar(10) NOT NULL,
- `browser` varchar(200) default NULL,
- `charset` varchar(50) NOT NULL,
- `active` tinyint(1) NOT NULL default \'1\',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1',
- 'plugin_acl' => 'CREATE TABLE `%1plugin_acl` (
- `id` int(11) NOT NULL auto_increment,
- `group_name` varchar(50) NOT NULL,
- `plugin` varchar(100) NOT NULL,
- `access` varchar(10) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `group_name` (`group_name`,`plugin`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- 'plugin_options' => 'CREATE TABLE `%1plugin_options` (
- `id` int(11) NOT NULL auto_increment,
- `plugin` varchar(100) NOT NULL,
- `group_name` varchar(100) NOT NULL,
- `name` varchar(100) NOT NULL,
- `value` text,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- 'users' => 'CREATE TABLE `%1users` (
- `id` int(10) unsigned NOT NULL auto_increment,
- `login` varchar(100) NOT NULL,
- `password` varchar(100) NOT NULL,
- `name` varchar(200) NOT NULL,
- `group_name` varchar(50) NOT NULL default \'registered\',
- `email` varchar(250) NOT NULL,
- `lang` varchar(10) NOT NULL default \'en\',
- `reg_date` datetime NOT NULL,
- `regid` varchar(50) NOT NULL default \'\',
- `active` tinyint(3) unsigned NOT NULL default \'1\',
- PRIMARY KEY (`id`),
- UNIQUE KEY `login` (`login`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0',
- ),
- 'base' => array (
- "INSERT INTO `%0banned` (`id`, `ip`, `access`, `priority`) VALUES(1, '127.0.0.1', 'allow', 1)",
- "INSERT INTO `%0banned` (`id`, `ip`, `access`, `priority`) VALUES(2, '0.0.0.0/0', 'allow', 9999999)",
- "INSERT INTO `%0groups` (`name`, `description`) VALUES('%3', 'Administrators group')",
- "INSERT INTO `%0groups` (`name`, `description`) VALUES('%4', 'Registered Users')",
- "INSERT INTO `%0groups` (`name`, `description`) VALUES('%5', 'Unregistered users')",
- "INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('en', 'English', 'en_EN', '[en];[en-EN]', 'iso-8559-1', 1)",
- "INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('it', 'Italiano', 'it_IT.utf8', '[it];[it-IT]', 'utf8', 1)",
- "INSERT INTO `%0langs` (`id`, `name`, `locale`, `browser`, `charset`, `active`) VALUES('fr', 'Français', 'fr_FR.utf8', '[fr];[fr-FR]', 'utf8', 1)",
- "INSERT INTO `%0users` (`id`, `login`, `password`, `name`, `group_name`, `email`, `lang`, `reg_date`, `regid`, `active`) VALUES(1, '%1', '%2', 'Administrator', '%3', '%6', 'en', now(), '', 1)",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(1, '*', '*', '%3', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(2, 'admin', '*', '%3', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(3, 'admin', '*', '*', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(4, 'auth', 'login', '%5', 'allow')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(1, '%3', 'password', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(2, '%3', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(3, '%3', 'email', 'enable')",
- "INSERT INTO `%0plugin_options` (`id`, `plugin`, `group_name`, `name`, `value`) VALUES (1, 'mimetypes', '%5', 'message', 'Pdf, JPEG')",
- "INSERT INTO `%0plugin_options` (`id`, `plugin`, `group_name`, `name`, `value`) VALUES (2, 'mimetypes', '%5', 'allowed', 'application/pdf
-image/jpeg')",
- ),
- 'mode_1' => array (
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(5, 'auth', 'register', '*', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(6, 'auth', '*', '%5', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(7, 'auth', '*', '*', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(8, 'files', '*', '%5', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(9, 'files', '*', '*', 'allow')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(4, '%4', 'password', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(5, '%4', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(6, '%4', 'email', 'enable')",
- ),
- 'mode_2' => array (
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(5, 'auth', 'register', '*', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(6, 'auth', '*', '%5', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(7, 'auth', '*', '*', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(8, 'files', 'd', '%5', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(9, 'files', 'g', '%5', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(10, 'files', '*', '%5', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(11, 'files', '*', '*', 'allow')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(4, '%4', 'password', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(5, '%4', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(6, '%4', 'email', 'enable')",
- ),
- 'mode_3' => array (
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(5, 'auth', 'register', '%5', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(6, 'auth', '*', '%5', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(7, 'auth', 'register', '*', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(8, 'auth', '*', '*', 'allow')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(9, 'files', '*', '*', 'allow')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(4, '%4', 'password', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(5, '%4', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(6, '%4', 'email', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(7, '%5', 'mimetypes', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(8, '%5', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(9, '%5', 'password', 'enable')",
-),
- 'mode_4' => array (
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(5, 'auth', '*', '*', 'deny')",
- "INSERT INTO `%0acl` (`id`, `module`, `action`, `group_name`, `access`) VALUES(6, 'files', '*', '*', 'allow')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(4, '%5', 'password', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(5, '%5', 'captcha', 'enable')",
- "INSERT INTO `%0plugin_acl` (`id`, `group_name`, `plugin`, `access`) VALUES(6, '%5', 'email', 'enable')",
- ),
);
+
$PGSQL_QUERY = array (
'dropdb' => 'DROP DATABASE "%1"',
'createdb' => 'CREATE DATABASE "%1"',
'dropuser' => '',
'createuser' => '',
'grant' => '',
- 'droptable' => 'DROP TABLE IF EXISTS `%2`',
+ 'droptable' => 'DROP TABLE IF EXISTS %1%2',
);
+$DB_STRUCTURE = array (
+ 'acl' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 11, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'module' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'action' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'group_name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'access' => array ( 'type' => 'char', 'size' => 10, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array ('id'), ),
+ ),
+ ),
+ 'banned' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 11, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'ip' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'access' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'priority' => array ( 'type' => 'int', 'size' => 11, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array ('id'), ),
+ ),
+ ),
+ 'files' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'name' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'description' => array ( 'type' => 'text', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'size' => array ( 'type' => 'int', 'size' => 12, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'remove' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'user_login' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'ip' => array ( 'type' => 'char', 'size' => 40, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'upload_date' => array ( 'type' => 'datetime', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array ('id'), ),
+ ),
+ ),
+ 'file_options' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 20, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'file_id' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'module' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'value' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'user_login' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'ip' => array ( 'type' => 'char', 'size' => 40, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'upload_date' => array ( 'type' => 'datetime', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array ('id'), ),
+ 'file_id' => array ( 'primary' => false, 'unique' => 'false', 'fields' => array('file_id') ),
+ ),
+ ),
+ 'groups' => array (
+ 'fields' => array (
+ 'name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'description' => array ( 'type' => 'char', 'size' => 250, 'extra' => '', 'null' => '', ),
+ ),
+ 'keys' => array (
+ 'name' => array ( 'primary' => true, 'fields' => array('name'), ),
+ ),
+ ),
+ 'langs' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'char', 'size' => 10, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'name' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'locale' => array ( 'type' => 'char', 'size' => 10, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'browser' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => '', ),
+ 'charset' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => '', ),
+ 'active' => array ( 'type' => 'int', 'size' => 1, 'extra' => '', 'null' => '', 'default' => '1'),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array('id'), ),
+ ),
+ ),
+ 'plugin_acl' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 10, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'group_name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'plugin' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'access' => array ( 'type' => 'char', 'size' => 10, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array('id'), ),
+ ),
+ ),
+ 'plugin_options' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 10, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'plugin' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'group_name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'name' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'value' => array ( 'type' => 'text', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array('id'), ),
+ ),
+ ),
+ 'users' => array (
+ 'fields' => array (
+ 'id' => array ( 'type' => 'int', 'size' => 10, 'extra' => 'auto_increment', 'null' => 'NOT NULL', ),
+ 'login' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'password' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'name' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'group_name' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', 'default' => 'registered'),
+ 'email' => array ( 'type' => 'char', 'size' => 250, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'lang' => array ( 'type' => 'char', 'size' => 10, 'extra' => '', 'null' => 'NOT NULL', 'default' => 'en'),
+ 'reg_date' => array ( 'type' => 'datetime', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'regid' => array ( 'type' => 'char', 'size' => 50, 'extra' => '', 'null' => 'NOT NULL', 'default' => ''),
+ 'active' => array ( 'type' => 'int', 'size' => 1, 'extra' => '', 'null' => 'NOT NULL', ),
+ ),
+ 'keys' => array (
+ 'id' => array ( 'primary' => true, 'fields' => array('id'), ),
+ 'login' => array ( 'primary' => false, 'unique' => true, 'fields' => array('id'), ),
+ ),
+ ),
+);
+
+$DB_DATA = array (
+ 'base' => array (
+ 'acl' => array (
+ array('id' => 1, 'module' => '*', 'action' => '*', 'group_name' => '%3', 'access' => 'allow' ),
+ array('id' => 2, 'module' => 'admin', 'action' => '*', 'group_name' => '%3', 'access' => 'allow' ),
+ array('id' => 3, 'module' => 'admin', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 4, 'module' => 'auth', 'action' => 'login', 'group_name' => '%5', 'access' => 'allow' ),
+ ),
+ 'groups' => array (
+ array ('name' => '%3' ,'description' => 'Administrators group' ),
+ array ('name' => '%4' ,'description' => 'Registered Users' ),
+ array ('name' => '%5' ,'description' => 'Unregistered users' ),
+ ),
+ 'banned' => array (
+ array ( 'id' => 1, 'ip' => '127.0.0.1', 'access' => 'allow', 'priority' => 1),
+ array ( 'id' => 2, 'ip' => '0.0.0.0/0', 'access' => 'allow', 'priority' => 9999999),
+ ),
+ 'langs' => array (
+ array ('id' => 'en', 'name' => 'English', 'locale' => 'en_EN', 'browser' => '[en];[en-EN]', 'charset' => 'utf8', 'active' => 1),
+ array ('id' => 'it', 'name' => 'Italiano', 'locale' => 'it_IT.utf8', 'browser' => '[it];[it-IT]', 'charset' => 'utf8', 'active' => 1),
+ array ('id' => 'fr', 'name' => 'Français', 'locale' => 'fr_FR.utf8', 'browser' => '[fr];[fr-FR]', 'charset' => 'utf8', 'active' => 1),
+ ),
+ 'users' => array (
+ array ( 'id' => 1, 'login' => '%1', 'password' => '%2', 'name' => 'Administrator', 'group_name' => '%3', 'email' => '%6',
+ 'lang' => 'en', 'reg_date' => '', 'regid' => '', 'active' => 1 ),
+ ),
+ 'plugin_acl' => array (
+ array ( 'id' => '1', 'group_name' => '%3', 'plugin' => 'password', 'access' => 'enable'),
+ array ( 'id' => '2', 'group_name' => '%3', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => '3', 'group_name' => '%3', 'plugin' => 'email', 'access' => 'enable'),
+ ),
+ 'plugin_options' => array (
+ array ( 'id' => '1', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'message', 'value' => 'Pdf, Jpeg'),
+ array ( 'id' => '2', 'plugin' => 'mimetypes', 'group_name' => '%5', 'name' => 'allowed', 'value' => 'application/pdf'."\n".'image/jpeg'),
+ ),
+ ),
+ 'mode_1' => array (
+ 'acl' => array (
+ array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ array('id' => 8, 'module' => 'files', 'action' => 'd', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 9, 'module' => 'files', 'action' => 'g', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 10, 'module' => 'files', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 11, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ ),
+ 'plugin_acl' => array (
+ array ( 'id' => 4, 'group_name' => '%4', 'plugin' => 'password', 'access' => 'enable'),
+ array ( 'id' => 5, 'group_name' => '%4', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => 6, 'group_name' => '%4', 'plugin' => 'email', 'access' => 'enable'),
+ ),
+ ),
+ 'mode_2' => array (
+ 'acl' => array (
+ array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ array('id' => 8, 'module' => 'files', 'action' => 'd', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 9, 'module' => 'files', 'action' => 'g', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 10, 'module' => 'files', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 11, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ ),
+ 'plugin_acl' => array (
+ array ( 'id' => 4, 'group_name' => '%4', 'plugin' => 'password', 'access' => 'enable'),
+ array ( 'id' => 5, 'group_name' => '%4', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => 6, 'group_name' => '%4', 'plugin' => 'email', 'access' => 'enable'),
+ ),
+ ),
+ 'mode_3' => array (
+ 'acl' => array (
+ array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
+ array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'auth', 'action' => '*', 'group_name' => 'register', 'access' => 'deny' ),
+ array('id' => 8, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 9, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
+ ),
+ 'plugin_acl' => array (
+ array ( 'id' => 4, 'group_name' => '%4', 'plugin' => 'password', 'access' => 'enable'),
+ array ( 'id' => 5, 'group_name' => '%4', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => 6, 'group_name' => '%4', 'plugin' => 'email', 'access' => 'enable'),
+ array ( 'id' => 7, 'group_name' => '%5', 'plugin' => 'mimetypes', 'access' => 'enable'),
+ array ( 'id' => 8, 'group_name' => '%5', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => 9, 'group_name' => '%5', 'plugin' => 'password', 'access' => 'enable'),
+ ),
+ ),
+ 'mode_4' => array (
+ 'acl' => array (
+ array('id' => 5, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 6, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ ),
+ 'plugin_acl' => array (
+ array ( 'id' => 4, 'group_name' => '%5', 'plugin' => 'password', 'access' => 'enable'),
+ array ( 'id' => 5, 'group_name' => '%5', 'plugin' => 'captcha', 'access' => 'enable'),
+ array ( 'id' => 6, 'group_name' => '%5', 'plugin' => 'email', 'access' => 'enable'),
+ ),
+ ),
+
+);
/* try to guess the appropriate settings from the $_SERVER */
$step = (isset($_GET['step']))?$_GET['step']:1;
$step = (isset($_POST['step']))?$_POST['step']:$step;
@@ -859,12 +934,164 @@
return true;
}
+function dbcreatetable($table,$fields,$keys,$debug=false) {
+ global $CONFIG;
+
+ switch ($CONFIG['database']['type']) {
+ case 'mysql':
+ $query = 'CREATE TABLE `'.$table.'` (';
+ foreach ($fields as $k => $f) {
+ $field = '`'.$k.'`';
+ switch ($f['type']) {
+ case 'char':
+ $field .= ' VARCHAR('.$f['size'].')';
+ break;
+ case 'int':
+ $field .= ' INT('.$f['size'].')';
+ break;
+ case 'text':
+ $field .= ' TEXT';
+ break;
+ case 'datetime':
+ $field .= ' DATETIME';
+ break;
+ case 'date':
+ $field .= ' DATE';
+ break;
+ }
+ $field .= ' '.$f['null'].' '.$f['extra'];
+ $query .= $field.','."\n";
+ }
+ $keylist = '';
+ foreach ($keys as $n => $k) {
+ $key = '';
+ foreach ($k['fields'] as $f) {
+ if ($key!='') $key.=',';
+ $key .= '`'.$f.'`';
+ }
+ if ($k['primary']) {
+ $key = 'PRIMARY KEY ('.$key.')';
+ } else {
+ $key = 'KEY `'.$n.'` ('.$key.')';
+ if ($k['unique']) $key = ' UNIQUE '.$key;
+ }
+ if ($keylist!='') { $keylist .= ','; }
+ $keylist .= $key;
+ }
+ $query .= $keylist;
+ $query .= ')';
+ return dbquery($query,array(),$debug);
+ break;
+ case 'pgsql':
+ $fieldlist = '';
+ foreach ($fields as $k => $f) {
+ $field = $k;
+ switch ($f['type']) {
+ case 'char':
+ $field .= ' character varying('.$f['size'].')';
+ break;
+ case 'int':
+ $field .= ' INTEGER';
+ break;
+ case 'text':
+ $field .= ' TEXT';
+ break;
+ case 'datetime':
+ $field .= ' timestamp without time zone';
+ break;
+ case 'date':
+ $field .= ' DATE';
+ break;
+ }
+ $field .= ' '.$f['null'];
+ if ($fieldlist != '')
+ $fieldlist .= ','."\n";
+ $fieldlist .= $field;
+ }
+ $query = 'CREATE TABLE '.$table.' ('.$fieldlist.')';
+ $res = dbquery($query,array(),$debug);
+ if ($res) { /* add the keys */
+ foreach ($keys as $n => $k) {
+ $key = '';
+ foreach ($k['fields'] as $f) {
+ if ($key!='') $key.=',';
+ $key .= $f;
+ }
+ if ($k['primary']) {
+ $query = 'ALTER TABLE ONLY '.$table.' ADD CONSTRAINT '.$table.'_pkey PRIMARY KEY ('.$key.')';
+ } else {
+ $query = 'CREATE '.($k['unique']?'UNIQUE ':'').'INDEX '.$table.'_'.$n.'_idx ON '.$table.' USING btree ('.$key.')';
+ }
+ $res = dbquery($query,array(),$debug);
+ }
+ }
+ if ($res) {
+ foreach ($fields as $k => $f) {
+ if ($f['extra']=='auto_increment') {
+ $seq = $table.'_'.$k.'_seq';
+ $query = 'CREATE SEQUENCE '.$seq.' INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1';
+ $res = dbquery($query,array(),$debug);
+ $query = 'ALTER SEQUENCE '.$seq.' OWNED BY '.$table.'.'.$k;
+ $res = dbquery($query,array(),$debug);
+ if ($res) {
+ $query = 'ALTER TABLE '.$table.' ALTER COLUMN '.$k.' SET DEFAULT nextval(\''.$seq.'\'::regclass)';
+ $res = dbquery($query,array(),$debug);
+ }
+ }
+ }
+ }
+ return $res;
+ break;
+ }
+ return false;
+}
+
+
+function dbinsert($table,$data,$params,$debug) {
+ global $CONFIG;
+ global $DB_STRUCTURE;
+
+ switch ($CONFIG['database']['type']) {
+ case 'mysql':
+ $fields = '';
+ $values = '';
+ foreach ($data as $f => $v) {
+ if ($fields != '') $fields .= ',';
+ if ($values != '') $values .= ',';
+ $fields .= '`'.$f.'`';
+ $values .= '"'.mysql_real_escape_string($v).'"';
+ }
+ $query = 'INSERT INTO `%0'.$table.'` ('.$fields.') VALUES ('.$values.')';
+ break;
+ case 'pgsql':
+ $fields = '';
+ $values = '';
+ foreach ($data as $f => $v) {
+ if ($fields != '') $fields .= ',';
+ if ($values != '') $values .= ',';
+ $fields .= $f;
+ if ($DB_STRUCTURE[$table]['fields'][$f]['type']=='int')
+ $values .= $v;
+ else if ($DB_STRUCTURE[$table]['fields'][$f]['type']=='datetime')
+ $values .= 'now()';
+ else
+ $values .= '\''.pg_escape_string($v).'\'';
+ ...
[truncated message content] |
|
From: <ts...@us...> - 2008-11-21 15:56:31
|
Revision: 166
http://openupload.svn.sourceforge.net/openupload/?rev=166&view=rev
Author: tsdogs
Date: 2008-11-21 15:56:22 +0000 (Fri, 21 Nov 2008)
Log Message:
-----------
fix missing fields in files structure
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2008-11-20 19:08:13 UTC (rev 165)
+++ trunk/www/setup.inc.php 2008-11-21 15:56:22 UTC (rev 166)
@@ -96,6 +96,7 @@
'fields' => array (
'id' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
'name' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
+ 'mime' => array ( 'type' => 'char', 'size' => 200, 'extra' => '', 'null' => 'NOT NULL', ),
'description' => array ( 'type' => 'text', 'size' => 0, 'extra' => '', 'null' => 'NOT NULL', ),
'size' => array ( 'type' => 'int', 'size' => 12, 'extra' => '', 'null' => 'NOT NULL', ),
'remove' => array ( 'type' => 'char', 'size' => 100, 'extra' => '', 'null' => 'NOT NULL', ),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-07 13:44:26
|
Revision: 252
http://openupload.svn.sourceforge.net/openupload/?rev=252&view=rev
Author: tsdogs
Date: 2009-02-07 13:44:23 +0000 (Sat, 07 Feb 2009)
Log Message:
-----------
Add configurable security option.
Add security for file listing, and fix for modes
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-02-07 13:42:51 UTC (rev 251)
+++ trunk/www/setup.inc.php 2009-02-07 13:44:23 UTC (rev 252)
@@ -243,7 +243,7 @@
array ( 'id' => '3', 'plugin' => 'expire', 'group_name' => '*', 'name' => 'days', 'value' => '30'),
),
),
- 'mode_1' => array (
+ 'mode_1' => array ( /* Private mode */
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '*', 'access' => 'deny' ),
array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
@@ -259,7 +259,7 @@
array ( 'id' => 6, 'group_name' => '%4', 'plugin' => 'email', 'access' => 'enable'),
),
),
- 'mode_2' => array (
+ 'mode_2' => array ( /* Restricted mode */
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
@@ -275,13 +275,14 @@
array ( 'id' => 6, 'group_name' => '%4', 'plugin' => 'email', 'access' => 'enable'),
),
),
- 'mode_3' => array (
+ 'mode_3' => array ( /* Service mode */
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
array('id' => 7, 'module' => 'auth', 'action' => '*', 'group_name' => 'register', 'access' => 'deny' ),
array('id' => 8, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
- array('id' => 9, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
+ array('id' => 9, 'module' => 'files', 'action' => 'l', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 10, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
),
'plugin_acl' => array (
array ( 'id' => 4, 'group_name' => '%4', 'plugin' => 'password', 'access' => 'enable'),
@@ -292,10 +293,11 @@
array ( 'id' => 9, 'group_name' => '%5', 'plugin' => 'password', 'access' => 'enable'),
),
),
- 'mode_4' => array (
+ 'mode_4' => array ( /* Public mode */
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
- array('id' => 6, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
+ array('id' => 6, 'module' => 'files', 'action' => 'l', 'group_name' => '%5', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
),
'plugin_acl' => array (
array ( 'id' => 4, 'group_name' => '%5', 'plugin' => 'password', 'access' => 'enable'),
@@ -700,6 +702,7 @@
$CONFIG['id_use_alpha']=isset($_POST['id_use_alpha'])?$_POST['id_use_alpha']:'no';
$CONFIG['max_download_time']=$_POST['max_download_time'];
$CONFIG['multiupload']=$_POST['multiupload'];
+ $CONFIG['allow_unprotected_removal']=$_POST['allow_unprotected_removal'];
$CONFIG['progress']=$_POST['progress'];
$CONFIG['logging']['enabled']=isset($_POST['logging'])?'yes':'no';
$CONFIG['logging']['db_level']=$_POST['log_db_level'];
@@ -761,6 +764,7 @@
$CONFIG['id_use_alpha']='yes';
$CONFIG['max_download_time']=120;
$CONFIG['multiupload']=1;
+ $CONFIG['allow_unprotected_removal']='no';
$CONFIG['progress']=$_SESSION['progress_values'][count($_SESSION['progress_values'])-1];
$CONFIG['logging']['enabled']='yes';
$CONFIG['logging']['db_level']=4;
@@ -811,6 +815,7 @@
<tr><td>Use Short Links?:</td><td><input type="checkbox" name="use_short_links" value="yes" <?php if ($CONFIG['use_short_links']=='yes') echo 'checked'; ?> ></td></tr>
<tr><td>Length of IDs (suggested min 6):</td><td><input type="text" name="id_max_length" value="<?php echo $CONFIG['id_max_length']; ?>"></td></tr>
<tr><td>Use alphanumeric IDs?:</td><td><input type="checkbox" name="id_use_alpha" value="yes" <?php if ($CONFIG['id_use_alpha']=='yes') echo 'checked'; ?> ></td></tr>
+<tr><td>Allow unprotected file removal?:</td><td><input type="checkbox" name="allow_unprotected_removal" value="yes" <?php if ($CONFIG['allow_unprotected_removal']=='yes') echo 'checked'; ?> ></td></tr>
<tr><td>Upload tracking method:</td><td><select name="progress">
<?php
foreach ($_SESSION['progress_values'] as $v) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-21 12:33:11
|
Revision: 259
http://openupload.svn.sourceforge.net/openupload/?rev=259&view=rev
Author: tsdogs
Date: 2009-02-21 12:33:03 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
update copyright year
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-02-21 12:32:25 UTC (rev 258)
+++ trunk/www/setup.inc.php 2009-02-21 12:33:03 UTC (rev 259)
@@ -755,7 +755,7 @@
$CONFIG['site']['title']='Open Upload';
$CONFIG['site']['webmaster']= '';
$CONFIG['site']['email']= '';
- $CONFIG['site']['footer']='<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008';
+ $CONFIG['site']['footer']='<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2009';
$CONFIG['site']['template'] = 'default';
$CONFIG['registration']['email_confirm']='yes';
$CONFIG['max_upload_size']=100;
@@ -1590,6 +1590,6 @@
</div>
<br /> <br />
<!-- footer -->
-<div id="footer"><a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008</div>
+<div id="footer"><a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2009</div>
</body>
</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-02-21 13:42:08
|
Revision: 263
http://openupload.svn.sourceforge.net/openupload/?rev=263&view=rev
Author: tsdogs
Date: 2009-02-21 13:42:06 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
better description
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-02-21 13:40:52 UTC (rev 262)
+++ trunk/www/setup.inc.php 2009-02-21 13:42:06 UTC (rev 263)
@@ -543,7 +543,7 @@
<TD><input type="text" name="install_root" size="50" value="<?php echo $CONFIG['INSTALL_ROOT']; ?>"></TD></TR>
<TR><TD>WWW Server URL:</TD>
<TD><input type="text" name="www_server" size="50" value="<?php echo $CONFIG['WWW_SERVER']; ?>"></TD></TR>
-<TR><TD>WWW Root Path <br />(where setup.php is):</TD>
+<TR><TD>WWW Root Path <br />(where setup.php is accessible from the web):</TD>
<TD><input type="text" name="www_root" size="50" value="<?php echo $CONFIG['WWW_ROOT']; ?>"></TD></TR>
<TR><TD>DATA PATH:</TD>
<TD><input type="text" name="data_path" size="50" value="<?php echo $CONFIG['DATA_PATH']; ?>"></TD></TR>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-03-09 15:26:57
|
Revision: 293
http://openupload.svn.sourceforge.net/openupload/?rev=293&view=rev
Author: tsdogs
Date: 2009-03-09 15:26:46 +0000 (Mon, 09 Mar 2009)
Log Message:
-----------
fix wrong permission line in setup
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-03-07 19:16:25 UTC (rev 292)
+++ trunk/www/setup.inc.php 2009-03-09 15:26:46 UTC (rev 293)
@@ -279,7 +279,7 @@
'acl' => array (
array('id' => 5, 'module' => 'auth', 'action' => 'register', 'group_name' => '%5', 'access' => 'allow' ),
array('id' => 6, 'module' => 'auth', 'action' => '*', 'group_name' => '%5', 'access' => 'deny' ),
- array('id' => 7, 'module' => 'auth', 'action' => '*', 'group_name' => 'register', 'access' => 'deny' ),
+ array('id' => 7, 'module' => 'auth', 'action' => 'register', 'group_name' => '*', 'access' => 'deny' ),
array('id' => 8, 'module' => 'auth', 'action' => '*', 'group_name' => '*', 'access' => 'deny' ),
array('id' => 9, 'module' => 'files', 'action' => 'l', 'group_name' => '%5', 'access' => 'deny' ),
array('id' => 10, 'module' => 'files', 'action' => '*', 'group_name' => '*', 'access' => 'allow' ),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-03-09 15:50:39
|
Revision: 296
http://openupload.svn.sourceforge.net/openupload/?rev=296&view=rev
Author: tsdogs
Date: 2009-03-09 15:50:33 +0000 (Mon, 09 Mar 2009)
Log Message:
-----------
add Chinese
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-03-09 15:48:12 UTC (rev 295)
+++ trunk/www/setup.inc.php 2009-03-09 15:50:33 UTC (rev 296)
@@ -227,6 +227,7 @@
array ('id' => 'it', 'name' => 'Italiano', 'locale' => 'it_IT.utf8', 'browser' => '[it];[it-IT]', 'charset' => 'utf8', 'active' => 1),
array ('id' => 'fr', 'name' => 'Français', 'locale' => 'fr_FR.utf8', 'browser' => '[fr];[fr-FR]', 'charset' => 'utf8', 'active' => 1),
array ('id' => 'de', 'name' => 'Deutsch', 'locale' => 'de_DE.utf8', 'browser' => '[de];[de-DE]', 'charset' => 'utf8', 'active' => 1),
+ array ('id' => 'zh_CN', 'name' => '中文', 'locale' => 'zh_CN.utf8', 'browser' => '[zh];[zh-CN]', 'charset' => 'utf8', 'active' => 1),
),
'users' => array (
array ( 'id' => 1, 'login' => '%1', 'password' => '%2', 'name' => 'Administrator', 'group_name' => '%3', 'email' => '%6',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ts...@us...> - 2009-04-18 10:50:29
|
Revision: 301
http://openupload.svn.sourceforge.net/openupload/?rev=301&view=rev
Author: tsdogs
Date: 2009-04-18 10:50:19 +0000 (Sat, 18 Apr 2009)
Log Message:
-----------
Jochen Derwae - a few html fixes
Modified Paths:
--------------
trunk/www/setup.inc.php
Modified: trunk/www/setup.inc.php
===================================================================
--- trunk/www/setup.inc.php 2009-04-18 10:50:00 UTC (rev 300)
+++ trunk/www/setup.inc.php 2009-04-18 10:50:19 UTC (rev 301)
@@ -1,5 +1,40 @@
<?php
+/**
+ * Project: OpenUpload
+ * File: index.php
+ *
+ * LICENSE:
+ *
+ * Copyright 2008-2009 Alessandro Briosi
+ *
+ * This file is part of OpenUpload.
+ *
+ * OpenUpload is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * OpenUpload is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with OpenUpload; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @link http://openupload.sf.net/
+ * @copyright 2008 Alessandro Briosi
+ * @author Alessandro Briosi <tsdogs at briosix dot org>
+ * @package OpenUpload
+ * @version 0.4
+ *
+ * 2009-04-16 - Jochen Derwae - www.coaladesign.com
+ * There was a small inconsistency in the html code at the bottom: body start tag was missing,
+ * head was closed before the styles and the root div wasn't closed
+ */
+
if (!defined('__VALID_CALLING_SCRIPT')) die('DIRECT ACCESS IS DENIED');
ob_start();
@@ -223,11 +258,11 @@
array ( 'id' => 2, 'ip' => '0.0.0.0/0', 'access' => 'allow', 'priority' => 9999999),
),
'langs' => array (
- array ('id' => 'en', 'name' => 'English', 'locale' => 'en_EN', 'browser' => '[en];[en-EN];[en-US]', 'charset' => 'utf8', 'active' => 1),
- array ('id' => 'it', 'name' => 'Italiano', 'locale' => 'it_IT.utf8', 'browser' => '[it];[it-IT]', 'charset' => 'utf8', 'active' => 1),
- array ('id' => 'fr', 'name' => 'Français', 'locale' => 'fr_FR.utf8', 'browser' => '[fr];[fr-FR]', 'charset' => 'utf8', 'active' => 1),
- array ('id' => 'de', 'name' => 'Deutsch', 'locale' => 'de_DE.utf8', 'browser' => '[de];[de-DE]', 'charset' => 'utf8', 'active' => 1),
- array ('id' => 'zh_CN', 'name' => '中文', 'locale' => 'zh_CN.utf8', 'browser' => '[zh];[zh-CN]', 'charset' => 'utf8', 'active' => 1),
+ array ('id' => 'en', 'name' => 'English', 'locale' => 'en_EN', 'browser' => '[en];[en-EN];[en-US]', 'charset' => 'utf-8', 'active' => 1),
+ array ('id' => 'it', 'name' => 'Italiano', 'locale' => 'it_IT.utf8', 'browser' => '[it];[it-IT]', 'charset' => 'utf-8', 'active' => 1),
+ array ('id' => 'fr', 'name' => 'Français', 'locale' => 'fr_FR.utf8', 'browser' => '[fr];[fr-FR]', 'charset' => 'utf-8', 'active' => 1),
+ array ('id' => 'de', 'name' => 'Deutsch', 'locale' => 'de_DE.utf8', 'browser' => '[de];[de-DE]', 'charset' => 'utf-8', 'active' => 1),
+ array ('id' => 'zh_CN', 'name' => '中文', 'locale' => 'zh_CN.utf8', 'browser' => '[zh];[zh-CN]', 'charset' => 'utf-8', 'active' => 1),
),
'users' => array (
array ( 'id' => 1, 'login' => '%1', 'password' => '%2', 'name' => 'Administrator', 'group_name' => '%3', 'email' => '%6',
@@ -548,7 +583,7 @@
<TD><input type="text" name="www_root" size="50" value="<?php echo $CONFIG['WWW_ROOT']; ?>"></TD></TR>
<TR><TD>DATA PATH:</TD>
<TD><input type="text" name="data_path" size="50" value="<?php echo $CONFIG['DATA_PATH']; ?>"></TD></TR>
-<TR><TD colspan="2"><input type="submit" value="Next >>"</TD></TR>
+<TR><TD colspan="2"><input type="submit" value="Next >>"></TD></TR>
</table>
</form>
<?php
@@ -1452,7 +1487,7 @@
?>
<html>
-<head><TITLE>OpenUpload Setup Script</TITLE></head>
+<head><TITLE>OpenUpload Setup Script</TITLE>
<style>
body {
font-family: Helvetica, Arial;
@@ -1547,6 +1582,8 @@
text-decoration: none;
}
</style>
+</head>
+<body>
<div>
<div id="header">
<div id="logo"><img src="<?php echo $path; ?>/img/openupload.jpg" border="0"></div>
@@ -1592,5 +1629,6 @@
<br /> <br />
<!-- footer -->
<div id="footer"><a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2009</div>
+</div>
</body>
</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|