This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = $model->getDbAdapterForCompany(); | |
$stmt = $db->query('SELECT * FROM ' . $table); | |
while($row = $stmt->fetch(Zend_Db::FETCH_OBJ)) { | |
// ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor | |
composer.phar | |
log | |
.settings | |
.buildpath | |
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dnl lines starting with "dnl" are comments | |
PHP_ARG_ENABLE(simplemvc, whether to enable Rlyeh extension, [ --enable-simplemvc Enable simple-mvc extension]) | |
if test "$PHP_SIMPLEMVC" != "no"; then | |
dnl this defines the extension | |
PHP_NEW_EXTENSION(simplemvc, php_simplemvc.c view.c, $ext_shared) | |
dnl this is boilerplate to make the extension work on OS X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !\.(css|jpg|png)$ | |
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$ | |
RewriteCond %{REMOTE_ADDR} !^10\.64\.98\.201$ | |
#RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f | |
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
#RewriteRule ^.*$ /system/maintenance.html [L] | |
RewriteRule ^.*$ /maintenance.html [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"minimum-stability": "dev", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://packages.zendframework.com/" | |
} | |
], | |
"require": { | |
"zendframework/zend-di": "2.0.*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer.phar | |
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor | |
composer.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* JSMin.php - modified PHP implementation of Douglas Crockford's JSMin. | |
* | |
* <code> | |
* $minifiedJs = JSMin::minify($js); | |
* </code> | |
* | |
* This is a modified port of jsmin.c. Improvements: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the Sismo utility. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* This source file is subject to the MIT license that is bundled | |
* with this source code in the file LICENSE. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE a_log_database; | |
USE a_log_database; | |
CREATE TABLE IF NOT EXISTS `log_table_name` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
`priority` int(11) NOT NULL, | |
`priorityName` varchar(45) NOT NULL, | |
`message` varchar(255) NOT NULL, |