1
I am wondering if anyone feels upto writing a clone of the cakePHP (
http://www.cakephp.org) range in case someone want to do imports of cakePHP applications in a XOOPS framework.
I recently made my bin directory where you download all those Modules and Hacks from I wrote recently for xoops.
The bin is in cake PHP,
http://bin.chronolabs.org.au/ is the path I am talking about here is the file structure of the bin subdomain on chronolabs.
I don't know I have been playing with it through the evening into the morning for the first time and it seems like a good application framework for RAD, might get some use it would be kewl if you could drop in these.
File Path
le="color: #000000"><?php ../root .... /.htaccess (1.0) .... /index.php (1.1) .... /zip/download.php (1.3) .... /files/ <-cake goes here
1.0 - .htaccess file
Quote:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ([a-zA-Z0-9\ \'\_\-\.]+.zip)$ zip/download.php?file=$1 [L,NC,QSA]
1.1 - Index.php
1.1 - download.php
le="color: #000000"><?php <? $default = array('driver' => 'mysql', 'connect' => 'mysql_connect', 'host' => 'localhost', 'login' => 'htriukrw_bin', 'password' => 'password', 'database' => 'htriukrw_bin', 'prefix' => '_cake'); if (isset($default)){ $mysql = mysql_connect($default['host'],$default['login'],$default['password']); $db = mysql_select_db($default['database'],$mysql); $result = mysql_query('update '.$default['prefix'].'downloads set downloads=downloads+1 WHERE download_url LIKE "%'.$_REQUEST['file'].'";',$mysql); } header("Expires: Mon, 26 Nov 1962 00:00:00 GMT"); header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: Application/octet-stream"); header("Content-disposition: attachment; filename=" . $_REQUEST['file']); readfile($_REQUEST['file']); if (isset($mysql)){ $result = mysql_query('update '.$default['prefix'].'downloads set complete=complete+1 WHERE download_url LIKE "%'.$_REQUEST['file'].'";',$mysql); } ?>
Then build my cake frame work which i worked out from the tutorial on cake and there bakery is lacking items.