This file contains hidden or 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
| <[^>]*> |
This file contains hidden or 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
| Process: httpd [1432] | |
| Path: /usr/sbin/httpd | |
| Identifier: httpd | |
| Version: 786 | |
| Code Type: X86-64 (Native) | |
| Parent Process: httpd [1431] | |
| Responsible: httpd [1431] | |
| User ID: 70 | |
| PlugIn Path: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20121212/apcu.so |
This file contains hidden or 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
| <form action="" method="post" novalidate="novalidate"> |
This file contains hidden or 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
| // Init Method | |
| $query = $this->createQueryBuilder('b') | |
| ->select('b') | |
| ->orderBy('b.number', 'DESC'); | |
| // WRONG Query | |
| // Was feching task's works with additional SQL Queries (task's works loop in twig tmpl) | |
| $query = $this->retrieve(true) |
This file contains hidden or 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 | |
| /* | |
| * Import data from old application | |
| * http://docs.doctrine-project.org/en/2.0.x/reference/configuration.html | |
| */ | |
| require '../vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php'; | |
| $classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', '../vendor/doctrine/common/lib'); | |
| $classLoader->register(); |
This file contains hidden or 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
| // string input ($date = '2013-01-01';) | |
| $day = \DateTime::createFromFormat('Y-m-d', $date); | |
| $date_errors = \DateTime::getLastErrors(); | |
| if ($date_errors['warning_count'] + $date_errors['error_count'] > 0) { | |
| throw $this->createNotFoundException('Input date does not exist.'); | |
| } | |
| $next_day = clone $day; |
This file contains hidden or 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
| if (!isset($_SERVER['PHP_AUTH_USER']) | |
| || $_SERVER['PHP_AUTH_USER'] != 'user' || $_SERVER['PHP_AUTH_PW'] != 'passwd') | |
| { | |
| header('WWW-Authenticate: Basic realm="My Realm"'); | |
| header('HTTP/1.0 401 Unauthorized'); | |
| echo 'Authentification requise.'; | |
| exit; | |
| } |
NewerOlder