[Astrospaces-commits] SF.net SVN: astrospaces: [41] trunk
Brought to you by:
p3net
|
From: <p3...@us...> - 2007-07-30 19:40:18
|
Revision: 41
http://astrospaces.svn.sourceforge.net/astrospaces/?rev=41&view=rev
Author: p3net
Date: 2007-07-30 12:40:16 -0700 (Mon, 30 Jul 2007)
Log Message:
-----------
We're storing images as blobs. It's nicer that way.
Modified Paths:
--------------
trunk/config.php
trunk/develop/new-schema.sql
trunk/functions/template.php
Removed Paths:
-------------
branches/
tags/
Modified: trunk/config.php
===================================================================
--- trunk/config.php 2007-07-30 19:29:45 UTC (rev 40)
+++ trunk/config.php 2007-07-30 19:40:16 UTC (rev 41)
@@ -1,15 +1,8 @@
<?php
-/* Old-style
-$db_info = array(
- 'user' => '',
- 'pass' => '',
- 'host' => '',
- 'name' => ''
- );
+/* These settings are autogenerated by AstroSPACES
+ do not change them unless you know what you are
+ doing!
*/
-define('AS_EXT', '.php');
-define('AS_LANG', 'en-us');
-
define('AS_DB_TYPE', 'mysql');
define('AS_DB_PREFIX', 'as_');
define('AS_DB_HOST', 'localhost');
@@ -17,9 +10,16 @@
define('AS_DB_USER', 'user');
define('AS_DB_PASS', 'pass');
+define('AS_EXT', '.php');
+define('AS_LANG', 'en-us');
+
define('AS_LOC_URL', AS_DB_PREFIX.'http://localhost/');
define('AS_LOC_DIRECT', AS_DB_PREFIX.'C:/path/to/astrospaces/');
+/* These settings are constants and must NOT
+ be altered. Doing so will prevent AstroSPACES
+ from functioning.
+*/
define('AS_TBL_USER', AS_DB_PREFIX.'user');
define('AS_TBL_BLOG', AS_DB_PREFIX.'blog');
define('AS_TBL_BLOG_CMT', AS_DB_PREFIX.'blog_comments');
Modified: trunk/develop/new-schema.sql
===================================================================
--- trunk/develop/new-schema.sql 2007-07-30 19:29:45 UTC (rev 40)
+++ trunk/develop/new-schema.sql 2007-07-30 19:40:16 UTC (rev 41)
@@ -77,7 +77,7 @@
CREATE TABLE `as_images` (
`img_id` int(10) unsigned NOT NULL auto_increment,
`owner_id` int(10) unsigned NOT NULL,
- `content` varchar(45) NOT NULL COMMENT 'path to image on server',
+ `content` blob NOT NULL COMMENT 'binary image',
`desc` text NOT NULL,
`width` int(4) unsigned NOT NULL,
`height` int(4) unsigned NOT NULL,
Modified: trunk/functions/template.php
===================================================================
--- trunk/functions/template.php 2007-07-30 19:29:45 UTC (rev 40)
+++ trunk/functions/template.php 2007-07-30 19:40:16 UTC (rev 41)
@@ -16,7 +16,7 @@
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- @id: $Id $
+ @id: $Id$
*********************************************************/
class template {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|