PDA

View Full Version : trying to get sig image system to work on 2.2.7


BlueVoltage
09-19-2002, 08:40 PM
I keep getting these errors:

when loading admin/index.php:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xelerix/public_html/x/admin/functions.php on line 681

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442


Lines 667-682 in admin/functions.php:


if (floor($phpversionnum) < 4) {
$searcharray = array(
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
"/(\[)(list)(])(.*)(\[\/list\])/siU",
"/(\[\*\])/siU",
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4)(.*)(\[\/url\])/siU",
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
"/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/siU",
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
"/javascript:/si",
"/about:/si",
"/vbscript:/si"
"/(\[sig\=)(.*)(\])/esiU" // addition
);

__________________________________________________ __

When loading /index.php:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xelerix/public_html/x/admin/functions.php on line 681

Parse error: parse error, unexpected $ in /home/xelerix/public_html/x/admin/sessions.php on line 442

Fatal error: Call to undefined function: cachetemplates() in /home/xelerix/public_html/x/global.php on line 284


I am running 2.2.7 (I know the hack has only been tested on 2.2.5 and 2.2.6)

Issvar
09-20-2002, 02:24 AM
You need a comma right before the line you added, just like the lines above. Only the last line doesn't have a comma.

BlueVoltage
09-20-2002, 07:56 PM
thanks dabean! I got it, but now i am getting errors when upioading an image... What does the dir need to be chmodded to?

Issvar
09-21-2002, 04:00 AM
rw for whatever user php is running as, rw-rw-rw- will always work.