Topic: Please help me resolve this error
Right now I'm trying to integrate a simple link script called DS Linker into my forums. However, when I try to test the little progress I've made so far, I get the following error:
Parse error: parse error, unexpected $ in /mnt/web_g/d20/s22/a000skup/www/awesome/forum/linkerintegrated.php on line 69
Here's the code I have so far (not much, and not yet very well polished, but it's a start)
<?php
# Email address for link submissions to be sent to. (Required)
$sendto = "XXXXXXXXXXXXXXXXXXXXX";
# Set this to a password you will have to enter to approve links (Required)
$approvepass = "XXXXXXXXXXXXXXXX";
# Subject line in the email notification. (Required)
$subject = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New Link';
# Form position. Top = 1, Bottom = 0. (Required)
$form = "0";
# Display name of link submitter with link? yes = 1, no = 0. (Required)
$submitname = "1";
# Link descriptions? yes = 1, no = 0. (Required)
$description = "1";
# Page title, e.g. the text between <title></title>. (Required)
$title = "Links";
# Text at the top of the page, leave blank for none. (Optional)
$toptext = "Member Links";
# For text longer than a few words, put it in a txt file, put the file in the same directory as linker.php, and give the filename here. (Optional)
$longtext = "";
# End of config section, do not edit below this line
/*==================================================================================*/
$version = 1.3;
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $title;
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
?>
<div class="block">
<h2><span><?php echo($toptext); ?></span></h2>
<div class="box">
<div class="inbox">
<?php
if (!isset($_GET['action'])) {
ob_start();
include_once("links.dat");
$rawdat = ob_get_contents();
ob_end_clean();
$dat = strip_tags($rawdat, '<a><b><i><u><br><p>');
if ($longtext != "") {
include("$longtext");
print ("<p>");
};
if ($form == "0") {
print ($dat);
};
?>
</div>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
Does anyone know how to stop this error? I can't proceed until I figure it out.
P.S. Even if i delete line 69 (the footer.php thing), the error still appears, just for a different line.