Sto cercando di realizzare una pagina di registrazione e di log in per il sito.
Un mio amico mi ha passato gli script (creati con CMS) che ha usato per creare log in e registrazione nel suo sito.
Come posso utilizzare questi codici per il mio sito creato in HTML?Codice:/* + ----------------------------------------------------------------------------+ | e107 website system | | ©Steve Dunstan 2001-2002 | http://e107.org | jalist@e107.org | | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | | $Source: /cvsroot/e107/e107_0.7/login.php,v $ | $Revision: 1.12 $ | $Date: 2007/03/05 21:35:01 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); $HEADER = ""; require_once(HEADERF); $use_imagecode = ($pref['logcode'] && extension_loaded("gd")); if ($use_imagecode) { require_once(e_HANDLER."secure_img_handler.php"); $sec_img = new secure_image; } if (!USER) { require_once(e_HANDLER."form_handler.php"); $rs = new form; $text = ""; $LOGIN_TABLE_LOGINMESSAGE = LOGINMESSAGE; $LOGIN_TABLE_USERNAME = ""; $LOGIN_TABLE_PASSWORD = ""; if ($use_imagecode) { $LOGIN_TABLE_SECIMG_LAN = LAN_LOGIN_13; $LOGIN_TABLE_SECIMG_HIDDEN = ""; $LOGIN_TABLE_SECIMG_SECIMG = $sec_img->r_image(); $LOGIN_TABLE_SECIMG_TEXTBOC = ""; } $LOGIN_TABLE_AUTOLOGIN = ""; $LOGIN_TABLE_AUTOLOGIN_LAN = LAN_LOGIN_8; $LOGIN_TABLE_SUBMIT = ""; if (!$LOGIN_TABLE) { if (file_exists(THEME."login_template.php")) { require_once(THEME."login_template.php"); } else { require_once(e_BASE.$THEMES_DIRECTORY."templates/login_template.php"); } } $text = preg_replace("/{(.*?)}/e", 'varset($1,"1")', $LOGIN_TABLE); echo preg_replace("/{(.*?)}/e", 'varset($1,"1")', $LOGIN_TABLE_HEADER); $login_message = LAN_LOGIN_3." | ".SITENAME; $ns->tablerender($login_message, $text, 'login_page'); $LOGIN_TABLE_FOOTER_USERREG = ' '; // In case no registration system enabled if ($pref['user_reg']) { $LOGIN_TABLE_FOOTER_USERREG = "".LAN_LOGIN_11.""; } echo preg_replace("/{([^ ]*?)}/e", 'varset($1,"1")', $LOGIN_TABLE_FOOTER); } else { echo " "; exit; } echo ""; $sql->db_Close(); ?>

LinkBack URL
About LinkBacks
