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 | |
/* Emulate register_globals behavior: | |
* | |
* @see http://php.net/manual/en/ini.core.php#ini.variables-order | |
* | |
* If variables_order is set to "EGPCS", and both $_GET['action'] and | |
* $_POST['action'] are set, then $action will contain the value of | |
* $_POST['action'] as P comes after G in our example directive value. | |
* | |
* @param bool $include_session Whether to register session variables or not. |
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
#!/usr/bin/perl -w | |
# | |
# $Id$ | |
# | |
# Logwatch service for php error logs | |
# To be placed in | |
# /etc/logwatch/scripts/php | |
# | |
# Processes all messages and summarizes them | |
# Each message is given with a timestamp and RMS |
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
<target name="checkshorttags"> | |
<!-- Run in parallel to speed up process. --> | |
<exec | |
escape="false" | |
command='GREPOUT=`find . -not -ipath "*vendor*" -type "f" -name "*.php" -print0 | xargs -0 -n1 -P$(nproc) pcregrep -nrHMe "<\?\s"`; | |
echo "$GREPOUT"; | |
if [ -z "$GREPOUT" ]; | |
then exit 0; | |
else exit 1; | |
fi; |
NewerOlder