Jump to content

zombie_002

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zombie_002's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What file is the default mail verification in so i can edit it there. because i have a screen that allows you to register i just need it to actualy send the verification email ( For Registering) I looked in the mainfile.php and found this is this what i need to edit? [quote] } function validate_mail($email) {   if(strlen($email) < 7 || !preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {     //include_once("header.php");     OpenTable();     echo _ERRORINVEMAIL;     CloseTable();     //include_once("footer.php");   }   else {     return $email;   } } function encode_mail($email) {   $finished = "";   for($i=0; $i<strlen($email); ++$i) {     $n = mt_rand(0, 1);     if($n) {       $finished .= '&#x'.sprintf("%X",ord($email{$i})).';';     }     else {       $finished .= '&#'.ord($email{$i}).';';     }   }   return $finished; } function paid() { global $db, $user, $cookie, $adminmail, $sitename, $nukeurl, $subscription_url, $user_prefix, $prefix; if (is_user($user)) { if (!empty($subscription_url)) { $renew = ""._SUBRENEW." $subscription_url"; } else { $renew = ""; } cookiedecode($user); $sql = "SELECT * FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]'"; $result = $db->sql_query($sql); $numrows = $db->sql_numrows($result); $row = $db->sql_fetchrow($result); if ($numrows == 0) { return 0; } elseif ($numrows != 0) { $time = time(); if ($row['subscription_expire'] <= $time) { $db->sql_query("DELETE FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]' AND id='".intval($row['id'])."'"); $from = "$sitename <$adminmail>"; $subject = "$sitename: "._SUBEXPIRED.""; $body = ""._HELLO." $cookie[1]:\n\n"._SUBSCRIPTIONAT." $sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename "._TEAM."\n$nukeurl"; $row = $db->sql_fetchrow($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE id='$cookie[0]' AND nickname='$cookie[1]' AND password='$cookie[2]'")); mail($row['user_email'], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion()); } return 1; } } else { return 0; } } [/quote]
  2. I was looking through your forums and found this [quote]<?php // connect to database $conn = mysql_connect("localhost","www2","accuoffice"); //select the database $db = mysql_select_db("accu") or die( "Unable to select database"); // Create variables from URL. $userid = $_GET['id']; $code = $_GET['code']; $query = "SELECT * FROM users WHERE userid='$userid' AND password='$code' LIMIT 1"; $result = mysql_query($query) or die("There's some problem with the query."); $row = mysql_fetch_assoc($result); if (!$row) { echo "<strong><font color=red>Your account could not be activated!</font></strong>"; } elseif ($row['activated'] == 0) { echo "<strong>Your account has been activated!</strong> You may login below!<br />"; } else { mysql_query("UPDATE users SET activated='1' WHERE userid='$userid' AND password='$code'");     echo "<strong>Your account has been activated!</strong> You may login below!<br />"; } ?>[/quote] was just wondering if that would work, for registering and activating a user. if it would work how do i use it ????
  3. Hi, I am starting a new website with php (DUH" lets not state the obvious here") and when someone comes to register on my website it says thank you for registering and you will recieve and email with 24 hours. my wife tried and i tried with 3 different email accounts (yahoo, hotmail, and vcn.com) and none of them recieved any emails back at all for registering on my website. Could someone please help me figure this out. The only that has been installed from the begining is phpnuke7.9 and 1 new theme. I would appreciate anyone's help thank you.
  4. What all doi  have to do to get it working do i just have to upload php nuke to the site and it will work ??
  5. Hi, I set up my website about a year ago, and now I am making a new one, i uploaded php nuke7.9 to the website and now im am getting something about an apache server has been setup, and when i go to www.teamcyberia.com/html/config.php or admin.php this is what i get: There seems to be a problem with the MySQL server, sorry for the inconvenience. We should be back shortly. could anyone help me please my website is http://www.teamcyeria.com i also need help with the config file and anything else that needs to be done thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.