Permalink
Browse files

Moved application level settings to events/onapplicationstart.cfm

  • Loading branch information...
1 parent 98f1791 commit 932ab938ba6b5cb27b7972a4bd6b56e8318bf2b6 Russ Johnson committed Aug 21, 2012
Showing with 19 additions and 73 deletions.
  1. +0 −19 config/settings.cfm
  2. +19 −1 events/onapplicationstart.cfm
  3. +0 −53 index.html
View
@@ -1,22 +1,3 @@
-<cfset application.admin.title = "Splash CMS">
-<cfset application.admin.disclaimer = "Splash CMS 0.2.5 - Copyright &copy; 2009 Mad Piranha, Inc.">
-<cfset application.defaults.page.parts = ['body','extended']>
-
-<!--- PATH SETTINGS --->
-<cfset application.defaults.rootPath = "/">
-<cfset application.defaults.layoutsPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/layouts">
-<cfset application.defaults.snippetsPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/snippets">
-<cfset application.defaults.pagesPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/pages">
-
-
-<!--- ADMIN TABS --->
-<cfset application.admin.tabs.titles = []>
-<cfset application.admin.tabs.routes = []>
-
-
-<!--- EXTENSION SETTINGS --->
-<cfset application.extensions = {}>
-
<cfset set(overwritePlugins = false)>
<cfscript>
@@ -1 +1,19 @@
-<!--- Place code here that should be executed on the "onApplicationStart" event. --->
+<!--- Place code here that should be executed on the "onApplicationStart" event. --->
+<cfset application.admin.title = "Splash CMS">
+<cfset application.admin.disclaimer = "Splash CMS 0.2.5 - Copyright &copy; 2009 Mad Piranha, Inc.">
+<cfset application.defaults.page.parts = ['body','extended']>
+
+<!--- PATH SETTINGS --->
+<cfset application.defaults.rootPath = "/">
+<cfset application.defaults.layoutsPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/layouts">
+<cfset application.defaults.snippetsPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/snippets">
+<cfset application.defaults.pagesPath = getDirectoryFromPath(getBaseTemplatePath()) & "public/pages">
+
+
+<!--- ADMIN TABS --->
+<cfset application.admin.tabs.titles = []>
+<cfset application.admin.tabs.routes = []>
+
+
+<!--- EXTENSION SETTINGS --->
+<cfset application.extensions = {}>
View
@@ -1,53 +0,0 @@
-<html>
-<head>
-<title>Welcome to splashcms.dev</title>
-<style type="text/css">
- body, div, td { font-family: "Lucida Grande"; font-size: 12px; color: #666666; }
- b { color: #333333; }
- .indent { margin-left: 10px; }
-</style>
-</head>
-<body link="#993300" vlink="#771100" alink="#ff6600">
-
-<table border="0" width="100%" height="95%"><tr><td align="center" valign="middle">
-<div style="width: 500px; background-color: #eeeeee; border: 1px dotted #cccccc; padding: 20px; padding-top: 15px;">
- <div align="center" style="font-size: 14px; font-weight: bold;">
- Congratulations!
- </div>
-
- <div align="left">
- <p>If you are reading this in your web browser, then the only logical conclusion is that the <b><a href="http://splashcms.dev/">http://splashcms.dev/</a></b> virtualhost was setup correctly. :)</p>
-
- <p>You can find the configuration file for this virtual host in:<br>
- <table class="indent" border="0" cellspacing="3">
- <tr>
- <td><img src="/icons/script.gif" width="20" height="22" border="0"></td>
- <td><b>/private/etc/apache2/virtualhosts/splashcms.dev</b></td>
- </tr>
- </table>
- </p>
-
- <p>You will need to place all of your website files in:<br>
- <table class="indent" border="0" cellspacing="3">
- <tr>
- <td><img src="/icons/dir.gif" width="20" height="22" border="0"></td>
- <td><b><a href="file:///Users/russ/Sites/splashcms">/Users/russ/Sites/splashcms</b></a></td>
- </tr>
- </table>
- </p>
-
- <p>For the latest version of this script, tips, comments, <span style="font-size: 10px; color: #999999;">donations,</span> etc. visit:<br>
- <table class="indent" border="0" cellspacing="3">
- <tr>
- <td><img src="/icons/forward.gif" width="20" height="22" border="0"></td>
- <td><b><a href="http://patrickg.com/virtualhost">http://patrickg.com/virtualhost</a></b></td>
- </tr>
- </table>
- </p>
- </div>
-
-</div>
-</td></tr></table>
-
-</body>
-</html>

0 comments on commit 932ab93

Please sign in to comment.