コード例 #1
0
 function updates()
 {
     if (JRequest::getVar('fn', '') != '') {
         switch (JRequest::getVar('fn', '')) {
             case "db_updates":
                 require_once JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_chronoforms" . DS . "versions" . DS . "db_updates.php";
                 ChronoFormsDbUpdates::updateDB();
                 break;
             default:
                 break;
         }
     }
     HTML_Admin_ChronoForms::updates();
 }
コード例 #2
0
function com_install()
{
    $mainframe =& JFactory::getApplication();
    $database =& JFactory::getDBO();
    jimport('joomla.utilities.error');
    jimport('joomla.filesystem.file');
    //do database updates
    require_once JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_chronoforms" . DS . "versions" . DS . "db_updates.php";
    ChronoFormsDbUpdates::updateDB();
    //show thanks message
    echo "Thank you for installing Chronoforms. If you have any problems or questions, please contact us at this email address: webmaster@chronoengine.com, or post on our forums: http://www.chronoengine.com/forums/";
    echo '<style type="text/css">
	<!--
	p {
		margin: 0 0 15px;
		padding: 0;
	}
	
	
	
	pre {
		margin: 10px 0;
		font: 11px/140% "Lucida Console", Courier, monospace;
	}
	
	fieldset {
		border: 1px solid #CCCCCC;
		margin-bottom: 15px;
	}
	
	legend {
		font-weight: bold;
		color: #333333;
	}
	
	#cf-container {
		font: 8pt/140% Arial, Helvetica, sans-serif;
		background: #FFFFFF;
		color: #000000;
		padding: 20px;
		text-align: left;
		width: 750px;
	}
	
	.cf-box {
		background: #FFFFFF;
		margin: 0 0 25px;
	}
	
	.cf-box h3 {
		font-size: 14px;
		padding: 0;
		margin: 0 0 10px;
	}
	.cf-highlight {
		color: #ff0000;
	}
	-->
	</style>
	
	
	<table class="adminheading">
	<tr><th class="info">ChronoForms</th></tr>
	</table>
	
	<div id="cf-container">
	
	<div class="cf-box">
	<h3>INTRODUCTION</h3>
	
	<p>I always needed to create custom forms for my clients websites, Or to migrate their old websites forms fast and easy to new Joomla websites
	forms, this was pain, as I was using other components for doing this, and I had to create everything from scratch at webbased tools.</p>
	
	<p>ChronoForms, was going to be just a contact forms component, but I have used it to create different forms using advanced techniques and PHP code
	, so I decided to make it a complete forms extension, I wish you will find it usefull, any feedback is very appreciated.</p>
	
	<p>For regular updates and informations on ChronoForms, please visit
	<a href="http://www.chronoengine.com" target="blank" title="Visit ChronoEngine.com">www.chronoengine.com</a>.</p>
	</div>
	
	<div class="cf-box">
	<h3>COPYRIGHT INFORMATION</h3>	
	<p>ChronoForms includes or is derivative of works distributed under the	following copyright notices:</p>
	<p>Copyright (c) 2006 - 2012 Chrono_Man, ChronoEngine.com. All rights reserved.</p>
	</div>
	
	<div class="cf-box">
	<h3>DISCLAIMER</h3>
	
	<p>THIS PROGRAM IS DISTRIBUTED &quot;AS IS&quot;. NO WARRANTY OF ANY KIND IS 
	EXPRESSED OR IMPLIED. YOU USE AT YOUR OWN RISK. I WILL NOT BE LIABLE FOR DATA 
	LOSS, DAMAGES, HACKING, SPAMMING, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS 
	WHILE USING OR MISUSING THIS SOFTWARE.
	</p>
	</div>
	
	</div>';
}