aboutsummaryrefslogtreecommitdiffstats
path: root/testing/litespeed/fix_php.patch
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-02-21 02:43:04 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-02-22 11:29:39 +0000
commitfa2ced42fee209bf3a035c8aa869c2020a783961 (patch)
tree1e2757dc5099e20c39c5e7df34382d7dd3242266 /testing/litespeed/fix_php.patch
parent11a8303416d4855e568bef08640e0b9c0e136406 (diff)
downloadaports-fa2ced42fee209bf3a035c8aa869c2020a783961.tar.bz2
aports-fa2ced42fee209bf3a035c8aa869c2020a783961.tar.xz
testing/litespeed: new aport
High-performance, lightweight, open source HTTP server with web-gui https://open.litespeedtech.com/
Diffstat (limited to 'testing/litespeed/fix_php.patch')
-rw-r--r--testing/litespeed/fix_php.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/testing/litespeed/fix_php.patch b/testing/litespeed/fix_php.patch
new file mode 100644
index 0000000000..a9009ce196
--- /dev/null
+++ b/testing/litespeed/fix_php.patch
@@ -0,0 +1,75 @@
+--- a/dist/add-ons/snmp_monitoring/class.litespeed_snmp_bridge.php
++++ b/dist/add-ons/snmp_monitoring/class.litespeed_snmp_bridge.php
+@@ -1,4 +1,4 @@
+-<?
++<?php
+
+ /*----------------------------------------
+ LiteSpeed_Stats to SNMP bridge. Relay stats to SNMPD.
+--- a/dist/add-ons/snmp_monitoring/class.litespeed_stats.php
++++ b/dist/add-ons/snmp_monitoring/class.litespeed_stats.php
+@@ -1,4 +1,4 @@
+-<?
++<?php
+
+ /*----------------------------------------
+ LiteSpeed_Stats class and subclasses. Parse Real-Time data for LiteSpeed Products
+--- a/dist/add-ons/snmp_monitoring/sample.php
++++ b/dist/add-ons/snmp_monitoring/sample.php
+@@ -1,4 +1,4 @@
+-<?
++<?php
+
+ /*--------------------------------
+ assuming following entry in /etc/snmp/snmpd.conf
+--- a/dist/admin/html.open/login.php
++++ b/dist/admin/html.open/login.php
+@@ -1,4 +1,4 @@
+-<?
++<?php
+
+ require_once('view/inc/global.php');
+
+@@ -31,7 +31,9 @@
+ });
+ </script>
+
+-<? } ?>
++<?php
++}
++?>
+
+ <div class="container">
+ <div style="margin-top:50px"></div>
+@@ -40,7 +42,7 @@
+ <form action="login.php" id="login" method="post" class="smart-form client-form" novalidate="novalidate">
+ <header><div class="text-center"><img src="/res/img/product_logo.gif" alt="LiteSpeed"></div></header>
+ <fieldset>
+- <?
++ <?php
+ if ($msg != '') {
+ echo "<section><div class=\"note\">$msg</div></section>";
+ }
+--- a/dist/admin/html.open/lib/jCryption.php
++++ b/dist/admin/html.open/lib/jCryption.php
+@@ -394,7 +394,7 @@
+ $bits_n = $bits_cnt % 8;
+ do {
+ $str = '';
+- mt_srand($this->_makeSeed());
++ mt_srand((int)$this->_makeSeed());
+ for ($i = 0; $i < $bytes_n; $i++) {
+ $str .= chr(sha1(mt_rand() * microtime()) & 0xff);
+ }
+--- a/dist/admin/html.open/lib/ows/RealTimeStats.php
++++ b/dist/admin/html.open/lib/ows/RealTimeStats.php
+@@ -224,6 +224,9 @@
+ $filter = UIBase::GrabGoodInput("request", "vh_filter", "string") ;
+ $sort = UIBase::GrabGoodInput("request", "vh_sort", "int") ;
+
++ $sortDesc1 = array();
++ $sortAsc2 = array();
++
+ $vhosts = array() ;
+ $m = array() ;
+ $found = preg_match_all("/REQ_RATE \[(.+)\]: REQ_PROCESSING: ([0-9]+), REQ_PER_SEC: ([0-9\.]+), TOT_REQS: ([0-9]+)/i", $this->_rawdata, $m) ;