![]() |
![]() |
-darkspy- |
![]()
Post
#1
|
Goście ![]() |
Parse error: parse error, unexpected '}' in /home/ghospfnv/public_html/start.php on line 1
nie moge sie z tym uporac, jest to skrypt firmy mailowej, ponizej kod pliku ten plik jest w stanie oryginalnym, do zmienienia w instrukcji jest baza i adres strony, wiec jezeli cokolwiek zmienie to wywala mi wlasnie powyzszy error, nawet kropke w komentarzu???!!!! moglby mi ktos pomoc? Kod <?
//////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // This script was written by and is copyrighted to GetPaidSite.com. You are // // prohibited from duplicating, selling, and distributing this script in any // // way. If you make modifications to this script, GetPaidSite.com will no // // longer be responsible for the functionality of this script. You are // // prohibited from selling scripts that require modification of this script // // without permission from GetPaidSite.com. // //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // global variables and database info $title = 'Your Website'; $siteaddr = 'yourwebsite.com'; $nolevels = 5; $percentages = array(20, 10, 5, 5, 1); $reqpersearnings = 0; //Features installed $f_profints = 1; $f_gold = 1; $f_timer = 1; $f_portal = 1; $f_pointemails = 1; $f_bannerclicks = 1; $f_goldamount = 1; //color and font settings //top panel settings $top_bgcolor = '#000099'; $top_bar_bgcolor = '#000000'; $top_fontcolor = '#FFFFFF'; $top_fontsize = '-1'; $top_fontface = 'Arial'; //Left side settings $side_bgcolor1 = '#000099'; $side_bgcolor2 = '#DDDDDD'; $side_fontcolor1 = '#FFFFFF'; $side_fontcolor2 = '#000000'; $side_fontface1 = 'Arial'; $side_fontsize1 = '3'; $side_fontsize2 = '3'; //individual page settings $page_bgcolor = '#000099'; $page_fontcolor = '#FFFFFF'; $page_fontsize = '3'; $page_fontface = 'Arial'; //timer settings $timer_default = 1; $timer_length = 30; $timer_bgcolor = '#FFFFFF'; $timer_fontcolor = '#000000'; //Email settings $divider = 500; //number of people to send email to in one click function determinedate() { $currentdate = date('m/d/Y', time()); return $currentdate; } function connectdb() { $conn = mysql_connect('localhost', 'user', 'password') or die('problem 1'); mysql_select_db('db', $conn) or die('other problem 2'); return $conn; } function tracking($username, $id, $n) { //DebugBreak(); $conn = connectdb(); $query = "select nohits, nosignups from tracking where username = '$username' and id = '$id'"; $result = mysql_query($query,$conn); $numrows = mysql_num_rows($result); if ($numrows) { list($nohits, $nosignups) = mysql_fetch_array($result); $curdate = determinedate(); if ($n == 1) { $nosignups++; } else { $nohits++; } $query = "update tracking set lastaccess = '$curdate', nohits = $nohits, nosignups = $nosignups where username = '$username' and id = '$id'"; $result = mysql_query($query, $conn); } else { $query = "select username from goldmembers where username = '$username'"; $result = mysql_query($query, $conn); $gnumrows = mysql_num_rows($result); $query = "select username from tracking where username = '$username'"; $result = mysql_query($query, $conn); $tnumrows = mysql_num_rows($result); if (($gnumrows) || (!$gnumrows && !$tnumrows)) { $curdate = determinedate(); $query = "insert into tracking(username, id, lastaccess) values('$username', '$id', '$curdate')"; $result = mysql_query($query, $conn); } } } function navigation() { ?> <td width=640 valign=top><br><br> <center> <table border=0 cellpadding=0 cellspacing=0> <tr> <th width=450 height=20 bgcolor="#000099"><font color="#ffffff">Member Area</font></th> </tr> <tr> <td bgcolor="#eeeeee"><a href="index.php">News</a> | <a href="earnings.php">View Earnings</a> | <a href="points.php">View Points</a> | <a href="referrals.php">View Referrals</a> <br> <a href="editinfo.php">Update Your Information</a> | <a href="profile.php">Your Profile and Interests</a> | <a href="refer.php">Referral Center</a> <br> <a href="gold.php">Upgrade to Gold</a> | <a href="cancelaccount.php">Cancel Account</a> | <a href="logout.php">Logout</a> </td> </tr> </table> <? } function refernav() { ?> <td width=640 valign=top><br><br> <center> <table border=0 cellpadding=0 cellspacing=0> <tr> <th width=450 height=20 bgcolor="#000099"><font color="#ffffff">Referral Center</font></th> </tr> <tr> <td bgcolor="#eeeeee" align=center> <a href="banners.php">Banners</a> <a href="tellafriend.php">Tell-A-Friend</a> <a href="gold.php">Gold Membership</a> </td> </tr> </table> <? } function advnavigate() { ?> <td width=640 valign=top><br><br> <center> <table border=0 cellpadding=0 cellspacing=0> <tr> <th width=450 height=20 bgcolor="#000099"><font color="#ffffff">Advertiser Area</font></th> </tr> <tr> <td bgcolor="#eeeeee"> <a href="editinfo.php">Change Password</a> | <a href="emailads.php">Email Ad Stats.</a> | <a href="bannerads.php">Banner Ad Stats.</a> | <a href="logout.php">Logout</a> </td> </tr> </table> <? } function sendwelcomeemail($username, $emailaddr, $password, $title, $siteaddr) { $to = $emailaddr; $subject = "Welcome to $title!"; $body ="Welcome to $title!" . ' Here is your login information. We recommend saving this email for future reference. Username: ' . "$username\n" . 'Password: ' . "$password\n\n" . 'To refer other people to this website, please use the one of the following URLs:' . "\nhttp://www.$siteaddr/index.php?ref=$username http://www.$siteaddr/join.php?ref=$username\n\n" . 'Sincerely, The ' . $title . 'Staff http://www.' . $siteaddr; $from = 'From: signup@' . $siteaddr; mail($to, $subject, $body, $from); } function sendconfirmemail($username, $no, $emailaddr, $title, $siteaddr) { $to = $emailaddr; $subject = 'Confirm your E-Mail Address'; $body = 'Thank you for signing up with ' . $title . '! . You are only one step away from completing the signup process. Click on the link below and your account will be active. http://www.' . "$siteaddr/join.php?t=$username&v=$no\n\n" . 'Sincerely, The ' . $title . ' Staff http://www.' . $siteaddr; $from = 'From: signup@' . $siteaddr; mail($to, $subject, $body, $from); } function sendreactivateemail($username, $no, $emailaddr, $title, $siteaddr) { $to = $emailaddr; $subject = 'Confirm your E-Mail Address'; $body = 'Please click on the link below to confirm your new email address and reactivate your account.' . "\n\nhttp://www.$siteaddr/reactivate.php?t=$username&v=$no\n\n" . 'Sincerely, The ' . $title . 'Staff http://www.' . $siteaddr; $from = 'From: noreply@' . $siteaddr; mail($to, $subject, $body, $from); } function diffgoldamount() { global $username, $conn, $f_gold, $f_goldamount; if ($f_gold && $f_goldamount) { $query = "select * from goldmembers where username = '$username'"; $result = mysql_query($query, $conn); $numrows = mysql_num_rows($result); if ($numrows) { $goldcheck = 1; } else { $goldcheck = 0; } } else { $goldcheck = 0; } return $goldcheck; } ?> |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 602 Pomógł: 1 Dołączył: 3.04.2004 Skąd: Trójmiasto (Gdańsk) Ostrzeżenie: (0%) ![]() ![]() |
to jest parse error, czyli błąd składni, a konkretnie "niespodziewany nawias klamrowy }" gdzieś tam
w tym kodzie który podałeś nie ma tego błędu, musisz mieć błąd gdzieś indziej -------------------- |
|
|
![]()
Post
#3
|
|
![]() Developer Grupa: Moderatorzy Postów: 2 844 Pomógł: 20 Dołączył: 25.11.2003 Skąd: Olkusz ![]() |
![]() Prosze to zamienic na [php] Pozatym zle miejsce php -> Skrypty php ale nie jestes zarejestrowany i nie mozesz nic poprawic (ani ja przeniesc) wiec zamykam prosze sie zarejestrowac i zrobic wszytko poprawnie |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 14:22 |