JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove redundant php close tags
authorJason Woofenden <jason@jasonwoof.com>
Thu, 8 Jun 2017 03:53:51 +0000 (23:53 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 8 Jun 2017 03:53:51 +0000 (23:53 -0400)
13 files changed:
binary.php
calendar.php
dwt.php
examples/404.php
fdb.php
file.php
file_run.php
format.php
http.php
misc.php
namespacify.sh
template.php
test/session_test_db_connect.php

index 6e0ae13..2fd2a76 100644 (file)
@@ -51,5 +51,3 @@ function raw_to_array($data) {
        }
        return $ret;
 }
-
-?>
index c7f00bc..fff508c 100644 (file)
@@ -97,5 +97,3 @@ function calendar($year, $month, $events = 0, $template = 0) {
                calendar_week($template);
        }
 }
-
-?>
diff --git a/dwt.php b/dwt.php
index be75647..b4b821e 100644 (file)
--- a/dwt.php
+++ b/dwt.php
@@ -103,5 +103,3 @@ function dwt_output($filename = null) {
        }
        print(str_replace($GLOBALS['_dwt_keys'], $GLOBALS['_dwt_values'], $GLOBALS['_dwt_template']));
 }
-
-?>
index ecd477d..fc833b2 100644 (file)
@@ -1,5 +1,3 @@
 <?php
 
 tem_set('filename', $_SERVER['REDIRECT_URL']);
-
-?>
diff --git a/fdb.php b/fdb.php
index 230a83b..91892f9 100644 (file)
--- a/fdb.php
+++ b/fdb.php
@@ -99,5 +99,3 @@ function fdb_delete($key) {
        }
        return false;
 }
-
-?>
index 1001932..c834143 100644 (file)
--- a/file.php
+++ b/file.php
@@ -34,5 +34,3 @@ function read_whole_file_or_false($name) {
        }
        return read_whole_file($name);
 }
-
-?>
index 1e8aa0f..e22e2bc 100644 (file)
@@ -32,5 +32,3 @@ function file_run($filename /* args... */) {
                return call_user_func_array($func, $args);
        }
 }
-
-?>
index 14c1b26..6b14ad7 100644 (file)
@@ -383,5 +383,3 @@ function format_phone($str) {
 
        return $output;
 }
-
-?>
index b1f2aec..2907410 100644 (file)
--- a/http.php
+++ b/http.php
@@ -91,5 +91,3 @@ function http_cache_forever($cache_control = 'public') {
        header("Cache-Control: $cache_control");
        header('Expires: ' . gmdate('D, d M Y H:i:s',time()+31536000) . ' GMT'); # rfc 2616 says not to go more than a year in the future
 }
-
-?>
index ff8105e..4aaa495 100644 (file)
--- a/misc.php
+++ b/misc.php
@@ -187,5 +187,3 @@ function ref(&$foo) {
 function &last(&$array) {
        if(count($array)) return $array[count($array) - 1];
 }
-
-?>
index 557992a..541f32f 100644 (file)
@@ -57,4 +57,4 @@ if [ "$1" = 'wordpress' ]; then
        echo '}'
        wordpress_regex='s/function db_\(send_get\|insert_ish\|update\|delete\|\)(.*{/\0\n\t$table = add_wp_table_prefix($table);/;  s/\$GLOBALS\['\''wfpl_db_handle'\''\]/$GLOBALS['\''wpdb'\'']->dbh/g;'
 fi
-cat atexit.php csv.php db.php email.php encode.php file.php file_run.php format.php http.php messages.php misc.php template.php time.php | grep -v -e '<?php' -e '?>' -e '^\s*//' -e 'require_once' -e '^\s*$' | grep -v -P -e '^\s*#\s*((?!NAMESPACIFY).)*$' | sed -e "$wordpress_regex"'s/\(register_shutdown_function\|function_exists\|call_user_func_array\)(/\0'\''\\\\wfpl\\\\'\'' . /;  s/^\(\s*\)# NAMESPACIFY \(.*\)/\1\2 = '\''\\\\wfpl\\\\'\'' . \2;/'
+cat atexit.php csv.php db.php email.php encode.php file.php file_run.php format.php http.php messages.php misc.php template.php time.php | grep -v -e '<?php' -e '^\s*//' -e 'require_once' -e '^\s*$' | grep -v -P -e '^\s*#\s*((?!NAMESPACIFY).)*$' | sed -e "$wordpress_regex"'s/\(register_shutdown_function\|function_exists\|call_user_func_array\)(/\0'\''\\\\wfpl\\\\'\'' . /;  s/^\(\s*\)# NAMESPACIFY \(.*\)/\1\2 = '\''\\\\wfpl\\\\'\'' . \2;/'
index 32c3783..c1df1c1 100644 (file)
@@ -632,5 +632,3 @@ function tem_load_new($filename) {
 function tem_sub($name) {
        tem_show($name);
 }
-
-?>
index fff0a2c..0627fb1 100644 (file)
@@ -3,5 +3,3 @@
 require_once(__DIR__.'/../'.'db.php');
 
 db_connect('DATABASE_NAME', 'USERNAME', 'PASSWORD');
-
-?>