vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   functions.php problem (https://vborg.vbsupport.ru/showthread.php?t=74891)

k01nr01 01-22-2005 07:41 PM

functions.php problem
 
I just tried to install this and everything was going well, but I ended up with this message:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /public_html/includes/functions.php on line 1922

Line 1922 is:

PHP Code:

        $debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n"

I'm running vB 3.0.5 and using the latest version of the hack. I'm pretty new to this, and any help would be appreciated.

Zachery 01-22-2005 07:48 PM

retry hacking functions.php and dont use dreamweaver

k01nr01 01-22-2005 08:10 PM

Thanks for the quick reply. I tried rehacking functions.php using TextEdit and not Dreamweaver, but I'm still getting the same error, but this time line 1922 is different:

PHP Code:

        $debughtml .= " (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')'?')'?')=== false'?''?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')'?')'?')=== false'?''?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n"


Wifey 01-23-2005 08:05 PM

okay, I'm helping her on this board and I went through and rehacked everything because she k01nr01 had several errors. It still wasn't working. Sooo, I suggested that she uninstall and revert to the original php files. Still not working.

This is the error we're now getting:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/wizardi/public_html/includes/functions.php on line 1916

And this is the line:

PHP Code:

$debughtml .= " (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')'?')'?')=== false'?''?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')'?')'?')=== false'?''?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n"

I have this hack on my boards, version .95 I believe, and I installed it error free quickly. I'm not sure what has gone wrong, but reverting didn't work.

Any ideas?

Link14716 01-23-2005 08:08 PM

You have to rehack a clean functions.php without using Dreamweaver. See the FAQ topic at the top of this forum.

Wifey 01-23-2005 08:54 PM

I don't even own dreamweaver so I wasn't using it. I never even knew you could use dreamweaver to hack. I use good old notepad.

It's been solved though, but thanks!

pelican 01-24-2005 11:22 PM

using notepad is a good advise :)


All times are GMT. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01018 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete