summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/workdir/in/app/webroot/js
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-08-02 10:13:55 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-08-02 10:13:55 +0000
commitf4792ba1a7785220fef5adb1cb3e7ce8ac40152f (patch)
tree2bd98d59f1c10bf4264f747973ba7a3a643cad8d /poc/poc02-compiling-cake/src/workdir/in/app/webroot/js
parent104ff522c43fabc7c284fc38a46d17c16fe114d1 (diff)
download2012-php-weave-f4792ba1a7785220fef5adb1cb3e7ce8ac40152f.tar.gz
2012-php-weave-f4792ba1a7785220fef5adb1cb3e7ce8ac40152f.tar.bz2
2012-php-weave-f4792ba1a7785220fef5adb1cb3e7ce8ac40152f.zip
Creation d'un projet cake (exemple Blog du book) pour développer le CakePHPWeaver
git-svn-id: file:///var/svn/2012-php-weave/trunk@6 d972a294-176a-4cf9-8ea1-fcd5b0c30f5c
Diffstat (limited to 'poc/poc02-compiling-cake/src/workdir/in/app/webroot/js')
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/webroot/js/vendors.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/webroot/js/vendors.php b/poc/poc02-compiling-cake/src/workdir/in/app/webroot/js/vendors.php
new file mode 100644
index 0000000..cee6b77
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/webroot/js/vendors.php
@@ -0,0 +1,44 @@
+<?php
+/* SVN FILE: $Id: vendors.php 7691 2008-10-02 04:59:12Z nate $ */
+/**
+ * Short description for file.
+ *
+ * This file includes js vendor-files from /vendor/ directory if they need to
+ * be accessible to the public.
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot.js
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7691 $
+ * @modifiedby $LastChangedBy: nate $
+ * @lastmodified $Date: 2008-10-02 00:59:12 -0400 (Thu, 02 Oct 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Enter description here...
+ */
+if (isset($_GET['file'])) {
+ $file = $_GET['file'];
+ $pos = strpos($file, '..');
+ if ($pos === false) {
+ if (is_file('../../vendors/javascript/'.$file) && (preg_match('/(\/.+)\\.js/', $file))) {
+ readfile('../../vendors/javascript/'.$file);
+ return;
+ }
+ }
+}
+header('HTTP/1.1 404 Not Found');
+?> \ No newline at end of file