Forum Moderators: coopster

Message Too Old, No Replies

Parse error: syntax error, unexpected T STRING

         

chowdahead

3:18 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



Parse error: syntax error, unexpected T_STRING in /home/oblivi2/public_html/e107_plugins/gold_lottery/languages/English.php on line 1

Hi,
I cannot find the syntax error in the code below.Any help would
be much appreciated. Thank You.......chowdahead.

Here is the entire code:

<?php
/*
+---------------------------------------------------------------+
¦ Gold Lottery for e107 v7xx - by Father Barry
¦
¦ This module for the e107 .7+ website system
¦ Copyright Barry Keal 2004-2008
¦
¦ Released under the terms and conditions of the
¦ GNU General Public License (http://gnu.org).
¦
+---------------------------------------------------------------+
*/

define('GLOTTO_FAQ1', "<h2>Welcome to our Lottery.</h2><br />To play you need to pick <b>6</b> numbers between <b>1</b> and <b>49</b> inclusive. You may only pick unique numbers on
each entry and you type the numbers in to the box in the lottery balls. You may play as many times as you like up to your balance. When you have six numbers', click on the <b>Play</b> button");
define('GLOTTO_FAQ2', "The draw will take place at midday on the day of the draw. Six numbers will be selected at random by the computer and it will calculate your winnings', if any and credit your account.");
define('GLOTTO_FAQ3', "If you are feeling lucky you can click on the <b>Lucky Pick</b> button and six numbers will be chosen for you.");
define('GLOTTO_FAQ4', "The prize fund shows how much will be distributed to the winners and is shared among all winners in each draw. The prize fund is split up in the following way:");
define('GLOTTO_FAQ5', "If there are no winners for any set of balls, the money is added to the next lowest result. For example if there are no 6 ball winners the money that would have gone to the six ball winners is added to the 5 ball pot and so on. This means that a person with one correct number could win the whole lot if there are no other winners!");
define('GLOTTO_FAQ5ROLL', "If there are no winners for any set of balls', the money is added to the rollover amount. This will then be added to the prize fund for the next game.");
define('GLOTTO_FAQ6', "6 balls");
define('GLOTTO_FAQ7', "5 balls");
define('GLOTTO_FAQ8', "4 balls");
define('GLOTTO_FAQ9', "3 balls");
define('GLOTTO_FAQ10', "2 balls");
define('GLOTTO_FAQ11', "1 ball");

define('GLOTTO_MENU', "Lottery");
// Start Admin Menu
define('GLOTTO_MEN01', "Lottery");
define('GLOTTO_MEN02', "Main Configuration");
define('GLOTTO_MEN03', "Lotteries");
define('GLOTTO_MEN04', "Readme");
define('GLOTTO_MEN05', "Check for Updates");
// end admin
// start plugin
define('GLOTTO_P01', "Gold Lottery");
define('GLOTTO_P02', "A Lottery plugin for the Gold System");
define('GLOTTO_P03', "Gold Lottery now sucessfully installed.");
define('GLOTTO_P04', "Gold Lottery now sucessfully upgraded.");
// end plugin
// staart config
define('GLOTTO_C01', "Main Configuration");
define('GLOTTO_C02', "Player Class");
define('GLOTTO_C03', "Administrator Class");
define('GLOTTO_C04', "Number of past games to show");
define('GLOTTO_C05', "Show Winners names");
define('GLOTTO_C06', "Rollover");

define('GLOTTO_C15', "Percentage of Prize Fund for 1 Ball");
define('GLOTTO_C16', "Percentage of Prize Fund for 2 Balls");
define('GLOTTO_C17', "Percentage of Prize Fund for 3 Balls");
define('GLOTTO_C18', "Percentage of Prize Fund for 4 Balls");
define('GLOTTO_C19', "Percentage of Prize Fund for 5 Balls");
define('GLOTTO_C20', "Percentage of Prize Fund for 6 Balls");

define('GLOTTO_C21', "Save Changes");
define('GLOTTO_C22', "Changes Saved");
define('GLOTTO_C23', "Gold Lottery");
// end config
// start lotteries
define('GLOTTO_L01', "Gold Lottery");
define('GLOTTO_L02', "Maintain Lotteries");
define('GLOTTO_L03', "ID");
define('GLOTTO_L04', "Draw Date");
define('GLOTTO_L05', "Prize Fund");
define('GLOTTO_L06', "Rollover");
define('GLOTTO_L07', "Closed");
define('GLOTTO_L08', "Action");
define('GLOTTO_L09', "Previous Lotteries");
define('GLOTTO_L10', "Current Lotteries");
define('GLOTTO_L11', "New Lottery");
define('GLOTTO_L12', "Edit");
define('GLOTTO_L13', "Delete");
define('GLOTTO_L14', "No Lotteries");
define('GLOTTO_L15', "Are you sure you wish to delete this lottery?");
define('GLOTTO_L16', "Modify Lottery");
define('GLOTTO_L17', "Date of Draw (d-m-Y)");
define('GLOTTO_L18', "Winning Numbers");
define('GLOTTO_L19', "Not yet drawn");
define('GLOTTO_L20', "correct tickets");
define('GLOTTO_L21', "Save");
define('GLOTTO_L22', "Prize Breakdown");
define('GLOTTO_L23', "Lottery Saved");
define('GLOTTO_L24', "Lottery Created");
define('GLOTTO_L25', "Lottery Deleted");

define('GLOTTO_L26', "Bulk Create");
define('GLOTTO_L27', "Number of Lotteries");
define('GLOTTO_L28', "Every Day");
define('GLOTTO_L29', "Starting date");
define('GLOTTO_L30', "Prize fund");
define('GLOTTO_L31', "Sun");
define('GLOTTO_L32', "Mon");
define('GLOTTO_L33', "Tue");
define('GLOTTO_L34', "Wed");
define('GLOTTO_L35', "Thu");
define('GLOTTO_L36', "Fri");
define('GLOTTO_L37', "Sat");
define('GLOTTO_L38', "Lottery created for: ");
define('GLOTTO_L39', "No number specified");
define('GLOTTO_L40', "Duplicate draw date. Not created.");
define('GLOTTO_L41', "Not created");

// end
// start main page
define('GLOTTO_001', "Lottery");
define('GLOTTO_002', "Current Game");
define('GLOTTO_003', "Pick 6 numbers from 1 to 49");
define('GLOTTO_004', "Lucky Pick");
define('GLOTTO_005', "Play");
define('GLOTTO_006', "To be drawn at Midday");
define('GLOTTO_007', "Cost to play");
define('GLOTTO_008', "My Other Entries");
define('GLOTTO_009', "You have not played in this game yet.");
define('GLOTTO_010', "You must pick 6 unique numbers between 1 and 49 ");
define('GLOTTO_011', "You have already picked those numbers");
define('GLOTTO_012', "The current prize fund stands at");
define('GLOTTO_013', "You picked the following numbers");
define('GLOTTO_014', "in game number");
define('GLOTTO_015', "Lottery");
define('GLOTTO_016', "balls");
define('GLOTTO_017', "winners. Each won");
define('GLOTTO_018', "Draw Date");
define('GLOTTO_019', "Prize Fund");
define('GLOTTO_020', "Winning Numbers");
define('GLOTTO_021', "Winners");
define('GLOTTO_022', "Previous Games");
define('GLOTTO_024', "Your balance is");
define('GLOTTO_025', "My Tickets");
define('GLOTTO_026', "Winners");
define('GLOTTO_027', "You did not play this game");
define('GLOTTO_028', "There are no draws to play.");
define('GLOTTO_029', "No winners");
define('GLOTTO_030', "Sorry, you are not permitted to play.");
// start side menu
define('GLOTTO_SM01', "Lottery");
define('GLOTTO_SM02', "Current Game number");
define('GLOTTO_SM03', "To be drawn midday");
define('GLOTTO_SM04', "Current Prize Fund");
define('GLOTTO_SM05', "Last Game");
define('GLOTTO_SM06', "Drawn on");
define('GLOTTO_SM07', "No previous games");
define('GLOTTO_SM08', "Play");
define('GLOTTO_SM09', "Winning Numbers");
define('GLOTTO_SM10', "No games to play");
define('GLOTTO_SM11', "Lottery Page");
// end side menu
// start win messages
define('GLOTTO_W01', "Your lottery ticket number");
define('GLOTTO_W02', "had");
define('GLOTTO_W03', "wining numbers");
// end win messages
// start egold
define('GLOTTO_EGOLD01', "Gold Lottery");
define('GLOTTO_EGOLD02', "Cost per lottery entry");
define('GLOTTO_EGOLD03', "Gold Lottery Charges");
define('GLOTTO_EGOLD04', "Save");
define('GLOTTO_EGOLD05', "Lottery Changes Saved");
// end egold
// e_gold defines
define('GOLD_LOTTO_BUY', 'Buy Lottery tickets');
define('GOLD_LOTTO_TITLE', 'Gold Lotery');
define('GOLD_LOTTO_NAME', 'Lottery Shop');
define('GOLD_LOTTO_DESC', 'Take a chance on lady luck, Buy a lottery ticket (or more than one) and see if you can come up trumps with the winning combination.');

?>

penders

3:41 pm on Jan 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't seem to find any obvious errors in the code you've posted. Although make sure you have no carriage returns / line feeds in your strings.

Pico_Train

4:59 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



"<h2>Welcome to our Lottery.</h2><br />To play you need to pick <b>6</b> numbers between <b>1</b> and <b>49</b> inclusive. You may only pick unique numbers on
each entry and you type the numbers in to the box in the lottery balls. You may play as many times as you like up to your balance. When you have six numbers', click on the <b>Play</b> button")

There is a ' in that line, also in the next one there is also a ' - try removing those perhaps.

Several of your lines have a ' within the "" so maybe that's it. Worth a look...

chowdahead

5:48 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



That fixed it! Thank you so much!
chowdahead.......Charlie

Pico_Train

4:39 am on Jan 15, 2009 (gmt 0)

10+ Year Member



No probs! Glad you came right.