Lo, voor het eerst krijg ik de volgende error:
Parse error: parse error, unexpected $ in /home/uds/public_html/resources/activate.inc.php on line 46
Nu regel 46 bevat ?>, en ik zie nergens een verkeerd geplaatst $ in de code:
Parse error: parse error, unexpected $ in /home/uds/public_html/resources/activate.inc.php on line 46
Nu regel 46 bevat ?>, en ik zie nergens een verkeerd geplaatst $ in de code:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| <?php
$smarty -> assign('display', 'false');
$smarty -> assign('page', $_SERVER[PHP_SELF]);
$smarty -> assign('myidexpl', 'There is an activation ID in the mail you have receaved when registering. Please fill that ID in here.');
$smarty -> assign('mykeyexpl', 'There is an activation key in the mail we\'ve send you after registering, please fill it in.
<br /><b>Note: the key field is case-sensitive!</b>');
$smarty -> assign('header', '» Me.UnDreamed / Activate');
$smarty -> assign('abb', '» Activating account');
$g = 1;
if(isset($_GET['type']))
{
if($_GET['type']="auto" || $_GET['type']="manual")
{
//
// Controling if request for registering has been made
//
if(isset($_GET['filled']))
{
$g = 0;
$myid = strip_tags($_GET['id']);
$mykey = strip_tags($_GET['key']);
$smarty->assign('did', $myid);
$smarty->assign('dkey', $mykey);
$result_id = mysql_query("SELECT user_ID FROM share_users WHERE user_ID='".addslashes($myid)."'");
if(mysql_num_rows($result_id)>0)
{
$results[$g++] = 'This id dosn\'t exist';
}
$smarty->assign('error', $results);
}
}
else
{
//
// User wants to manualy activate his account
//
$smarty -> assign('display', 'true');
$smarty -> assign('id', 'Activation ID:');
$smarty -> assign('key', 'Activation key:');
}
$smarty -> display('meuds_activate.tpl');
?> |