Location: PHPKode > projects > ProNuke. Postnuke To Oracle > postnuke/html/modules/NS-NewUser/user.php
<?php /* $Id: user.php,v 1.35 2001/12/08 01:03:19 nkame Exp $ */
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the Post-Nuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of this file:
// Purpose of this file:  new user routines
// ----------------------------------------------------------------------

$ModName = 'NS-NewUser';
modules_get_language();

function newuser_user_underage()
{
include("header.php");
                OpenTable();
        echo "<font class=\"pn-title\">"._SORRY."</font>";
        echo "<br><br>\n"
            ."<font class=\"pn-normal\">"._MUSTBE."<br>"
                        ."<br>"._CLICK."<a href=\"index.php\">"._HERE."</a> "._RETURN."</font><br>\n";
        CloseTable();
        include("footer.php");
}

function newuser_user_check_age($var) {
    global $sitename;
    include("header.php");
    OpenTable();

    echo "<center>"
        ."<font class=\"pn-title\">"._WELCOMETO." $sitename "._REGISTRATION."</font>"
        ."<br><br>\n"
        ."<font class=\"pn-normal\">"._MUSTBE."</font><br>\n"

        ."<a href=\"user.php?op=register&amp;module=NS-NewUser\">"
        .""._OVER13.""
        ."</a><br><br>"

        ."<font class=\"pn-normal\">"._CONSENT."</font><br><br>\n"

        ."<a href=\"user.php?op=underage&amp;module=NS-NewUser\">"
        .""._UNDER13.""
        ."</a><br>\n"

        ."</font></center>\n";

    CloseTable();
    include("footer.php");
}


function newuser_user_register() {
    global $system;
        include("header.php");
        OpenTable();
        echo "<form name=\"Register\" action=\"user.php\" method=\"post\">\n"
            ."<font class=\"pn-title\">"._REGNEWUSER."</font><br><br>\n"
            ."<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
            ."<tr><td><font class=\"pn-normal\">"._NICKNAME.": </font></td><td><input type=\"text\" name=\"uname\" size=\"26\" maxlength=\"25\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._EMAIL.": </font></td><td><input type=\"text\" name=\"email\" size=\"25\" maxlength=\"60\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._WEBSITE.": </font></td><td><input type=\"text\" name=\"url\" size=\"25\" maxlength=\"255\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._AVATAR.": </font></td><td>[ <a class=\"pn-normal\" href=\"user.php?op=avatarlist&amp;module=NS-NewUser\">"._LIST."</a> ]&nbsp;&nbsp;\n"
            ."<select name=\"user_avatar\" onChange=\"showimage()\">\n";
        $direktori = "images/avatar";
        $handle=opendir($direktori);
        while ($file = readdir($handle)) {
            $filelist[] = $file;
        }
        asort($filelist);
        while (list ($key, $file) = each ($filelist)) {
            ereg(".png|.gif|.jpg",$file);
            if ($file == "." || $file == "..") {
                $a=1;
            } else {
                echo "<option value=\"$file\">$file</option>\n";
            }
        }
        echo "</select>&nbsp;&nbsp;<img src=\"images/avatar/blank.gif\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\">\n"
            ."</td></tr>\n"
            ."<tr><td><br><font class=\"pn-normal\">" . _TIMEZONEOFFSET . ":</font></td><td><select name=\"timezoneoffset\" style='font size:10px'>\n"
            ."<option value=\"0\""; if ($timezone_offset==0) { echo "selected"; } echo " >(GMT -12:00 hours) Eniwetok, Kwajalein</option>\n"
            ."<option value=\"1\""; if ($timezone_offset==1) { echo "selected"; } echo " >(GMT -11:00 hours) Midway Island, Samoa</option>\n"
            ."<option value=\"2\""; if ($timezone_offset==2) { echo "selected"; } echo " >(GMT -10:00 hours) Hawaii</option>\n"
            ."<option value=\"3\""; if ($timezone_offset==3) { echo "selected"; } echo " >(GMT -9:00 hours) Alaska</option>\n"
            ."<option value=\"4\""; if ($timezone_offset==4) { echo "selected"; } echo " >(GMT -8:00 hours) Pacific Time (US & Canada)</option>\n"
            ."<option value=\"5\""; if ($timezone_offset==5) { echo "selected"; } echo " >(GMT -7:00 hours) Mountain Time (US & Canada)</option>\n"
            ."<option value=\"6\""; if ($timezone_offset==6) { echo "selected"; } echo " >(GMT -6:00 hours) Central Time (US & Canada), Mexico City</option>\n"
            ."<option value=\"7\""; if ($timezone_offset==7) { echo "selected"; } echo " >(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito</option>\n"
            ."<option value=\"8\""; if ($timezone_offset==8) { echo "selected"; } echo " >(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz</option>\n"
            ."<option value=\"8.5\""; if ($timezone_offset==8.5) { echo "selected"; } echo " >(GMT -3:30 hours) Newfoundland</option>\n"
            ."<option value=\"9\""; if ($timezone_offset==9) { echo "selected"; } echo " >(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown</option>\n"
            ."<option value=\"10\""; if ($timezone_offset==10) { echo "selected"; } echo " >(GMT -2:00 hours) Mid-Atlantic</option>\n"
            ."<option value=\"11\""; if ($timezone_offset==11) { echo "selected"; } echo " >(GMT -1:00 hours) Azores, Cape Verde Islands</option>\n"
            ."<option value=\"12\""; if ($timezone_offset==12) { echo "selected"; } echo " >(GMT) Western Europe Time, London, Lisbon, Casablanca, Monrovia</option>\n"
            ."<option value=\"13\""; if ($timezone_offset==13) { echo "selected"; } echo " >(GMT +1:00 hours) CET(Central Europe Time), Brussels, Copenhagen, Madrid, Paris</option>\n"
            ."<option value=\"14\""; if ($timezone_offset==14) { echo "selected"; } echo " >(GMT +2:00 hours) EET(Eastern Europe Time), Kaliningrad, South Africa</option>\n"
            ."<option value=\"15\""; if ($timezone_offset==15) { echo "selected"; } echo " >(GMT +3:00 hours) Baghdad, Kuwait, Riyadh, Moscow, St. Petersburg</option>\n"
            ."<option value=\"15.5\""; if ($timezone_offset==15.5) { echo "selected"; } echo " >(GMT +3:30 hours) Tehran</option>\n"
            ."<option value=\"16\""; if ($timezone_offset==16) { echo "selected"; } echo " >(GMT +4:00 hours) Abu Dhabi, Muscat, Baku, Tbilisi</option>\n"
            ."<option value=\"16.5\""; if ($timezone_offset==16.5) { echo "selected"; } echo " >(GMT +4:30 hours) Kabul</option>\n"
            ."<option value=\"17\""; if ($timezone_offset==17) { echo "selected"; } echo " >(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent</option>\n"
            ."<option value=\"17.5\""; if ($timezone_offset==17.5) { echo "selected"; } echo " >(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi</option>\n"
            ."<option value=\"18\""; if ($timezone_offset==18) { echo "selected"; } echo " >(GMT +6:00 hours) Almaty, Dhaka, Colombo</option>\n"
            ."<option value=\"19\""; if ($timezone_offset==19) { echo "selected"; } echo " >(GMT +7:00 hours) Bangkok, Hanoi, Jakarta</option>\n"
            ."<option value=\"20\""; if ($timezone_offset==20) { echo "selected"; } echo " >(GMT +8:00 hours) Beijing, Perth, Singapore, Hong Kong, Chongqing, Urumqi, Taipei</option>\n"
            ."<option value=\"21\""; if ($timezone_offset==21) { echo "selected"; } echo " >(GMT +9:00 hours) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>\n"
            ."<option value=\"21.5\""; if ($timezone_offset==21.5) { echo "selected"; } echo " >(GMT +9:30 hours) Adelaide, Darwin</option>\n"
            ."<option value=\"22\""; if ($timezone_offset==22) { echo "selected"; } echo " >(GMT +10:00 hours) EAST(East Australian Standard)</option>\n"
            ."<option value=\"23\""; if ($timezone_offset==23) { echo "selected"; } echo " >(GMT +11:00 hours) Magadan, Solomon Islands, New Caledonia</option>\n"
            ."<option value=\"24\""; if ($timezone_offset==24) { echo "selected"; } echo " >(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island</option>\n"
            ."</select></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._ICQ.": </font></td><td><input type=\"text\" name=\"user_icq\" size=\"20\" maxlength=\"20\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._AIM.": </font></td><td><input type=\"text\" name=\"user_aim\" size=\"20\" maxlength=\"20\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._YIM.": </font></td><td><input type=\"text\" name=\"user_yim\" size=\"20\" maxlength=\"20\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._MSNM.": </font></td><td><input type=\"text\" name=\"user_msnm\" size=\"20\" maxlength=\"20\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._LOCATION.": </font></td><td><input type=\"text\" name=\"user_from\" size=\"25\" maxlength=\"60\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._OCCUPATION.":</font> </td><td><input type=\"text\" name=\"user_occ\" size=\"25\" maxlength=\"60\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._INTERESTS.": </font></td><td><input type=\"text\" name=\"user_intrest\" size=\"25\" maxlength=\"255\"></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._OPTION.":</font> </td><td><INPUT TYPE=\"CHECKBOX\" NAME=\"user_viewemail\" VALUE=\"1\"><font class=\"pn-normal\"> "._ALLOWEMAILVIEW."</font></td></tr>\n"
            ."<tr><td><font class=\"pn-normal\">"._SIGNATURE.": </font></td><td><TEXTAREA NAME=\"user_sig\" ROWS=\"6\" COLS=\"45\"></TEXTAREA></td></tr>\n"
            ."<tr><td>\n"
            ."<input type=\"hidden\" name=\"module\" value=\"NS-NewUser\">\n"
            ."<input type=\"hidden\" name=\"op\" value=\"confirmnewuser\">\n"
            ."<input type=\"submit\" value=\""._NEWUSER."\">\n"
            ."</td></tr></table>\n"
            ."</form>\n"
            ."<br>\n";
            if ($system==0) { echo "<font class=\"pn-normal\">" . _PASSWILLSEND . "</font><br><br>\n"; }
            echo "<font class=\"pn-normal\">"._COOKIEWARNING."</font><br>\n"
            ."<font class=\"pn-normal\">"._ASREGUSER."</font><br>\n"
            ."<font class=\"pn-normal\"><ul>\n"
            ."<li>"._ASREG1."\n"
            ."<li>"._ASREG2."\n"
            ."<li>"._ASREG3."\n"
            ."<li>"._ASREG4."\n"
            ."<li>"._ASREG5."\n"
            ."<li>"._ASREG6."\n"
            ."<li>"._ASREG7."\n"
            ."</ul></font>\n"
            ."<font class=\"pn-title\">"._REGISTERNOW."</font><br>\n"
            ."<font class=\"pn-normal\">"._WEDONTGIVE."</font>\n";
        CloseTable();
        echo "<br>";
include("footer.php");
}

function userCheck($var)
{
    global $stop, $pntable, $dbconn;
    $uname = $var['uname'];
    $email = $var['email'];
    $url = $var['url'];
    
	$res = pn_validation_mail($email);
    if($res == -1) 
		$stop = "<center><font class=\"pn-title\">"._ERRORINVEMAIL."</center></font><br>";
	else
		$var['email'] = $res;
	
	// nkame: the url is not mandatory !!
	$res = pn_validation_url($url, 0);
	 if($res == -1) 
		$stop = "<center><font class=\"pn-title\">"._ERRORINVURL."</center></font><br>";
	else
		$var['url'] = $res;

    // Here we test the uname. Any value is possible but space.
    // On special character sets you might configure the server.
    // (was bug #455288)
    if ((!$uname) || !(ereg("^[[:print:]]+",$uname) && !ereg("[[:space:]]",$uname))) {
    /*if ((!$uname) || ($uname=="") || (ereg("[^a-zA-Z0-9_-]",$uname))) {*/
        $stop = "<center><font class=\"pn-title\">"._ERRORINVNICK."</center></font><br>";
    }
    if (strlen($uname) > 25) {
        $stop = "<center><font class=\"pn-title\">"._NICK2LONG."</center></font>";
    }
    if (preg_match('/((root)|(adm)|(linux)|(webmaster)|(admin)|(god)|(administrator)|(administrador)|(nobody)|(anonymous)|(anonimo)|(anóîimo)|(operator))/iAD',$uname)) {
        $stop = "<center><font class=\"pn-title\">"._NAMERESERVED."</center></font>";
    }
    if (strrpos($uname,' ') > 0) {
        $stop = "<center><font class=\"pn-title\">"._NICKNOSPACES."</center></font>";
    }
    $column = &$pntable['users_column'];
    $existinguser = $dbconn->Execute("SELECT $column[uname] FROM $pntable[users] WHERE $column[uname]='$uname'");
    if (!$existinguser->EOF) {
        $stop = "<center><font class=\"pn-title\">"._NICKTAKEN."</center></font><br>";
    }
    $existinguser->Close();
    $existinguser = $dbconn->Execute("SELECT $column[email] FROM $pntable[users] WHERE $column[email]='$email'");
    if (!$existinguser->EOF) {
        $stop = "<center><font class=\"pn-title\">"._EMAILREGISTERED."</center></font><br>";
    }
    $existinguser->Close();
    return($stop);
}

function newuser_user_confirmNewUser($var)
{
    global $stop, $EditedMessage;
    include("header.php");
    filter_text($var['uname']);
    $var['uname'] = $EditedMessage;
    if($var['user_viewemail'] == 1) {
        $var['user_viewemail'] = "1";
        $var['femail'] = $var['email'];
    } else {
        $var['user_viewemail'] = "0";
        $var['femail'] = "-";
    }
    if (!$stop) {
        OpenTable();
        echo "<font class=\"pn-normal\">"._USERNAME.": $var[uname]<br>"
            .""._EMAIL.": ".$var['email']."<br></font>\n";
        if (($var['user_avatar']) || ($var['user_avatar'] != "")) {
            echo "<font class=\"pn-normal\">"._AVATAR.": </font><img src=\"images/avatar/$var[user_avatar]\" alt=\"\"><br>\n";
        }
        if (($var['url']) || ($var['url'] != "")) {
            echo "<font class=\"pn-normal\">"._WEBSITE.": $var[url]</font><br>\n";
        }
        if (($var['user_icq']) || ($var['user_icq'] != "")) {
            echo "<font class=\"pn-normal\">"._ICQ.": $var[user_icq]</font><br>\n";
        }
        if (($var['user_aim']) || ($var['user_aim'] != "")) {
            echo "<font class=\"pn-normal\">"._AIM.": $var[user_aim]</font><br>\n";
        }
        if (($var['user_yim']) || ($var['user_yim'] != "")) {
            echo "<font class=\"pn-normal\">"._YIM.": $var[user_yim]</font><br>\n";
        }
        if (($var['user_msnm']) || ($var['user_msnm'] != "")) {
            echo "<font class=\"pn-normal\">"._MSNM.": $var[user_msnm]</font><br>\n";
        }
        $vuser_from = stripslashes($var[user_from]);
        $vuser_occ = stripslashes($var[user_occ]);
        $vuser_sig = stripslashes($var[user_sig]);
        $vuser_intrest = stripslashes($var[user_intrest]);
        if (($var['user_from']) ||  ($var['user_from'] != "")) {
            echo "<font class=\"pn-normal\">"._LOCATION.": $vuser_from</font><br>\n";
        }
        if (($var['user_occ']) || ($var['user_occ'] != "")) {
            echo "<font class=\"pn-normal\">"._OCCUPATION.": $vuser_occ</font><br>\n";
        }
        if (($var['user_intrest']) || ($var['user_intrest'] != "")) {
            echo "<font class=\"pn-normal\">"._INTERESTS.": $vuser_intrest</font><br>\n";
        }
        if (($var['user_sig']) || ($var['user_sig'] != "")) {
            echo "<font class=\"pn-normal\">"._SIGNATURE.": $vuser_sig</font><br>\n";
        }
        echo "<form action=\"user.php\" method=\"post\">"
            ."<input type=\"hidden\" name=\"uname\" value=\"$var[uname]\">"
            ."<input type=\"hidden\" name=\"email\" value=\"$var[email]\">"
            ."<input type=\"hidden\" name=\"femail\" value=\"$var[femail]\">"
            ."<input type=\"hidden\" name=\"user_avatar\" value=\"$var[user_avatar]\">"
            ."<input type=\"hidden\" name=\"user_icq\" value=\"$var[user_icq]\">"
            ."<input type=\"hidden\" name=\"url\" value=\"$var[url]\">"
            ."<input type=\"hidden\" name=\"user_from\" value=\"$var[user_from]\">"
            ."<input type=\"hidden\" name=\"user_occ\" value=\"$var[user_occ]\">"
            ."<input type=\"hidden\" name=\"user_intrest\" value=\"$var[user_intrest]\">"
            ."<input type=\"hidden\" name=\"user_sig\" value=\"$var[user_sig]\">"
            ."<input type=\"hidden\" name=\"user_aim\" value=\"$var[user_aim]\">"
            ."<input type=\"hidden\" name=\"user_yim\" value=\"$var[user_yim]\">"
            ."<input type=\"hidden\" name=\"user_msnm\" value=\"$var[user_msnm]\">"
            ."<input type=\"hidden\" name=\"timezoneoffset\" value=\"$var[timezoneoffset]\">"
            ."<input type=\"hidden\" name=\"user_viewemail\" value=\"$var[user_viewemail]\">"
            ."<input type=\"hidden\" name=\"op\" value=\"finishnewuser\">"
            ."<input type=\"hidden\" name=\"module\" value=\"NS-NewUser\">"
            ."<input type=\"submit\" value=\""._FINISH."\"></form>";
        CloseTable();
    } else {
        OpenTable();
        echo "<center><font class=\"pn-title\">Registration Error!</font><br><br>";
        echo "<font class=\"pn-normal\">$stop<br>"._GOBACK."</font></center>";
        CloseTable();
    }
    include("footer.php");
}

function newuser_user_avatarlist()
{
    include("header.php");
    Opentable();
    echo "<center><font class=\"pn-title\">"._AVAILABLEAVATARS."</font><br><br>";
    $direktori = "images/avatar";
    $handle = opendir($direktori);
    while ($file = readdir($handle)) {
        $filelist[] = $file;
    }
    asort($filelist);
    $temcount = 1;
    while (list ($key, $file) = each ($filelist)) {
        if (ereg(".png|.gif|.jpg",$file)) {
            if ($file == "." || $file == "..") {
                $a=1;
            } else {
                echo "<img src=\"images/avatar/$file\" border=\"0\" width=\"32\" height=\"32\" alt=\"$file\" hspace=\"10\" vspace=\"10\" title=$file >";
            }
            if ($temcount == 10) {
                echo "<br>";
                $temcount -= 10;
            }
            $temcount ++;
        }
    }
    echo "<br><br><br>"
        ."<font class=\"pn-normal\">"._GOBACK."</font>"
        ."</center>";
    CloseTable();
    include("footer.php");
}

function newuser_user_finishnewuser($var)
{
    global $stop, $makepass, $EditedMessage, $system, $adminmail, $sitename, $Default_Theme, $pntable, $dbconn, $pnconfig;

    csrfcheck();

    include("header.php");
    userCheck($var);
    $user_regdate = date("M d, Y");
    if (!isset($stop)) {
        $var['url'] = $good_url;
        $makepass = makepass();
        $cryptpass = md5($makepass);
        $var[user_from] = stripslashes(FixQuotes($var[user_from]));
        $var[user_occ] = stripslashes(FixQuotes($var[user_occ]));
        $var[user_sig] = stripslashes(FixQuotes($var[user_sig]));
        $var[user_intrest] = stripslashes(FixQuotes($var[user_intrest]));

// FTO : Add SEQ suffix to avoid conflict name with ORACLE
        $uid = $dbconn->GenId("{$pntable['users']}_SEQ");

        $column = &$pntable['users_column'];
        $result = $dbconn->Execute("INSERT INTO $pntable[users] ($column[name], $column[uname], $column[email],
                           $column[femail], $column[url], $column[user_avatar], $column[user_regdate], $column[user_icq],
                           $column[user_occ], $column[user_from], $column[user_intrest], $column[user_sig],
                           $column[user_viewemail], $column[user_theme], $column[user_aim], $column[user_yim],
                           $column[user_msnm], $column[pass], $column[storynum], $column[umode], $column[uorder],
                           $column[thold], $column[noscore], $column[bio], $column[ublockon], $column[ublock],
                           $column[theme], $column[commentmax], $column[counter], $column[timezone_offset])
                           VALUES ('','$var[uname]','$var[email]','$var[femail]','$var[url]','$var[user_avatar]',
                           '$var[user_regdate]','$var[user_icq]','$var[user_occ]','$var[user_from]',
                           '$var[user_intrest]','$var[user_sig]','$var[user_viewemail]','',
                           '$var[user_aim]','$var[user_yim]','$var[user_msnm]','$cryptpass',10,'',0,0,0,'',0,'','',
                           '$commentlimit', '0', $var[timezoneoffset])");
        if($dbconn->ErrorNo()<>0) {
            echo $dbconn->ErrorNo(). ": ".$dbconn->ErrorMsg(). "<br>";
            error_log ($dbconn->ErrorNo(). ": ".$dbconn->ErrorMsg(). "<br>");
        } else {
            // get the generated id
            $uid = $dbconn->PO_Insert_ID($pntable[users],$column[uid]);
            // Add user to group
            $column = &$pntable['groups_column'];
            $result = $dbconn->Execute("SELECT $column[gid]
                                      FROM $pntable[groups]
                                      WHERE $column[name]='$pnconfig[defaultgroup]'");
            if($dbconn->ErrorNo()<>0) {
                echo $dbconn->ErrorNo(). "Get default group: ".$dbconn->ErrorMsg(). "<br>";
                error_log ($dbconn->ErrorNo(). "Get default group: ".$dbconn->ErrorMsg(). "<br>");
            } else {
                if ($result->PO_RecordCount() == 1) {
                    list($gid) = $result->fields;
                    $result->Close();
                    $column = &$pntable['group_membership_column'];
                    $result = $dbconn->Execute("INSERT INTO $pntable[group_membership] ($column[gid], $column[uid])
                                              VALUES ($gid, $uid)");
                    if($dbconn->ErrorNo()<>0) {
                        echo $dbconn->ErrorNo(). "Create default group membership: ".$dbconn->ErrorMsg(). "<br>";
                        error_log ($dbconn->ErrorNo(). "Create default group membership: ".$dbconn->ErrorMsg(). "<br>");
                    }
                }
                $message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($var[email]) "._TOREGISTER." $sitename. "._FOLLOWINGMEM."\n\n"._UNICKNAME." $var[uname]\n"._UPASSWORD." $makepass";
                $subject=""._USERPASS4." $var[uname]";
                $from="$adminmail";
                if ($system == 1) {
                    echo "<table align=\"center\"><tr><td><font class=\"pn-normal\">"._YOURPASSIS." <b>$makepass</b></font><br>";
                    echo "<a class=\"pn-normal\" href=\"user.php?module=NS-User&amp;op=login&amp;uname=$var[uname]&amp;pass=$makepass&amp;url=user.php\">"._LOGIN."</a><font class=\"pn-normal\"> "._2CHANGEINFO."</font></td></tr></table>";
                } else {
// 11-09-01 eugeniobaldi not compliant with PHP < 4.0.5
//                    mail($var['email'], $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion(), "-f$from");
                    mail($var['email'], $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
                    OpenTable();
                    echo "<font class=\"pn-normal\">"._YOUAREREGISTERED."</font>";
                    CloseTable();
                }
            }
        }
    } else {
        echo "$stop";
    }
    include("footer.php");
}

?>
Return current item: ProNuke. Postnuke To Oracle