Search results for: j.s. sc

Search order
...... : For some reason (i think it was an addtional "id"  ............  that I had inserted in the format section of the javascript file  ............  to "class" which tripped it up), the button is no longer  ............  out and the tag can now be used via the button. In my case [ispoil]...[/ispoil] ............ . But the wrapped element does not get its own div and class, that I defined in  ............  javascript file. Thus, the string is simply shown  ............  by the tags.   What do I need to do to let the java take  ............  a div for the wrapped element and let the tags disappear? ......
......  Arkadaşlar Eh portalı kudum sıkıntı yok ama hata mesajı doluyor ve sitede  ............  1 hata mesajı 100 hata 200 hata gibi çoğaalıyor   ilgili  ............  nasıl çözerim : https://prnt.sc/RfaZsq163QE0   Hata  ............  sitede gezindikçe aynı hatayı tekrarlıyor ilgili  ............  kodu resim link   https://prnt.sc/bql71onAg9ze  Çözümünü  ............  arkadaşlar yazarsa sevinirim  ......
......  I said, can I run the theme I used in 2.0.19 by  ............  it in the latest version   https://prnt.sc/k6mOgb_SeGCu _?  ......
...... Selam arkadaşlar 3-4 yıldır siteye el vurmadım 22  ............  bi sorun oluştu güncelleme yapmadığım içinmi oldu ? ............  kullandığım sürümüm 2.0.18 idi 2.0.19 upgrade yaptım hala yârım  ............  nasıl bir yol izleyip yapabilirim düzelmesi için  ............  ederim şimdiden  Ekran Görüntüsü linki -1 : https://prnt.sc/D79xqLVMUHvA  Ekran  ............  linki -2 : https://prnt.sc/SnOjyP_OkmsA   Yardımcı olacak  ......
......  am speaking of the logo/forum name which is set here  ............  the screenshot below. Thank you very much.  https:// ............ .sc/ ......
......  gibi 2.0.19 da kullandığım temayı https://prnt.sc/k6mOgb_SeGCu Son sürümde editliyerek  ......
...... Selam Arkadaşlar Bu Eh portalIN Resmi sitesi olan  ............ ://web-develop.ca Üye olmak için istenen sorular ingilizce   cevaplarını bilen varmı  ............  yazarsa üye olmak istiyorum ilgili resim linki https:// ............ .sc/JoeL8xs0gFh0   Not: Portal Sorunlarını hata  ......
#8
SMF 1.1.x Support / Cannot login to my forum
November 05, 2021, 04:57:20 AM by mic_comte
......  Hello, My old forum is still running on SMF 1.1.19, and since yesterday  ............  login anymore: http://forum.braquedubourbonnais.info/index.php?language=french-utf8 [nofollow]   ............  failing part is here:  In LogInOut.php, this test condition is  ............ :   // Challenge passed.  elseif ($_REQUEST['hash_passwrd'] ==  ............ ($user_settings['passwd'] . $sc))  $sha_passwd  ............ = $user_settings['passwd'];  The site is hosted on  ......
#9
SMF 2.1.x Support / CORS formatting
June 13, 2023, 02:19:18 AM by PrimalPrime
......  someone help me with an example of how to fill out  ............  CORS? Like say I want to allow sharing from something  ............ : https://softball-shoutbox-socket.onrender.com or https:/ ............ /softball-shoutbox-socket.onrender.com/socket.io   ............ ://prnt.sc/1t5jkA6Uo1T_  https://prnt.sc/-0MC3w9CYhPz   ......
......  Understanding SMF Security wiki page tells me to use the  ............  sesc (in the case of GET requests) or sc (in the  ............  of POST requests) as the name of the request variable  ............  for session checks. However, most SMF code seems to use  ............  dynamic name, $context['session_var'] instead, and the checkSession()  ............  treats sesc/sc as a fallback, but $context['session_var'] ............  isn't documented in the wiki. Which one should I use  ......
...... , I am still running SMF 2.13. The options in admin are  ............  Google CDN, jQuery CDN, Microsoft CDN, local, and custom URL  ............  the jQuery library.  Would it be better to use it  ............  on my own server if I have a really fast server? I know my  ............  would install if they can, if it isn't already installed.   ............  of admin panel setting: https://prnt.sc/xDQDiA- ......
#12
SMF 2.1.x Support / SCEditor goes bad
March 31, 2023, 09:53:08 AM by Tklad
......  everyone, I'm trying to install a new Theme on my 2.1.3 SMF Forum.  ............  & setup goes well but my SCEditor doesn't show the  ............ , for example  hxxp:prnt.sc/9O_UYHBAesrQ [nonactive] I am using https:// ............ .simplemachines.org/index.php?theme=3002 this theme.  ............  doesn't work even on creating a new topic. ......
......  there any documentation on this setting particularly for use with cloudfare (CF- ............ -IP)? Is this setting necessary just to use cloudfare's  ............ ? Could this setting possibly explain a cloudfare cookie being  ............  on my site, as seen in the web developer console?:    ............  of seeting: https://prnt.sc/IH6tZDy9qDOY  Cookie " ............ " has been rejected for invalid domain.   ......
......  site seems to load fine at https://chatfreespeech. ............  and after redirecting to https://chatfreespeech.com/forum/ however https:// ............ .web.dev says there is a 500 error as does https://gtmetrix. ............  and https://rankmath.com/. I tried repair_settings.php. No  ............ . Tried changing board url in settings.php to https://chatfreespeech.com/forum/.  ............  luck.  https://prnt.sc/aAm4Wz0iC2Uk https://prnt.sc/ ............  https://prnt.sc/re2i0yu5WEPD  Any ideas?  ......
......&nbsp; forum registration broke after updating it to the latest &nbsp;............&nbsp;. ): I'm not sure how to fix this, but installing a fresh &nbsp;............&nbsp; of the file only broke it more.&nbsp;&nbsp;When users try to register, they can fill out their &nbsp;............&nbsp;, but once they complete it, instead of registering them, it takes them back to &nbsp;............&nbsp; registration page and makes them do it all over again--&nbsp;............&nbsp;. D:&nbsp;&nbsp;http://www.spiritsoftheearth.net/smf/index.php?action=register &nbsp;............&nbsp;<-- this will allow you to replicate the issue.&nbsp;&nbsp;I don't &nbsp;............&nbsp; it's the register.php file itself. I run another SMF &nbsp;............&nbsp; and I used its register.php file to see if that fixed the &nbsp;............&nbsp;, and it didn't. But the registration works fine on that forum. So I'm at a loss!&nbsp;............&nbsp;&nbsp;&nbsp;register.php&nbsp;Code Select Expand&nbsp;<?php<br /><br />/**<br &nbsp;............&nbsp;/> * Simple Machines Forum (SMF)<br /> *<br /> * @&nbsp;............&nbsp; SMF<br /> * @author Simple Machines http://www.&nbsp;............&nbsp;.org<br /> * @copyright 2011 Simple Machines<br /> * @license http://www.&nbsp;............&nbsp;.org/about/smf/license.php BSD<br /> *<br /> * @version 2.0.18<&nbsp;............&nbsp; /> */<br /><br />if (!defined('SMF'))<br /> die('Hacking attempt...');<br /><br />/&nbsp;............&nbsp;* This file has two main jobs, but they really are one. &nbsp;............&nbsp; registers new<br /> members, and it helps the &nbsp;............&nbsp; moderate member registrations.<br /> Similarly, it handles account &nbsp;............&nbsp; as well.<br /><br /> void Register()<br /> // !!!<&nbsp;............&nbsp; /><br /> void Register2()<br /> // !!!<br /><br /> void Activate()<&nbsp;............&nbsp; !!!<br /><br /> void VerificationCode()<br /> // Show the verification code or let it hear.<br /><br &nbsp;............&nbsp;/> void RegisterCheckUsername()<br /> // !!!<br />*/<br /><br /&nbsp;............&nbsp;>// Begin the registration process.<br />function Register($&nbsp;............&nbsp;))<br />{<br /> global $txt, $boarddir, $context, $settings, $modSettings, $user_info;<br /> global $&nbsp;............&nbsp;, $scripturl, $smcFunc, $sourcedir, $smcFunc, $&nbsp;............&nbsp;;<br /><br /> // Is this an incoming AJAX check?<br /> if (isset($&nbsp;............&nbsp;['sa']) && $_GET['sa'] == 'usernamecheck')<br /> &nbsp;............&nbsp; RegisterCheckUsername();<br /><br /> // Check if the &nbsp;............&nbsp; has it disabled.<br /> if (!empty($modSettings['&nbsp;............&nbsp;']) && $modSettings['registration_method'] == 3)<br /> &nbsp;............&nbsp;('registration_disabled', false);<br /><br /> // If this &nbsp;............&nbsp; is an admin - redirect them to the admin &nbsp;............&nbsp; page.<br /> if (allowedTo('moderate_forum') && !$user_info['is_guest'])<br /> redirectexit('action=&nbsp;............&nbsp;;area=regcenter;sa=register');<br /> // You are not a guest, so you &nbsp;............&nbsp; a member - and members don't get to register twice!<br /> elseif (empty($&nbsp;............&nbsp;['is_guest']))<br /> redirectexit();<br /><br /> &nbsp;............&nbsp;('Login');<br /> loadTemplate('Register');<br /><br /> // Do we need them to agree to &nbsp;............&nbsp; registration agreement, first?<br /> $context['&nbsp;............&nbsp;'] = !empty($modSettings['requireAgreement']);<br /> $context['&nbsp;............&nbsp;'] = !empty($_SESSION['registration_agreed']);<br /> $context['&nbsp;............&nbsp;'] = !empty($modSettings['coppaAge']);<br /> $context['&nbsp;............&nbsp;'] = !empty($modSettings['requirePolicyAgreement']);<br /><br /> // &nbsp;............&nbsp; age restrictions?<br /> if ($context['show_coppa'])<br /> &nbsp;............&nbsp;{<br /> $context['skip_coppa'] = false;<br /> $context['&nbsp;............&nbsp;'] = sprintf($txt['agreement' . ($context['&nbsp;............&nbsp;'] ? '_policy' : '') . '_agree_coppa_above'], $modSettings['coppaAge']);<br /> $context['&nbsp;............&nbsp;'] = sprintf($txt['agreement' . ($context['&nbsp;............&nbsp;'] ? '_policy' : '') . '_agree_coppa_below'], $modSettings['coppaAge']);<br /> }<br /><br /> // What &nbsp;............&nbsp; are we at?<br /> $current_step = isset($_REQUEST['step']) ? (int) $_REQUEST['&nbsp;............&nbsp;['require_agreement'] ? 1 : 2);<br /><br /> // Does this user agree to the registation agreement?<br /&nbsp;............&nbsp;> if ($current_step == 1 && (isset($_POST['accept_agreement']) || &nbsp;............&nbsp;($_POST['accept_agreement_coppa'])))<br /> {<br /> $&nbsp;............&nbsp;['registration_passed_agreement'] = $_SESSION['&nbsp;............&nbsp;'] = true;<br /> $current_step = 2;<br /><br /> // Skip the coppa procedure &nbsp;............&nbsp; the user says he's old enough.<br /> if ($context['&nbsp;............&nbsp;'])<br /> {<br /> $_SESSION['skip_coppa'] = !empty($_POST['&nbsp;............&nbsp;']);<br /><br /> // Are they saying they're under age, while under age &nbsp;............&nbsp; is disabled?<br /> if (empty($modSettings['&nbsp;............&nbsp;']) && empty($_SESSION['skip_coppa']))<br /> {<br /> &nbsp;............&nbsp;'Login');<br /> fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['&nbsp;............&nbsp;']));<br /> }<br /> }<br /> }<br /> // Make sure they don't squeeze through without agreeing.<&nbsp;............&nbsp; /> elseif ($current_step > 1 && $context['&nbsp;............&nbsp;'] && !$context['registration_passed_agreement'])<br /> $current_step = &nbsp;............&nbsp;;<br /><br /> // Show the user the right form.<br /> $context['&nbsp;............&nbsp;'] = $current_step == 1 ? 'registration_agreement' : '&nbsp;............&nbsp;';<br /> $context['page_title'] = $current_step == 1 ? $txt['registration_agreement'] : $txt['&nbsp;............&nbsp;'];<br /><br /> // Add the register chain to the link tree.<br /> $context['&nbsp;............&nbsp;'][] = array(<br /> 'url' => $scripturl . '?action=register',<br /> 'name' => $&nbsp;............&nbsp;['register'],<br /> );<br /><br /> // If you have to &nbsp;............&nbsp; to the agreement, it needs to be fetched from the file.<br /> if ($context['&nbsp;............&nbsp;// Have we got a localized one?<br /> if (file_exists($boarddir . '/agreement.' . $user_info['&nbsp;............&nbsp;'] . '.txt'))<br /> $context['agreement'] = parse_bbc(file_get_contents($boarddir . '/agreement.' .&nbsp;............&nbsp; $user_info['language'] . '.txt'), true, 'agreement_' .&nbsp;............&nbsp; $user_info['language']);<br /> elseif (file_exists($&nbsp;............&nbsp;.txt'))<br /> $context['agreement'] = parse_bbc(file_get_contents($boarddir . '/agreement.&nbsp;............&nbsp;'), true, 'agreement');<br /> else<br /> $context['agreement'] = '';<br /> }<br />&nbsp;............&nbsp;<br /> if (!empty($modSettings['userLanguage']))<br /> {<br /> $&nbsp;............&nbsp; = empty($_SESSION['language']) ? $language : $_SESSION['&nbsp;............&nbsp;'];<br /><br /> // Do we have any languages?<br /> if (empty($context['languages']))<br /> &nbsp;............&nbsp;();<br /><br /> // Try to find our selected language.<br /> foreach ($context['&nbsp;............&nbsp;'] as $key => $lang)<br /> {<br /> $context['&nbsp;............&nbsp;'][$key]['name'] = strtr($lang['name'], array('-utf8' => ''));<br /><&nbsp;............&nbsp; /> // Found it!<br /> if ($selectedLanguage == $lang['filename'])<br /> $&nbsp;............&nbsp;['languages'][$key]['selected'] = true;<br /> }<br /> }<br />&nbsp;............&nbsp; you have to agree to the privacy policy, it needs to be loaded from the database.<br /> if ($&nbsp;............&nbsp; we got a localized one?<br /> if (!empty($modSettings['policy_' . $user_info['language']]))<br />&nbsp;............&nbsp; $context['policy'] = parse_bbc($modSettings['policy_' . $user_info['&nbsp;............&nbsp;']]);<br /> elseif (!empty($modSettings['policy_' . $language]))<&nbsp;............&nbsp; /> $context['policy'] = parse_bbc($modSettings['policy_' . $language]);<br /> &nbsp;............&nbsp;<br /> {<br /> loadLanguage('Errors');<br /> $context['policy'] = $txt['&nbsp;............&nbsp;'];<br /> }<br /> }<br /><br /> // Any custom fields we want filled in?<br /> require_once($&nbsp;............&nbsp; . '/Profile.php');<br /> loadCustomFields(0, 'register');<br /><br /> // Or any &nbsp;............&nbsp; ones?<br /> if (!empty($modSettings['&nbsp;............&nbsp;']))<br /> {<br /> require_once($sourcedir . '/Profile-Modify.php');<br /><br /> // &nbsp;............&nbsp; some important context.<br /> loadLanguage('&nbsp;............&nbsp; loadTemplate('Profile');<br /><br /> $context['user']['is_owner'] = true;<br /><br /> // Here, and &nbsp;............&nbsp; only, emulate the permissions the user would have to do this.<br /> $&nbsp;............&nbsp;['permissions'] = array_merge($user_info['permissions'], &nbsp;............&nbsp;', 'profile_extra_own'));<br /> $reg_fields = explode(',', $modSettings['registration_fields']&nbsp;............&nbsp;);<br /><br /> // We might have had some submissions on this front - go check.<br /> &nbsp;............&nbsp; ($reg_fields as $field)<br /> if (isset($_POST[$field]))<br /&nbsp;............&nbsp;> $cur_profile[$field] = $smcFunc['htmlspecialchars']($_POST[$field]);<br /><&nbsp;............&nbsp; /> // Load all the fields in question.<br /> setupProfileContext($&nbsp;............&nbsp;);<br /> }<br /><br /> // Generate a visual verification code to make sure the user is no &nbsp;............&nbsp;.<br /> if (!empty($modSettings['reg_verification']))<br /> {<br /> &nbsp;............&nbsp;($sourcedir . '/Subs-Editor.php');<br /> $&nbsp;............&nbsp; = array(<br /> 'id' => 'register',<br /> );<br /> $context['&nbsp;............&nbsp;] = create_control_verification($verificationOptions);<br /> $context['visual_verification_id'] = $&nbsp;............&nbsp;['id'];<br /> }<br /> // Otherwise we have nothing to show.<br /> else<br /> $&nbsp;............&nbsp;['visual_verification'] = false;<br /><br /> // Are &nbsp;............&nbsp; from an OpenID login attempt?<br /> if (!empty($_SESSION['openid']['verified']) && !empty($_SESSION['&nbsp;............&nbsp;']))<br /> {<br /> $context['openid'] = $_SESSION['openid']['openid_uri'];<br /> $context['&nbsp;............&nbsp;'] = $smcFunc['htmlspecialchars'](!empty($_POST['user']) ?&nbsp;............&nbsp; $_POST['user'] : $_SESSION['openid']['nickname']);<br />&nbsp;............&nbsp; $context['email'] = $smcFunc['htmlspecialchars'](!empty($_POST['email']) &nbsp;............&nbsp;? $_POST['email'] : $_SESSION['openid']['email']);<br /> }&nbsp;............&nbsp;<br /> // See whether we have some prefiled values.<br /> &nbsp;............&nbsp;> {<br /> $context += array(<br /> 'openid' => isset($_POST['openid_identifier']) ? $_POST['&nbsp;............&nbsp;'] : '',<br /> 'username' => isset($_POST['user']) ? $smcFunc['&nbsp;............&nbsp;']($_POST['user']) : '',<br /> 'email' => isset($_POST['&nbsp;............&nbsp;']) ? $smcFunc['htmlspecialchars']($_POST['email']) : '',<&nbsp;............&nbsp; /> );<br /> }<br /><br /> $context['announcements_ask'] = !empty($modSettings['force_gdpr']) || !&nbsp;............&nbsp;($modSettings['allow_disableAnnounce']);<br /> $context['&nbsp;............&nbsp;'] = isset($_POST['notify_announcements']) ? (bool) $&nbsp;............&nbsp;['notify_announcements'] : !empty($modSettings['announcements_default']);&nbsp;............&nbsp;<br /><br /> // !!! Why isn't this a simple set operation?<br /> // Were &nbsp;............&nbsp; any errors?<br /> $context['registration_errors'] = array();<&nbsp;............&nbsp; /> if (!empty($reg_errors))<br /> foreach ($reg_errors as $error)<br /> $&nbsp;............&nbsp;['registration_errors'][] = $error;<br />}<br /><br />// &nbsp;............&nbsp; register the member.<br />function Register2($&nbsp;............&nbsp; = false)<br />{<br /> global $scripturl, $txt, $&nbsp;............&nbsp;, $context, $sourcedir;<br /> global $user_info, $options, $&nbsp;............&nbsp;, $smcFunc;<br /><br /> // Start collecting together &nbsp;............&nbsp; errors.<br /> $reg_errors = array();<br /><br /> // Did &nbsp;............&nbsp; save some open ID fields?<br /> if ($verifiedOpenID &nbsp;............&nbsp;&& !empty($context['openid_save_fields']))<br /> {<br /> foreach ($context['&nbsp;............&nbsp;'] as $id => $value)<br /> $_POST[$id] = $value;<br />&nbsp;............&nbsp; }<br /><br /> // You can't register if it's disabled.<br /> if (!empty($&nbsp;............&nbsp;['registration_method']) && $modSettings['&nbsp;............&nbsp;'] == 3)<br /> fatal_lang_error('registration_disabled', false);<br /><br /> // Things &nbsp;............&nbsp; who have already confirmed their OpenID allegances via register.<br /> if (!$verifiedOpenID)<br /> {<&nbsp;............&nbsp; /> // Well, if you don't agree, you can't register.<br /> if ((!empty($modSettings['&nbsp;............&nbsp;']) || !empty($modSettings['requirePolicyAgreement'])) && empty($&nbsp;............&nbsp;['registration_agreed']))<br /> redirectexit();<br /><&nbsp;............&nbsp; /> // Make sure they came from *somewhere*, have a session.<br &nbsp;............&nbsp;/> if (!isset($_SESSION['old_url']))<br /> redirectexit('&nbsp;............&nbsp;=register');<br /><br /> // Are they under age, and &nbsp;............&nbsp; age users are banned?<br /> if (!empty($modSettings['&nbsp;............&nbsp;']) && empty($modSettings['coppaType']) && empty($_SESSION['&nbsp;............&nbsp;']))<br /> {<br /> // !!! This should be put in Errors, imho.<br /> &nbsp;............&nbsp;('Login');<br /> fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['&nbsp;............&nbsp;']));<br /> }<br /><br /> // Check whether the visual verification code was entered correctly.<br /> &nbsp;............&nbsp; if (!empty($modSettings['reg_verification']))<br /> {<br /> &nbsp;............&nbsp;($sourcedir . '/Subs-Editor.php');<br /> $&nbsp;............&nbsp; = array(<br /> 'id' => 'register',<br /> );<br /> $context['&nbsp;............&nbsp;] = create_control_verification($verificationOptions, true);<br /><br /> if (is_array($context['&nbsp;............&nbsp;']))<br /> {<br /> loadLanguage('Errors');<br /> foreach ($context['&nbsp;............&nbsp;'] as $error)<br /> $reg_errors[] = $txt['error_' . &nbsp;............&nbsp; /> }<br /> }<br /> }<br /><br /> foreach ($_POST as $key => $value)<br /> {<br /> if (!is_array($&nbsp;............&nbsp;[$key]))<br /> $_POST[$key] = htmltrim__recursive(str_replace(array("\&nbsp;............&nbsp;", "\r"), '', $_POST[$key]));<br /> }<br /> <br /> //Check Forum &nbsp;............&nbsp; if enabled<br /> if (!empty($modSettings['sfs_enabled'])) {<br /> if (SpammerCheck(&nbsp;............&nbsp;)) {<br /> loadLanguage('SFS');<br /> fatal_error(sprintf($txt['&nbsp;............&nbsp;'],$_POST['user'],$_POST['email'],$user_info['ip']), true);&nbsp;............&nbsp;/> }<br /> }<br /><br /> // Collect all extra registration fields someone might have filled in.<br /> &nbsp;............&nbsp;$possible_strings = array(<br /> 'website_url', '&nbsp;............&nbsp;'birthdate',<br /> 'time_format',<br /> 'buddy_list',<br /> 'pm_ignore_list',<br /> 'smiley_set',<&nbsp;............&nbsp; /> 'signature', 'personal_text', 'avatar',<br /> '&nbsp;............&nbsp;',<br /> 'secret_question', 'secret_answer',<br /> );<br /> $&nbsp;............&nbsp;(<br /> 'pm_email_notify',<br /> 'notify_types',<br /> 'icq',<br /> 'gender',<br /> 'id_theme'&nbsp;............&nbsp;,<br /> );<br /> $possible_floats = array(<br /> 'time_offset',<br /> )&nbsp;............&nbsp;;<br /> $possible_bools = array(<br /> 'notify_announcements',&nbsp;............&nbsp; 'notify_regularity', 'notify_send_body',<br /> 'hide_email', 'show_online',<br /&nbsp;............&nbsp;> );<br /><br /> if (isset($_POST['secret_answer']) && $_POST['&nbsp;............&nbsp;'] != '')<br /> $_POST['secret_answer'] = md5($_POST['secret_answer']);<&nbsp;............&nbsp; /><br /> // Needed for isReservedName() and registerMember().<br /> &nbsp;............&nbsp;($sourcedir . '/Subs-Members.php');<br /><br /> // &nbsp;............&nbsp;... even if we're not a mall.<br /> if (isset($_POST['real_name']) && (!empty($modSettings['&nbsp;............&nbsp;| allowedTo('moderate_forum')))<br /> {<br /> $_POST['real_name'] = trim(preg_replace('~[\t\n\r \x0B\&nbsp;............&nbsp;' . ($context['utf8'] ? ($context['server']['complex_preg_chars'] ? '\x{A0}\x{AD}\x{&nbsp;............&nbsp; . ']+~' . ($context['utf8'] ? 'u' : ''), ' ', $_POST['real_name']));<br /> if (trim($_POST['&nbsp;............&nbsp;']) != '' && !isReservedName($_POST['real_name']) && $smcFunc['&nbsp;............&nbsp;']($_POST['real_name']) < 60)<br /> $possible_strings[] =&nbsp;............&nbsp; 'real_name';<br /> }<br /><br /> if (isset($_POST['msn']) && preg_match('~^[0-9A-Za-z=_+\-&nbsp;............&nbsp;'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['msn']) != 0)<br /> $profile_strings[] = 'msn';<&nbsp;............&nbsp; /><br /> // Handle a string as a birthdate...<br /> if (isset($_POST['&nbsp;............&nbsp;']) && $_POST['birthdate'] != '')<br /> $_POST['birthdate'] = &nbsp;............&nbsp;('%Y-%m-%d', strtotime($_POST['birthdate']));<br /> // Or &nbsp;............&nbsp; parts...<br /> elseif (!empty($_POST['bday1']) && !&nbsp;............&nbsp;($_POST['bday2']))<br /> $_POST['birthdate'] = sprintf('&nbsp;............&nbsp;%04d-%02d-%02d', empty($_POST['bday3']) ? 0 : (int) $_POST['bday3'], (int) $&nbsp;............&nbsp;['bday1'], (int) $_POST['bday2']);<br /><br /> // By default assume &nbsp;............&nbsp; is hidden, only show it if we tell it to.<br /> $&nbsp;............&nbsp;['hide_email'] = !empty($_POST['allow_email']) ? 0 : 1;<br /><br /> // Validate &nbsp;............&nbsp; passed language file.<br /> if (isset($_POST['lngfile'&nbsp;............&nbsp;]) && !empty($modSettings['userLanguage']))<br /> {<br /> // Do we &nbsp;............&nbsp; any languages?<br /> if (empty($context['languages']))<br /> &nbsp;............&nbsp;();<br /><br /> // Did we find it?<br /> if (isset($context['languages'][$_POST['lngfile']]))<br /&nbsp;............&nbsp;> $_SESSION['language'] = $_POST['lngfile'];<br /> &nbsp;............&nbsp;<br /> unset($_POST['lngfile']);<br /> }<br /> else<br /> &nbsp;............&nbsp;($_POST['lngfile']);<br /><br /> // Some of these fields &nbsp;............&nbsp; may not want.<br /> if (!empty($modSettings['registration_fields']))<br /> {<br /> // &nbsp;............&nbsp; we might want some of them if the admin asks for them.<br /> $&nbsp;............&nbsp; = array('icq', 'msn', 'aim', 'yim', 'location', 'gender');<br /> $&nbsp;............&nbsp; = explode(',', $modSettings['registration_fields']);<br /><br /> $&nbsp;............&nbsp; = array_diff($standard_fields, $reg_fields);<br /><br /> // &nbsp;............&nbsp; is a little different<br /> if (!in_array('website',&nbsp;............&nbsp; $reg_fields))<br /> $exclude_fields = array_merge($&nbsp;............&nbsp;, array('website_url', 'website_title'));<br /><br /> // We &nbsp;............&nbsp; to accept signature on registration but it's being abused by &nbsp;............&nbsp; these days, so no more.<br /> $exclude_fields[] = '&nbsp;............&nbsp;';<br /> }<br /> else<br /> $exclude_fields = array('signature', 'icq'&nbsp;............&nbsp;, 'msn', 'aim', 'yim', 'location', 'gender', '&nbsp;............&nbsp;', 'website_title');<br /><br /> $possible_strings = &nbsp;............&nbsp;($possible_strings, $exclude_fields);<br /> $&nbsp;............&nbsp; = array_diff($possible_ints, $exclude_fields);<br /> $&nbsp;............&nbsp; = array_diff($possible_floats, $exclude_fields);<br /> $&nbsp;............&nbsp; = array_diff($possible_bools, $exclude_fields);<br /><br /> // Set &nbsp;............&nbsp; options needed for registration.<br /> $regOptions = &nbsp;............&nbsp;(<br /> 'interface' => 'guest',<br /> 'username' => !empty($_POST['user']) ? $&nbsp;............&nbsp;['user'] : '',<br /> 'email' => !empty($_POST['email']&nbsp;............&nbsp;) ? $_POST['email'] : '',<br /> 'password' => !empty($&nbsp;............&nbsp;['passwrd1']) ? $_POST['passwrd1'] : '',<br /> '&nbsp;............&nbsp;' => !empty($_POST['passwrd2']) ? $_POST['passwrd2'] : '',<br /> '&nbsp;............&nbsp;' => !empty($_POST['openid_identifier']) ? $_POST['&nbsp;............&nbsp;'] : '',<br /> 'auth_method' => !empty($_POST['authenticate']) ? $_POST['authenticate'] : '',<&nbsp;............&nbsp; /> 'check_reserved_name' => true,<br /> '&nbsp;............&nbsp;=> true,<br /> 'check_email_ban' => true,<br /> 'send_welcome_email' => !empty($modSettings['&nbsp;............&nbsp;']),<br /> 'require' => !empty($modSettings['coppaAge']) && !$verifiedOpenID && empty($&nbsp;............&nbsp;['skip_coppa']) ? 'coppa' : (empty($modSettings['&nbsp;............&nbsp;']) ? 'nothing' : ($modSettings['registration_method'] == 1 ? 'activation' &nbsp;............&nbsp;: 'approval')),<br /> 'extra_register_vars' => array(),<br /> 'theme_vars' => array(&nbsp;............&nbsp; /> );<br /><br /> // Include the additional options that might have been filled in.<br /> foreach ($&nbsp;............&nbsp; as $var)<br /> if (isset($_POST[$var]))<br /> $&nbsp;............&nbsp;['extra_register_vars'][$var] = $smcFunc['htmlspecialchars']($&nbsp;............&nbsp;[$var], ENT_QUOTES);<br /> foreach ($possible_ints as $var)<br /> &nbsp;............&nbsp; (isset($_POST[$var]))<br /> $regOptions['&nbsp;............&nbsp;'][$var] = (int) $_POST[$var];<br /> foreach ($possible_floats as $var)<&nbsp;............&nbsp; /> if (isset($_POST[$var]))<br /> $regOptions['&nbsp;............&nbsp;'][$var] = (float) $_POST[$var];<br /> foreach ($possible_bools as $var)<&nbsp;............&nbsp; /> if (isset($_POST[$var]))<br /> $regOptions['&nbsp;............&nbsp;'][$var] = empty($_POST[$var]) ? 0 : 1;<br /><br /> // Registration &nbsp;............&nbsp; are always default options...<br /> if (isset($_POST['&nbsp;............&nbsp;']))<br /> $_POST['options'] = isset($_POST['options']) ? $_POST['&nbsp;............&nbsp;'] + $_POST['default_options'] : $_POST['default_options'];<&nbsp;............&nbsp; /> $regOptions['theme_vars'] = isset($_POST['options']) && &nbsp;............&nbsp;($_POST['options']) ? $_POST['options'] : array();<br /><&nbsp;............&nbsp; the agreement and privacy policy<br /> $regOptions['theme_vars']['agreement_accepted'] = $regOptions[&nbsp;............&nbsp;'theme_vars']['policy_accepted'] = time();<br /><br /> // &nbsp;............&nbsp; sure they are clean, dammit!<br /> $regOptions['&nbsp;............&nbsp;'] = htmlspecialchars__recursive($regOptions['theme_vars']);<&nbsp;............&nbsp; /><br /> // If Quick Reply hasn't been set then set it to be shown but collapsed.&nbsp;............&nbsp;<br /> if (!isset($regOptions['theme_vars']['display_quick_reply'&nbsp;............&nbsp;]))<br /> $regOptions['theme_vars']['display_quick_reply'] = 1;<br /><&nbsp;............&nbsp; /> // Check whether we have fields that simply MUST be displayed?<br /> $request = $&nbsp;............&nbsp;['db_query']('', '<br /> SELECT col_name, field_name, field_type, &nbsp;............&nbsp;, mask, show_reg<br /> FROM {db_prefix}custom_fields<&nbsp;............&nbsp; /> WHERE active = {int:is_active}',<br /> array(<br /> 'is_active' => 1,<&nbsp;............&nbsp; /> )<br /> );<br /> $custom_field_errors = array();<br /> while ($row = $&nbsp;............&nbsp;['db_fetch_assoc']($request))<br /> {<br /> // Don't allow &nbsp;............&nbsp; of the theme variables.<br /> if (isset($regOptions['theme_vars'][$row['&nbsp;............&nbsp;']]))<br /> unset($regOptions['theme_vars'][$row['col_name']]);<&nbsp;............&nbsp; /><br /> // Not actually showing it then?<br /> if (!$row['show_reg'])<br />&nbsp;............&nbsp; /><br /> // Prepare the value!<br /> $value = isset($_POST['customfield'][$row['col_name']]) ? &nbsp;............&nbsp;($_POST['customfield'][$row['col_name']]) : '';<br /><br &nbsp;............&nbsp;/> // We only care for text fields as the others are valid to be empty.<br /> if (!&nbsp;............&nbsp;($row['field_type'], array('check', 'select', 'radio')))<br /> {<br /> // Is it too &nbsp;............&nbsp; ($row['field_length'] && $row['field_length'] < $smcFunc['strlen']($value))<br /> $&nbsp;............&nbsp;[] = array('custom_field_too_long', array($row['field_name'], $&nbsp;............&nbsp;['field_length']));<br /><br /> // Any masks to apply?<br /> if ($row['field_type'] == '&nbsp;............&nbsp;' && !empty($row['mask']) && $row['mask'] != 'none')<br /> {<br /> &nbsp;............&nbsp;//!!! We never error on this - just ignore it at the moment...<br /> if ($&nbsp;............&nbsp;['mask'] == 'email' && !empty($value) && (filter_var($&nbsp;............&nbsp;, FILTER_VALIDATE_EMAIL) === false || strlen($value) > 255))<br /> $&nbsp;............&nbsp;[] = array('custom_field_invalid_email', array($row['field_name'])&nbsp;............&nbsp;);<br /> elseif ($row['mask'] == 'number' && preg_match('~[^\d]&nbsp;............&nbsp;~', $value))<br /> $custom_field_errors[] = array('&nbsp;............&nbsp;', array($row['field_name']));<br /> elseif (substr($row['mask'], 0, 5) == 'regex' && trim(&nbsp;............&nbsp;$value) != '' && preg_match(substr($row['mask'], 5), $value) === 0)<br /> $&nbsp;............&nbsp;[] = array('custom_field_inproper_format', array($row['field_name'&nbsp;............&nbsp;]));<br /> }<br /> }<br /><br /> // Is this required but not there?<br /> if (trim($&nbsp;............&nbsp;) == '' && $row['show_reg'] > 1)<br /> $custom_field_errors[] = &nbsp;............&nbsp;('custom_field_empty', array($row['field_name']));<br />&nbsp;............&nbsp; }<br /> $smcFunc['db_free_result']($request);<br /><br /> // &nbsp;............&nbsp; any errors.<br /> if (!empty($custom_field_errors))<br /> {<&nbsp;............&nbsp; /> loadLanguage('Errors');<br /> foreach ($custom_field_errors as $error)&nbsp;............&nbsp;<br /> $reg_errors[] = vsprintf($txt['error_' . $error[0]], $error[1]&nbsp;............&nbsp;);<br /> }<br /><br /> // Lets check for other errors before trying to register &nbsp;............&nbsp; member.<br /> if (!empty($reg_errors))<br /> {<br /> $_REQUEST['step'] = 2;<br /> &nbsp;............&nbsp; Register($reg_errors);<br /> }<br /> // If they're &nbsp;............&nbsp; to use OpenID we need to validate them first.<br /> if (&nbsp;............&nbsp;($_SESSION['openid']['verified']) && !empty($_POST['&nbsp;............&nbsp;']) && $_POST['authenticate'] == 'openid')<br /> {<br /> // &nbsp;............&nbsp; do we need to save?<br /> $save_variables = array();<br /> &nbsp;............&nbsp; ($_POST as $k => $v)<br /> if (!in_array($k, array('sc'&nbsp;............&nbsp;, 'sesc', $context['session_var'], 'passwrd1', '&nbsp;............&nbsp;', 'regSubmit')))<br /> $save_variables[$k] = $v;<br /><&nbsp;............&nbsp; /> require_once($sourcedir . '/Subs-OpenID.php');<br /> &nbsp;............&nbsp;($_POST['openid_identifier'], false, $save_variables);<&nbsp;............&nbsp; /> }<br /> // If we've come from OpenID set up some default stuff.<br /> elseif ($&nbsp;............&nbsp; || (!empty($_POST['openid_identifier']) && $_POST['authenticate'] =&nbsp;............&nbsp;= 'openid'))<br /> {<br /> $regOptions['username'] = !empty($_POST['user']) && trim($&nbsp;............&nbsp;['user']) != '' ? $_POST['user'] : $_SESSION['openid'][&nbsp;............&nbsp;'nickname'];<br /> $regOptions['email'] = !empty($_POST['email']) && trim($_POST[&nbsp;............&nbsp;'email']) != '' ? $_POST['email'] : $_SESSION['openid']['email'];<br /> $&nbsp;............&nbsp;['auth_method'] = 'openid';<br /> $regOptions['openid'] = !empty($_POST['openid_identifier']) ? &nbsp;............&nbsp;$_POST['openid_identifier'] : $_SESSION['openid']['&nbsp;............&nbsp;'];<br /> }<br /><br /> $memberID = registerMember($regOptions, true);<br /><br /> // What &nbsp;............&nbsp; actually an error of some kind dear boy?<br /> if (is_array($memberID))<&nbsp;............&nbsp; /> {<br /> $reg_errors = array_merge($reg_errors, $memberID);<br /> $&nbsp;............&nbsp;['step'] = 2;<br /> return Register($reg_errors);<br &nbsp;............&nbsp;/> }<br /><br /> // Do our spam protection now.<br /> spamProtection('register'&nbsp;............&nbsp;);<br /><br /> // We'll do custom fields after as then we get to use the helper &nbsp;............&nbsp;!<br /> if (!empty($_POST['customfield']))<br /> {<br /> require_once($&nbsp;............&nbsp; . '/Profile.php');<br /> require_once($sourcedir . '/Profile-Modify.php');<br /> &nbsp;............&nbsp;($memberID, 'register');<br /> }<br /><br /> // If COPPA has been &nbsp;............&nbsp; then things get complicated, setup the template.<br /> if (!&nbsp;............&nbsp;($modSettings['coppaAge']) && empty($_SESSION['&nbsp;............&nbsp;('action=coppa;member=' . $memberID);<br /> // Basic template variable setup.<br /> elseif (!empty($&nbsp;............&nbsp;['registration_method']))<br /> {<br /> loadTemplate('&nbsp;............&nbsp; += array(<br /> 'page_title' => $txt['register'],<br /> 'title' => $txt['&nbsp;............&nbsp;'],<br /> 'sub_template' => 'after',<br /> 'description' => $&nbsp;............&nbsp;['registration_method'] == 2 ? $txt['&nbsp;............&nbsp;'] : $txt['activate_after_registration']<br /> );<br /> }<br /> else<br /> {<br /&nbsp;............&nbsp;('integrate_activate', array($regOptions['username']));<br /><br /> setLoginCookie(60 * $&nbsp;............&nbsp;['cookieTime'], $memberID, sha1(sha1(strtolower($regOptions['username']) . $&nbsp;............&nbsp;['password']) . $regOptions['register_vars']['&nbsp;............&nbsp;']));<br /><br /> redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['&nbsp;............&nbsp;()<br />{<br /> global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $&nbsp;............&nbsp;('Login');<br /><br /> if (empty($_REQUEST['u']) && empty($_POST['user']))<br /> {<br /> &nbsp;............&nbsp; (empty($modSettings['registration_method']) || $modSettings['&nbsp;............&nbsp;'] == 3)<br /> fatal_lang_error('no_access', false);<br /><br /> $context['member_id'] = 0;&nbsp;............&nbsp;<br /> $context['sub_template'] = 'resend';<br /> $context['&nbsp;............&nbsp;'] = $txt['invalid_activation_resend'];<br /> $context['can_activate'] = empty($&nbsp;............&nbsp;['registration_method']) || $modSettings['&nbsp;............&nbsp;'] == 1;<br /> $context['default_username'] = isset($_GET['user']) ? $_GET['user'] : '&nbsp;............&nbsp; /> }<br /><br /> // Get the code from the database...<br /> $request = $smcFunc['db_query']('', '<&nbsp;............&nbsp; /> SELECT id_member, validation_code, member_name, &nbsp;............&nbsp;, email_address, is_activated, passwd, lngfile<br /> FROM {&nbsp;............&nbsp;}members' . (empty($_REQUEST['u']) ? '<br /> WHERE &nbsp;............&nbsp; = {string:email_address} OR email_address = {string:&nbsp;............&nbsp;> LIMIT 1',<br /> array(<br /> 'id_member' => isset($_REQUEST['u']) ? (int) $_REQUEST['u'] : 0,<br &nbsp;............&nbsp;/> 'email_address' => isset($_POST['user']) ? $_POST['user'] : '',<&nbsp;............&nbsp; /> )<br /> );<br /><br /> // Does this user exist at all?<br /> if ($smcFunc['&nbsp;............&nbsp;']($request) == 0)<br /> {<br /> $context['sub_template'] = &nbsp;............&nbsp;';<br /> $context['page_title'] = $txt['invalid_userid'];<br /> $context['member_id'] = 0;<br /><br &nbsp;............&nbsp;/> return;<br /> }<br /><br /> $row = $smcFunc['db_fetch_assoc']($request);<br /> $smcFunc[&nbsp;............&nbsp;'db_free_result']($request);<br /><br /> // Change their email &nbsp;............&nbsp;? (they probably tried a fake one first :P.)<br /> if (isset($_POST['new_email'], $&nbsp;............&nbsp;['passwd']) && sha1(strtolower($row['member_name']) . $&nbsp;............&nbsp;['passwd']) == $row['passwd'] && ($row['is_activated'] =&nbsp;............&nbsp;= 0 || $row['is_activated'] == 2))<br /> {<br /> if (empty($&nbsp;............&nbsp;['registration_method']) || $modSettings['&nbsp;............&nbsp;'] == 3)<br /> fatal_lang_error('no_access', false);<br /><br /> // !!! Separate the &nbsp;............&nbsp;?<br /> if (filter_var($_POST['new_email'], FILTER_VALIDATE_EMAIL) === false)<&nbsp;............&nbsp; /> fatal_error(sprintf($txt['valid_email_needed'], &nbsp;............&nbsp;($_POST['new_email'])), false);<br /><br /> // Make &nbsp;............&nbsp; their email isn't banned.<br /> isBannedEmail($_POST['new_email'&nbsp;............&nbsp;], 'cannot_register', $txt['ban_register_prohibited']);<br /><br />&nbsp;............&nbsp; // Ummm... don't even dare try to take someone else's email!!<br /> $request = $smcFunc['&nbsp;............&nbsp;']('', '<br /> SELECT id_member<br /> FROM {db_prefix}members<br &nbsp;............&nbsp;/> WHERE email_address = {string:email_address}<br /> LIMIT 1',<br /> &nbsp;............&nbsp; array(<br /> 'email_address' => $_POST['new_email'],<br /> )<br /> );<br /&nbsp;............&nbsp;> // !!! Separate the sprintf?<br /> if ($smcFunc['&nbsp;............&nbsp;']($request) != 0)<br /> fatal_lang_error('email_in_use', &nbsp;............&nbsp;, array(htmlspecialchars($_POST['new_email'])));<br /> $&nbsp;............&nbsp;['db_free_result']($request);<br /><br /> updateMemberData($&nbsp;............&nbsp;['id_member'], array('email_address' => $_POST['new_email']));<br /> $row['&nbsp;............&nbsp;'] = $_POST['new_email'];<br /><br /> $email_change = true;<&nbsp;............&nbsp; /> }<br /><br /> // Resend the password, but only if the account wasn't &nbsp;............&nbsp; yet.<br /> if (!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'resend' && ($row['&nbsp;............&nbsp;'] == 0 || $row['is_activated'] == 2) && (!isset($_REQUEST['code']) ||&nbsp;............&nbsp; $_REQUEST['code'] == ''))<br /> {<br /> require_once($&nbsp;............&nbsp; . '/Subs-Post.php');<br /><br /> $replacements = array(&nbsp;............&nbsp; /> 'REALNAME' => $row['real_name'],<br /> 'USERNAME' => $row['member_name'],<br /> '&nbsp;............&nbsp;' => $scripturl . '?action=activate;u=' . $row['id_member'&nbsp;............&nbsp;'],<br /> 'ACTIVATIONLINKWITHOUTCODE' => $scripturl . '?action=activate;u=' . $row['id_member'&nbsp;............&nbsp;' => $row['validation_code'],<br /> 'FORGOTPASSWORDLINK' => $scripturl . '?action=reminder',<br /&nbsp;............&nbsp; );<br /><br /> $emaildata = loadEmailTemplate('resend_activate_message', $replacements, empty($row['&nbsp;............&nbsp;']) || empty($modSettings['userLanguage']) ? $language : $row['&nbsp;............&nbsp;']);<br /><br /> sendmail($row['email_address'], $emaildata['subject'&nbsp;............&nbsp;], $emaildata['body'], null, null, false, 0);<br /><br /> $context['page_title'] = $txt['&nbsp;............&nbsp;'];<br /><br /> // This will ensure we don't actually get an error &nbsp;............&nbsp; if it works!<br /> $context['error_title'] = '';<br /><br /> &nbsp;............&nbsp;(!empty($email_change) ? 'change_email_success' : 'resend_email_success', false);<br /> }<&nbsp;............&nbsp; /><br /> // Quit if this code is not right.<br /> if (empty($_REQUEST['&nbsp;............&nbsp;']) || $row['validation_code'] != $_REQUEST['code'])<br /> {<br /> if (!empty($row['&nbsp;............&nbsp;)<br /> fatal_lang_error('already_activated', false);<br /> elseif ($row['validation_code'] == '')<&nbsp;............&nbsp;('Profile');<br /> fatal_error($txt['registration_not_approved'] . ' <a href="' . $scripturl &nbsp;............&nbsp;. '?action=activate;user=' . $row['member_name'] . '">' . $txt['here'] . &nbsp;............&nbsp;'</a>.', false);<br /> }<br /><br /> $context['sub_template'] &nbsp;............&nbsp;/><br /> // Validation complete - update the database!<br /> updateMemberData($row['id_member'], array(&nbsp;............&nbsp;'is_activated' => 1, 'validation_code' => ''));<br /><&nbsp;............&nbsp; /> // Also do a proper member stat re-evaluation.<br /> &nbsp;............&nbsp;('member', false);<br /><br /> if (!isset($_POST['new_email']))<&nbsp;............&nbsp; /> {<br /> require_once($sourcedir . '/Subs-Post.php');<br /><br /> &nbsp;............&nbsp; += array(<br /> 'page_title' => $txt['registration_successful'],<br /> 'sub_template' => '&nbsp;............&nbsp;',<br /> 'default_username' => $row['member_name'],<br /> '&nbsp;............&nbsp;' => '',<br /> 'never_expire' => false,<br /> 'description' => $txt['activate_success']&nbsp;............&nbsp;<br /> );<br />}<br /><br />// This function will display the contact information for &nbsp;............&nbsp; forum, as well a form to fill in.<br />function CoppaForm()<&nbsp;............&nbsp; />{<br /> global $context, $modSettings, $txt, $smcFunc;<br /><br /> loadLanguage('&nbsp;............&nbsp;');<br /> loadTemplate('Register');<br /><br /> // No User ID??<br /> if (!&nbsp;............&nbsp;($_GET['member']))<br /> fatal_lang_error('no_access', false);<br /><br /> // Get the user details...<&nbsp;............&nbsp; /> $request = $smcFunc['db_query']('', '<br /> SELECT &nbsp;............&nbsp;<br /> FROM {db_prefix}members<br /> WHERE id_member = {int:id_member}<br /> &nbsp;............&nbsp; is_activated = {int:is_coppa}',<br /> array(<br /> &nbsp;............&nbsp; 'id_member' => (int) $_GET['member'],<br /> 'is_coppa' => 5,<br /> )<br /> );<br /> if ($smcFunc[&nbsp;............&nbsp;'db_num_rows']($request) == 0)<br /> fatal_lang_error('&nbsp;............&nbsp;', false);<br /> list ($username) = $smcFunc['&nbsp;............&nbsp;']($request);<br /> $smcFunc['db_free_result']($request);<br &nbsp;............&nbsp;/><br /> if (isset($_GET['form']))<br /> {<br /> // Some simple &nbsp;............&nbsp; stuff for the forum.<br /> $context['&nbsp;............&nbsp;'] = (!empty($modSettings['coppaPost']) ? $modSettings['coppaPost'] .&nbsp;............&nbsp; '<br /><br />' : '') . (!empty($modSettings['coppaFax']) ? $modSettings['coppaFax'] . '&nbsp;............&nbsp;<br />' : '');<br /> $context['forum_contacts'] = !empty($context['forum_contacts']) ? $context[&nbsp;............&nbsp;'forum_name_html_safe'] . '<br />' . $context['forum_contacts'] : '';&nbsp;............&nbsp;<br /><br /> // Showing template?<br /> if (!isset($_GET['dl']))<&nbsp;............&nbsp; /> {<br /> // Shortcut for producing underlines.<br /> $context[&nbsp;............&nbsp;'ul'] = '<u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&&nbsp;............&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&&nbsp;............&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u>';<br /> $&nbsp;............&nbsp;['template_layers'] = array();<br /> $context['sub_template'] = '&nbsp;............&nbsp;'];<br /> $context['coppa_body'] = str_replace(array('{PARENT_NAME}', '{CHILD_NAME}', '&nbsp;............&nbsp;{USER_NAME}'), array($context['ul'], $context['ul'], $&nbsp;............&nbsp;']);<br /> }<br /> // Downloading.<br /> else<br /> {<br /> // The data.<br /> $ul = ' &nbsp;............&nbsp; = "\r\n";<br /> $data = $context['forum_contacts'] . $crlf . $txt['coppa_form_address'] . ':' . $&nbsp;............&nbsp;. $crlf . $txt['coppa_form_body'];<br /> $data = str_replace(array('{PARENT_NAME}', '{CHILD_NAME}', '&nbsp;............&nbsp;{USER_NAME}', '<br>', '<br />'), array($ul, $ul, $&nbsp;............&nbsp;, $crlf, $crlf), $data);<br /><br /> // Send the headers.<br /> header('Connection: close'&nbsp;............&nbsp;);<br /> header('Content-Disposition: attachment; filename="approval.txt"');<&nbsp;............&nbsp; /> header('Content-Type: ' . ($context['browser']['is_ie'] || $context['browser']['is_opera'] ? &nbsp;............&nbsp;'application/octetstream' : 'application/octet-stream'));<br /> &nbsp;............&nbsp;));<br /><br /> echo $data;<br /> obExit(false);<br /> }<br /> }<br /> else<br /> {<br /> $&nbsp;............&nbsp;/> 'page_title' => $txt['coppa_title'],<br /> 'sub_template' => 'coppa',<br /> );<br /><br /> $&nbsp;............&nbsp;['coppa'] = array(<br /> 'body' => str_replace('{MINIMUM_AGE}', $modSettings['coppaAge'&nbsp;............&nbsp;], $txt['coppa_after_registration']),<br /> 'many_options' => !empty($&nbsp;............&nbsp;['coppaPost']) && !empty($modSettings['coppaFax']),<br /> '&nbsp;............&nbsp;' => empty($modSettings['coppaPost']) ? '' : $modSettings['&nbsp;............&nbsp;'],<br /> 'fax' => empty($modSettings['coppaFax']) ? '' : $modSettings['coppaFax'&nbsp;............&nbsp;],<br /> 'phone' => empty($modSettings['coppaPhone']) ? '' : str_replace('{&nbsp;............&nbsp;}', $modSettings['coppaPhone'], $txt['coppa_send_by_phone'])&nbsp;............&nbsp;['member'],<br /> );<br /> }<br />}<br /><br />// Show the verification code or let it hear.<br />&nbsp;............&nbsp; VerificationCode()<br />{<br /> global $sourcedir, $modSettings, $context, $scripturl;<br />&nbsp;............&nbsp;<br /> $verification_id = isset($_GET['vid']) ? $_GET['vid'] : '';<br /> $code &nbsp;............&nbsp;= $verification_id && isset($_SESSION[$verification_id . '_vv']) ? $&nbsp;............&nbsp;[$verification_id . '_vv']['code'] : (isset($_SESSION['visual_verification_code']) ? $&nbsp;............&nbsp;['visual_verification_code'] : '');<br /><br /> // &nbsp;............&nbsp; no code was generated or the session was lost.<br /> if (&nbsp;............&nbsp;\x02\x02\x44\x01\x00\x3B");<br /> }<br /><br /> // Show a window that will play the verification code.<&nbsp;............&nbsp; /> elseif (isset($_REQUEST['sound']))<br /> {<br /> &nbsp;............&nbsp;('Login');<br /> loadTemplate('Register');<br /><br /> $context['&nbsp;............&nbsp;'] = $scripturl . '?action=verificationcode;rand=' . md5(&nbsp;............&nbsp; : '') . ';format=.wav';<br /> $context['sub_template'] = 'verification_sound';<br /> $&nbsp;............&nbsp;['template_layers'] = array();<br /><br /> obExit();<br /> }<br /><&nbsp;............&nbsp; /> // If we have GD, try the nice code.<br /> elseif (empty($_REQUEST['format']))<br /> {<br /> &nbsp;............&nbsp;($sourcedir . '/Subs-Graphics.php');<br /><br /> if (&nbsp;............&nbsp;('gd', get_loaded_extensions()) && !showCodeImage($code))<br /> header('&nbsp;............&nbsp;/1.1 400 Bad Request');<br /><br /> // Otherwise just show a pre-&nbsp;............&nbsp; letter.<br /> elseif (isset($_REQUEST['letter']))<br /> {<br /> $&nbsp;............&nbsp;['letter'] = (int) $_REQUEST['letter'];<br /> if ($_REQUEST['letter'] > 0 &&&nbsp;............&nbsp; $_REQUEST['letter'] <= strlen($code) && !showLetterImage(&nbsp;............&nbsp;($code[$_REQUEST['letter'] - 1])))<br /> {<br /> header('&nbsp;............&nbsp;\x01\x00\x3B");<br /> }<br /> }<br /> // You must be up to no good.<br /> else<br /> {<br /> &nbsp;............&nbsp;\x44\x01\x00\x3B");<br /> }<br /> }<br /><br /> elseif ($_REQUEST['format'] === '.wav')<br /> {<br /> &nbsp;............&nbsp; require_once($sourcedir . '/Subs-Sound.php');<br /><br /> if (!&nbsp;............&nbsp;($code))<br /> header('HTTP/1.1 400 Bad Request');<br /> }<br /><br /> // We all die one day...<&nbsp;............&nbsp; /> die();<br />}<br /><br />// See if a username already exists.<br />function &nbsp;............&nbsp;()<br />{<br /> global $sourcedir, $smcFunc, $context, $txt;<br /><br /> // &nbsp;............&nbsp; is XML!<br /> loadTemplate('Xml');<br /> $context['&nbsp;............&nbsp;'] = 'check_username';<br /> $context['checked_username'] = &nbsp;............&nbsp;($_GET['username']) ? $_GET['username'] : '';<br /> $context[&nbsp;............&nbsp;'valid_username'] = true;<br /><br /> // Clean it up like &nbsp;............&nbsp; would.<br /> $context['checked_username'] = preg_replace('~[\t\n\r \x0B\0' . ($&nbsp;............&nbsp;['utf8'] ? ($context['server']['complex_preg_chars'] ? '\x{A0}\x{AD}\x{&nbsp;............&nbsp;['utf8'] ? 'u' : ''), ' ', $context['checked_username']);<br /> if ($smcFunc['strlen']($context['&nbsp;............&nbsp;']) > 25)<br /> $context['checked_username'] = $smcFunc['htmltrim']($smcFunc['substr'](&nbsp;............&nbsp;$context['checked_username'], 0, 25));<br /><br /> // Only these &nbsp;............&nbsp;,7}|x[0-9a-fA-F]{1,6});~', '', $context['checked_username'])) != 0 || $context['checked_username'] == &nbsp;............&nbsp;'_' || $context['checked_username'] == '|' || strpos($context['&nbsp;............&nbsp;'], '[code') !== false || strpos($context['checked_username'], '[/code')&nbsp;............&nbsp; !== false)<br /> $context['valid_username'] = false;<br />&nbsp;............&nbsp;<br /> if (stristr($context['checked_username'], $txt['&nbsp;............&nbsp;']) !== false)<br /> $context['valid_username'] = false;<br />&nbsp;............&nbsp;<br /> if (trim($context['checked_username']) == '')<br /> $context['valid_username'] &nbsp;............&nbsp;= false;<br /> else<br /> {<br /> require_once($&nbsp;............&nbsp; . '/Subs-Members.php');<br /> $context['valid_username'&nbsp;............&nbsp;] &= isReservedName($context['checked_username'], 0, &nbsp;............&nbsp;, false) ? 0 : 1;<br /> }<br />}<br /><br />function &nbsp;............&nbsp;()<br />{<br /> global $txt, $boarddir, $context, $settings, $modSettings, $user_info, $sourcedir;<br /&nbsp;............&nbsp;> <br /> $isSpammer=0;<br /> $emailSpam=$_POST['email'];<br /> &nbsp;............&nbsp;$ipSpam=$user_info['ip'];<br /> $usernameSpam=$_POST['&nbsp;............&nbsp;'];<br /> $response='';<br /> $url='http://www.stopforumspam.com/&nbsp;............&nbsp;?email=' . $emailSpam;<br /> <br /> require_once($sourcedir . '/Subs-&nbsp;............&nbsp;.php');<br /> <br /> $response = fetch_web_data($url);<br /> <br /> //Is &nbsp;............&nbsp; Spammer??<br /> if (strpos($response, "<appears>yes<&nbsp;............&nbsp;/appears>") > 0) $isSpammer=1;<br /> <br /> if (!$&nbsp;............&nbsp; && !empty($modSettings['sfs_ipcheck'])) { //If Not Spammer check &nbsp;............&nbsp; IP<br /> //Check IP Spammer<br /> $url='http://www.stopforumspam.com/&nbsp;............&nbsp;?ip=' . $ipSpam;<br /> <br /> $response = fetch_web_data($&nbsp;............&nbsp;);<br /><br /> //Is IP Spammer??<br /> if (strpos($response, "<&nbsp;............&nbsp;>yes</appears>") > 0) $isSpammer=1;<br /> }<br /> <br /&nbsp;............&nbsp;> if (!$isSpammer && !empty($modSettings['sfs_usernamecheck']&nbsp;............&nbsp;)) { //If Not Spammer check the username<br /> //Check Username &nbsp;............&nbsp;<br /> $url='http://www.stopforumspam.com/api?username=' . $usernameSpam;<&nbsp;............&nbsp; /> <br /> $response = fetch_web_data($url);<br /><br /> //Is IP &nbsp;............&nbsp;??<br /> if (strpos($response, "<appears>yes</appears>") > 0) $&nbsp;............&nbsp;=1;<br /> }<br /> <br /> return $isSpammer;<br />}<br /><br />?>&nbsp;......
#16
Modificaciones (Mods) / No me carga sitemap
May 01, 2022, 12:14:56 AM by Carlos1903
......&nbsp; instale optimus para el sitemap pero me sale asi&nbsp;&nbsp;&nbsp;............&nbsp;: https://prnt.sc/8jibSp7iiEc3&nbsp;&nbsp; https://tuwp.me/sitemap.&nbsp;......
#17
SMF 2.0.x Support / help me ?
January 09, 2022, 09:07:20 AM by ShaPkerCode
......&nbsp;, does anyone know how to leave my forum with this tab &nbsp;............&nbsp; members?&nbsp;&nbsp;&nbsp;&nbsp;Photo: hxxp:prnt.sc/26bqe [nonactive]&nbsp;......
#18
SMF 2.1.x Support / help text
March 11, 2022, 12:21:14 PM by grandseb59
......&nbsp;,&nbsp;&nbsp;When I click on the small blue question mark on the right, normally it &nbsp;............&nbsp; explanations. On the 2.1.1, it is empty.&nbsp;Is it a bug or did I &nbsp;............&nbsp; to check a box or did something stupid during the big update to 2.1.1?&nbsp;&nbsp;&nbsp;............&nbsp;:&nbsp;https://prnt.sc/&nbsp;......
#19
SMF 2.0.x Support / Can not delete Membergroup
August 05, 2021, 04:16:11 AM by skullmonkey
......&nbsp;,&nbsp;I want to delete a group I just created but its not possible. There are no &nbsp;............&nbsp; in it. I create it to test board creation permissions and I think it was &nbsp;............&nbsp; on Global Moderators group. &nbsp;This is the group:&nbsp;https://prnt.sc/&nbsp;............&nbsp;&nbsp;&nbsp;There is no Delete button next to Save button like for the &nbsp;............&nbsp; group.&nbsp;&nbsp;Thanks,&nbsp;S@&nbsp;......
#20
SMF 2.0.x Support / Dark ScrollBar
January 16, 2022, 04:44:42 AM by Anoni1337
......&nbsp; ! I have for example DarkReader extension for my browser and it always make this nice &nbsp;............&nbsp; scroll bar,now I want this kind of style on my &nbsp;............&nbsp;...So my question is which .css do I need to edit and &nbsp;............&nbsp; lines of code do I need to put it to look like this...&nbsp;............&nbsp; you &nbsp;&nbsp;Something like this: https://prnt.sc/&nbsp;......
Advertisement: