Need some Help with an error

I am receiving this error.

Parse error: syntax error, unexpected $end, expecting '&' or T_VARIABLE in /home/vunder5/public_html/flash/modules/mp3/inc/functions.inc.php on line 11

Now I had added a code here in that file based on a another post for 7.1.1


if($bMp3) {

                $sStatus = getSettingValue($sModule, "autoApprove") == TRUE_VAL ? STATUS_APPROVED : STATUS_DISAPPROVED;

                $sExtension = MP3_EXTENSION;

http://www.boonex.com/forums/#topic/Sound-Processing-2013-03-27.htm

Now I have removed the code and cleared cache and still one of my forum shows this error. Odd the forum doesnt have any sound. Any ideas? I cleared public cache also. I will try the other cache.

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
Quote · 2 May 2013

I can tell you this. The code you posted here is missing the closing bracket for the if statement. }

But if you fully reversed the code changes i cannot tell you why your still getting a error. Because you should not be.

https://www.deanbassett.com
Quote · 2 May 2013

Had to use a back up file on the Function. PHP and cleared cache and the forum came back online.  When I added the code I used File manager, somehow it deleted everything in the file except for the first lines. These lines did not show when I went into the file with cpanels file manager. My guess is that I should not be using file manager to add code. Gibbs Slap!!! Can someone educate this sap? What did I do wrong?

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
Quote · 2 May 2013

Thank you Deano, surprising The file may not have been showing all the scripts in the file when I saved it after putting in the code. It may have to do with the fact that File managers edit was set on ut-8 but now when I go back in it is there. I am lost as to what happen.

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
Quote · 2 May 2013

When you say file manager; do you mean you edited the file using the file manager or uploaded the file using file manager?

Geeks, making the world a better place
Quote · 2 May 2013

I edited the file with Filemanager in cpanel at first. The fix was using ftp to swap out the Function.php with one that was backed up.

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
Quote · 2 May 2013

Not sure which editor you used, but there are 3 in cpanals file manager. Edit, Code Editor and HTML Editor. For PHP you would use the code editor, and yes utf8 would be the default and what you should use.

Anyhow. I don't recommend you do things directly online anyway. You should have a local copy of the entire website on your home computer. Use a decent editor such as Notepad++ http://notepad-plus-plus.org/ or EditPlus http://www.editplus.com/ for PHP files. Do not use editors built into windows such as wordpad.

Also do not use editors designed for html such as Dreamweaver or Expression Web. They can damage php files.

Do not use editors designed for word processing such as Microsoft Word. They to can damage php files.

The reason to have a local copy you work with is so you have a ready to use already edited backup of all your files incase something happens to the server.

https://www.deanbassett.com
Quote · 2 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.