[Solar-svn] Revision 3242

pmjones at solarphp.com pmjones at solarphp.com
Sat Jul 26 09:55:17 CDT 2008


system: continued adding baseline files


Added: system/config/Solar.config.php
===================================================================
--- system/config/Solar.config.php	                        (rev 0)
+++ system/config/Solar.config.php	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1,38 @@
+<?php
+// all config values go in this array, which will be returned at the end of
+// this script
+$config = array();
+
+// system directory
+$system = dirname(dirname(__FILE__));
+
+/**
+ * SQL connection
+ */
+
+// use sqlite by default
+$config['Solar_Sql']['adapter'] = 'Solar_Sql_Adapter_Sqlite';
+
+// sqlite config
+$config['Solar_Sql_Adapter_Sqlite'] = array(
+    'name' => "$system/sqlite/solar.sq3",
+    'mode' => 0775,
+);
+
+/**
+ * Authentication
+ */
+
+// use .ini file only for getting started ... passwords are stored in plain 
+// text, not very secure.
+$config['Solar_Auth']['adapter'] = 'Solar_Auth_Adapter_Ini';
+
+// .ini config
+$config['Solar_Auth_Adapter_Ini'] = array(
+    'file' => "$system/config/auth.ini"
+);
+
+/**
+ * Done!
+ */
+return $config;

Added: system/config/auth.ini
===================================================================
--- system/config/auth.ini	                        (rev 0)
+++ system/config/auth.ini	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1,5 @@
+[admin]
+passwd = changeme
+email = admin at example.com
+moniker = Administrator
+uri = http://example.com

Added: system/docroot/index.php
===================================================================
--- system/docroot/index.php	                        (rev 0)
+++ system/docroot/index.php	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1,20 @@
+<?php
+// Solar system directory
+$system = dirname(dirname(__FILE__));
+
+// set the include-path for the system
+set_include_path(".:..:$system/include");
+
+// load Solar
+require_once 'Solar.php';
+
+// start Solar with system config file
+$config = "$system/config/Solar.config.php";
+Solar::start($config);
+
+// instantiate and run the front controller
+$front = Solar::factory('Solar_Controller_Front');
+$front->display();
+
+// Done!
+Solar::stop();

Added: system/docroot/info.php
===================================================================
--- system/docroot/info.php	                        (rev 0)
+++ system/docroot/info.php	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1 @@
+<?php phpinfo(); ?>
\ No newline at end of file

Added: system/docroot/public/Solar
===================================================================
--- system/docroot/public/Solar	                        (rev 0)
+++ system/docroot/public/Solar	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1 @@
+link ../../include/Solar/App/Public
\ No newline at end of file


Property changes on: system/docroot/public/Solar
___________________________________________________________________
Name: svn:special
   + *

Added: system/include/Solar
===================================================================
--- system/include/Solar	                        (rev 0)
+++ system/include/Solar	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1 @@
+link ../source/solar/Solar
\ No newline at end of file


Property changes on: system/include/Solar
___________________________________________________________________
Name: svn:special
   + *

Added: system/include/Solar.php
===================================================================
--- system/include/Solar.php	                        (rev 0)
+++ system/include/Solar.php	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1 @@
+link ../source/solar/Solar.php
\ No newline at end of file


Property changes on: system/include/Solar.php
___________________________________________________________________
Name: svn:special
   + *

Added: system/script/solar
===================================================================
--- system/script/solar	                        (rev 0)
+++ system/script/solar	2008-07-26 14:55:17 UTC (rev 3242)
@@ -0,0 +1 @@
+link ../source/solar/bin/solar
\ No newline at end of file


Property changes on: system/script/solar
___________________________________________________________________
Name: svn:special
   + *




More information about the Solar-svn mailing list