[Openupload-svn-update] SF.net SVN: openupload:[3] www
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-15 14:43:50
|
Revision: 3
http://openupload.svn.sourceforge.net/openupload/?rev=3&view=rev
Author: tsdogs
Date: 2008-10-15 13:37:52 +0000 (Wed, 15 Oct 2008)
Log Message:
-----------
First svn commit
Added Paths:
-----------
www/config.inc.php.example
www/index.php
www/plugins/
www/plugins/captcha.php
www/templates/
www/templates/default/
www/templates/default/img/
www/templates/default/img/admin/
www/templates/default/img/admin/files.png
www/templates/default/img/admin/groups.png
www/templates/default/img/admin/plugins.png
www/templates/default/img/admin/rights.png
www/templates/default/img/admin/settings.png
www/templates/default/img/admin/users.png
www/templates/default/img/download.png
www/templates/default/img/openupload.jpg
www/templates/default/img/upload.png
www/templates/default/main.css
Added: www/config.inc.php.example
===================================================================
--- www/config.inc.php.example (rev 0)
+++ www/config.inc.php.example 2008-10-15 13:37:52 UTC (rev 3)
@@ -0,0 +1,88 @@
+<?php
+/* This is the general configuration file */
+
+/* Define the installation folder */
+$CONFIG['INSTALL_ROOT']='/usr/local/share/openupload';
+
+/* Define the web root foder (for the application) */
+$CONFIG['WEB_ROOT']='/usr/local/share/openupload/www';
+
+/* define http:// address */
+$CONFIG['WWW_SERVER']='http://yourdomain.com';
+/* define the additional web path */
+$CONFIG['WWW_ROOT']='/';
+
+/* Define where to store the uploaded files */
+$CONFIG['DATA_PATH']=$CONFIG['INSTALL_ROOT'].'/data';
+
+/* Define how long to keep the uploaded files
+ * please check the README for specification on how this works */
+$CONFIG['KEEP_FILES']=0;
+
+/* This specifies the kind of database to use:
+ * supported types are: mysql, pgsql, txt
+ * txt is a special mode where data is stored inside ascii files
+ * it can be used when no database is available
+ */
+$CONFIG['database']['type']='mysql';
+
+/* Depending on the option above... */
+
+/* MYSQL Database */
+$CONFIG['database']['host']='localhost';
+$CONFIG['database']['user']='databaseuser';
+$CONFIG['database']['password']='databasepwd';
+$CONFIG['database']['name']='openupload';
+
+/* TXT Database */
+//$CONFIG['database']['type']='txt';
+//$CONFIG['database']['rootdir']=$CONFIG['INSTALL_ROOT'].'/txtdb';
+
+$CONFIG['database']['prefix']='';
+
+/* PLUGINS: here you enable the plugins
+ * they will need to enable the functionality
+ * on a group basis
+ */
+$CONFIG['plugins'][] = 'banned';
+$CONFIG['plugins'][] = 'mimetypes';
+$CONFIG['plugins'][] = 'email';
+$CONFIG['plugins'][] = 'password';
+$CONFIG['plugins'][] = 'captcha';
+
+/* SITE TITLE */
+$CONFIG['site']['title'] = 'Open Upload';
+
+/* webmaster e-mail */
+$CONFIG['site']['webmaster'] = 'web...@yo...';
+/* email source address */
+$CONFIG['site']['email'] = 'ope...@yo...';
+
+/* REGISTRATION OPTIONS */
+$CONFIG['register']['nologingroup']='unregistered';
+/* registered user by default */
+$CONFIG['register']['default_group']='registered';
+
+
+/* SITE STYLE */
+$CONFIG['site']['template'] = 'default';
+/* ENABLE OR DISABLE SMARTY CACHING
+ * if enabled make sure a cache folder exsists
+ * and that it is writable
+ */
+$CONFIG['site']['caching']=0;
+
+/* NOTE: Depending on the template you might need to change some settings
+ * in the template configuration.
+ * The default template does not have this requirement
+ */
+
+/* SITE FOOTER STRING */
+$CONFIG['site']['footer'] = '<a href="http://openupload.sf.net">Open Upload</a> - Created by Alessandro Briosi © 2008';
+
+/* PLUGINS SPECIFIC CONFIGURATION */
+$CONFIG['mimetypes'][]='application/pdf';
+$CONFIG['mimetypes'][]='image/jpeg';
+$CONFIG['mimetypes'][]='image/png';
+
+?>
Added: www/index.php
===================================================================
--- www/index.php (rev 0)
+++ www/index.php 2008-10-15 13:37:52 UTC (rev 3)
@@ -0,0 +1,59 @@
+<?php
+/**
+ * Project: OpenUpload
+ * File: www/index.php
+ *
+ * LICENSE:
+ *
+ * Copyright 2008 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.3
+ */
+
+define ('__VALID_CALLING_SCRIPT', true);
+
+require_once('config.inc.php');
+require_once($CONFIG['INSTALL_ROOT'].'/lib/general.inc.php');
+
+global $application;
+
+/* check authentication */
+if (isset($_GET['action'])) {
+ $action = $_GET['action'];
+} else if (isset($_POST['action'])) {
+ $action = $_POST['action'];
+} else {
+ $action = '';
+}
+if (isset($_GET['step'])) {
+ $step = $_GET['step'];
+} else if (isset($_POST['step'])) {
+ $step = $_POST['step'];
+} else {
+ $step = '';
+}
+
+new Application($CONFIG);
+app()->run($action,$step);
+
+?>
Added: www/plugins/captcha.php
===================================================================
--- www/plugins/captcha.php (rev 0)
+++ www/plugins/captcha.php 2008-10-15 13:37:52 UTC (rev 3)
@@ -0,0 +1,16 @@
+<?php
+
+/* this generates a chiper and sets the session relative chiper protection */
+include ('../config.inc.php');
+
+require_once($CONFIG['INSTALL_ROOT'].'/plugins/securimage/securimage.php');
+
+
+$img = new securimage();
+$img->ttf_file = $CONFIG['INSTALL_ROOT'].'/plugins/securimage/elephant.ttf';
+$img->code_length = 6;
+$img->image_width = 200;
+$img->image_type = SI_IMAGE_JPG;
+$img->show();
+
+?>
\ No newline at end of file
Added: www/templates/default/img/admin/files.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/files.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/admin/groups.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/groups.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/admin/plugins.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/plugins.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/admin/rights.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/rights.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/admin/settings.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/settings.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/admin/users.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/admin/users.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/download.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/download.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/openupload.jpg
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/openupload.jpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/img/upload.png
===================================================================
(Binary files differ)
Property changes on: www/templates/default/img/upload.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: www/templates/default/main.css
===================================================================
--- www/templates/default/main.css (rev 0)
+++ www/templates/default/main.css 2008-10-15 13:37:52 UTC (rev 3)
@@ -0,0 +1,137 @@
+body {
+ font-family: Helvetica, Arial;
+ font-size: 10pt;
+ margin: auto;
+}
+#logo {
+ float:left;
+}
+#userinfo {
+ float: right;
+ height: 20px;
+ vertical-align: bottom;
+ margin-top: 60px;
+ margin-right: 20px;
+}
+#title {
+ background-color: #3161cf;
+ color: #ffffff;
+ font-size: 12pt;
+ font-weight: bold;
+ clear: right;
+ padding-left: 160px;
+ padding-top: 3px;
+ padding-bottom:3px;
+}
+#menu {
+ bottom: 0px;
+ text-align: center;
+ margin-top: 5px;
+}
+#menu ul {
+ list-style:none;
+ margin: 0;
+ padding: 0;
+}
+#menu li {
+ display: inline;
+ padding-right: 8px;
+ padding-left: 8px;
+ border-right: 1px solid #000000;
+}
+#wrapper {
+ clear: both;
+ maring: 0 auto;
+ text-align: center;
+ padding-top: 50px;
+}
+#content {
+ margin: 0 auto;
+ display: inline-block;
+ text-align: left;
+}
+#uploadbutton {
+ text-align: center;
+ margin: 0 auto;
+}
+#downloadbutton {
+ text-align: center;
+ margin: 0 auto;
+}
+
+#footer {
+ clear: both;
+ position: fixed;
+ bottom: 0px;
+ height: 20px;
+ width: 100%;
+ font-weight: bold;
+ font-size: 9pt;
+ border-top: 1px solid #000000;
+ text-align: center;
+}
+#footer a {
+ color: #3161cf;
+ font-weight: bold;
+ font-size: 9pt;
+ text-decoration: none;
+}
+#footer a:visited {
+ color: #3161cf;
+ font-weight: bold;
+ font-size: 9pt;
+ text-decoration: none;
+}
+a {
+ color: #3161cf;
+ font-weight: bold;
+ font-size: 11pt;
+ text-decoration: none;
+}
+a:visited {
+ color: #3161cf;
+ font-weight: bold;
+ font-size: 11pt;
+ text-decoration: none;
+}
+a:hover {
+ color: #4c8dff;
+ font-weight: bold;
+ font-size: 11pt;
+ text-decoration: none;
+}
+input, textarea {
+ color: #132678;
+ background-color: #c7dbff;
+ border: 1px solid #2d55b4;
+ font-size: 10pt;
+}
+.file {
+ font-size: 20pt;
+ color: #132678;
+ background-color: #c7dbff;
+ border: 1px solid #2d55b4;
+ font-size: 10pt;
+}
+fieldset {
+ border: 1px solid #2d55b4;
+ width: 30em
+}
+legend {
+ color: #ffffff;
+ background-color: #4c8dff;
+ border: 1px solid #2d55b4;
+ padding: 2px 6px;
+ font-size: 10pt;
+ font-weight: bold;
+}
+.submit,button {
+ font-size: 10pt;
+ color: #fafafa;
+ background-color: #4c8dff;
+ border-left: 1px solid #e3edff;
+ border-top: 1px solid #e3edff;
+ border-right: 1px solid #2d55b4;
+ border-bottom: 1px solid #2d55b4;
+ font-weight: bold;
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|