Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevkov: 4 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Password security

Registrovaný: 01.05.05
Príspevky: 13348
Témy: 1496
Bydlisko: Bratislava
Príspevok NapísalOffline : 12.12.2006 2:03

Kód:
##############################################################
## MOD Title: Password security
## MOD Author: Underhill <webmaster@underhill.de> (N/A) http://www.underhill.de/
## MOD Description: When a new passord is entered, the user will receive a JavaScript warning
## MOD Version: 1.1.1
##
## Installation Level: easy
## Installation Time: 5 minutes
## Files To Edit:
##      includes/usercp_register.php
##      templates/subSilver/profile_add_body.tpl
##      language/lang_english/lang_main.php
##      language/lang_english/lang_faq.php
## Included Files: N/A
## Demo: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This modification was built for use with the phpBB template "subSilver"
##
## Tip: How to clear the warning after entering the new password?
## Tips-Download: http://www.underhill.de/downloads/phpbb2mods/passwordsecuritytips.txt
##
## Screenshot: http://www.underhill.de/downloads/phpbb2mods/passwordsecurity.png
## Download: http://www.underhill.de/downloads/phpbb2mods/passwordsecurity.txt
##############################################################
## MOD History:
##
##   2006-04-08 - Version 1.1.1
##      - Successfully tested with phpBB 2.0.20
##      - Successfully tested with EasyMOD beta (0.3.0)
##
##   2005-12-31 - Version 1.1.0
##      - Successfully tested with phpBB 2.0.19
##      - Added check for username (badboy4ever)
##      - Added check for emailadress
##      - Fixed some little problems with spelling and usability
##
##   2005-12-20 - Version 1.0.2
##      - MOD Syntax changes for the phpBB MOD Database
##
##   2005-12-15 - Version 1.0.1
##      - MOD Syntax changes for the phpBB MOD Database
##
##   2005-12-13 - Version 1.0.0
##      - Final-Version
##
##   2005-12-11 - Version 0.0.1c
##      - BETA-Version
##
##   2005-11-07 - Version 0.0.1b
##      - BETA-Version
##
##   2005-11-06 - Version 0.0.1a
##      - ALPHA-Version
##      - Built and successfully tested with phpBB 2.0.18
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------------------------------
#

includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------------------------------
#

      'L_PASSWORD_CONFIRM_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_confirm_if_changed'] : '',

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#

      'L_PASSWORD_SECURITY_LEVEL1' => $lang['password_security_level1'],
      'L_PASSWORD_SECURITY_LEVEL2' => $lang['password_security_level2'],
      'L_PASSWORD_SECURITY_LEVEL3' => $lang['password_security_level3'],
      'L_PASSWORD_SECURITY_LEVEL4' => $lang['password_security_level4'],
      'L_PASSWORD_SECURITY_LEVEL5' => $lang['password_security_level5'],
      'L_PASSWORD_SECURITY_EXPLAIN' => $lang['password_security_explain'],

#
#-----[ OPEN ]------------------------------------------------------------------
#

templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------------------------------
#

     <td class="row2">
      <input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />

#
#-----[ REPLACE WITH ]----------------------------------------------------------
#

     <td class="row2" nowrap="nowrap">
      <script language="JavaScript" type="text/javascript">
      <!--
      // Password security
      function check_pw(pw_to_check)
      {
         var counter_to_check = 0;
         var minlength_to_check = 6;
      
         if (pw_to_check.length >= minlength_to_check)
         {
            counter_to_check = counter_to_check + 1;
         }
         if (pw_to_check.match(/[A-Z\Ä\Ö\Ü]/))
         {
            counter_to_check = counter_to_check + 2;
         }
         if (pw_to_check.match(/[a-z\ä\ö\ü\ß]/))
         {
            counter_to_check = counter_to_check + 1;
         }
         if (pw_to_check.match(/[0-9]/))
         {
            counter_to_check = counter_to_check + 2;
         }
            if (pw_to_check.match(/[\.\,\?\!\%\*\_\#\:\;\~\\&\$\§\€\@\/\=\+\-\(\)\[\]\|\<\>]/))
            {
               counter_to_check = counter_to_check + 2;
            }
         if (pw_to_check == document.getElementsByName('username').username.value)
         {
            counter_to_check = 0;
         }
         if (pw_to_check == document.getElementsByName('email').email.value)
         {
            counter_to_check = 0;
         }

         if (counter_to_check <= 2)
         {
            document.getElementsByName('holder_pw')[0].style.backgroundColor = 'red';
            document.getElementsByName('holder_pw')[0].style.color = 'black';
            document.getElementsByName('holder_pw')[0].style.border = '1px solid black';
            document.getElementsByName('holder_pw')[0].value = '{L_PASSWORD_SECURITY_LEVEL1}';
         }
         else if (counter_to_check <= 4)
         {
            document.getElementsByName('holder_pw')[0].style.backgroundColor = 'yellow';
            document.getElementsByName('holder_pw')[0].style.color = 'black';
            document.getElementsByName('holder_pw')[0].style.border = '1px solid black';
            document.getElementsByName('holder_pw')[0].value = '{L_PASSWORD_SECURITY_LEVEL2}';
         }
         else if (counter_to_check <= 5)
         {
            document.getElementsByName('holder_pw')[0].style.backgroundColor = 'green';
            document.getElementsByName('holder_pw')[0].style.color = 'white';
            document.getElementsByName('holder_pw')[0].style.border = '1px solid black';
            document.getElementsByName('holder_pw')[0].value = '{L_PASSWORD_SECURITY_LEVEL3}';
         }
         else if (counter_to_check <= 7)
         {
            document.getElementsByName('holder_pw')[0].style.backgroundColor = 'green';
            document.getElementsByName('holder_pw')[0].style.color = 'white';
            document.getElementsByName('holder_pw')[0].style.border = '1px solid black';
            document.getElementsByName('holder_pw')[0].value = '{L_PASSWORD_SECURITY_LEVEL4}';
         }
         else if (counter_to_check == 8)
         {
            document.getElementsByName('holder_pw')[0].style.backgroundColor = 'green';
            document.getElementsByName('holder_pw')[0].style.color = 'white';
            document.getElementsByName('holder_pw')[0].style.border = '1px solid black';
            document.getElementsByName('holder_pw')[0].value = '{L_PASSWORD_SECURITY_LEVEL5}';
         }
      }
      //-->
      </script>
      <input onkeyup="check_pw(this.value);" onfocus="check_pw(this.value);" type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
      <span class="gensmall"><a href="{U_FAQ}#39" tabindex="98" target="_phpbbfaq">{L_PASSWORD_SECURITY_EXPLAIN}</a></span> <input tabindex="99" title="" readonly="readonly" type="text" class="post" style="width : 150px; text-align : center; border : 1px solid #DEE3E7; background-color : #DEE3E7;" name="holder_pw" size="25" value="" />

#
#-----[ OPEN ]------------------------------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------------------------
#

$lang['password_confirm_if_changed'] =

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#

$lang['password_security_level1'] = 'Unsafe';
$lang['password_security_level2'] = 'Not recommendable';
$lang['password_security_level3'] = 'Relatively safe';
$lang['password_security_level4'] = 'Safe';
$lang['password_security_level5'] = 'Very safe';
$lang['password_security_explain'] = 'Password security:';

#
#-----[ OPEN ]------------------------------------------------------------------
#

language/lang_english/lang_faq.php

#
#-----[ FIND ]------------------------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// Password security
$faq[] = array("--", "Password security");
$faq[] = array("What is password security?", "This function offers you a recommendation for selecting your password. It's only a recommendation. You are free to decide if you use it or not.");
$faq[] = array("How to secure a password?", "Tips for selecting a secure password:<br />- The password must be at least 6 characters in length and can be a maximum of 32 characters in length (a character is a letter, number, mark or symbol).<br />- The password should be at least 4 characters long and should contain at least 2 other characters such as numbers or symbols.<br />- Special foreign language characters such as the german umlaut and spaces (blanks) are not recommended.<br />- Use neither your user-name or your real name.<br />- Do not use standard keyboard rows such as the \"qwerty\" row.<br />- The password should not contain popular or common phrases such as those found in books, poems. Also avoid using popular media slogans form radio and tv.<br />- Use a combination of upper and lowercased letters.<br />- Choose a password that you don't have to write down in order to remember it.");
   
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#
#
# EoM







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Offline

Užívateľ
Užívateľ
Password security

Registrovaný: 17.11.06
Prihlásený: 12.07.09
Príspevky: 65
Témy: 16
Príspevok NapísalOffline : 22.12.2006 15:42

prosimtě na co je tento mod dobrý - já schánim mod aby se neregistrivaný nemohl podívat na profil a tim - obtěžovat ostatní lidi na foru - zbytečným spamováním po internetu


Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 21.06.06
Prihlásený: 09.09.08
Príspevky: 337
Témy: 26
Príspevok NapísalOffline : 22.12.2006 16:06

AVAST píše:
prosimtě na co je tento mod dobrý - já schánim mod aby se neregistrivaný nemohl podívat na profil a tim - obtěžovat ostatní lidi na foru - zbytečným spamováním po internetu


Ak nechceš,aby sa ti mohol dotyčný pozerať na profily, tak

otvor profile.php

nájdi:

Kód:
if ( $mode == 'viewprofile' )
   {


za to daj

Kód:
if ( !$userdata['session_logged_in'] )
      {
         redirect(append_sid("login.$phpEx", true));
      }


Robil somto teraz na rýchlo, dalo by sa tam ešte dať, že po prihlásení ŤA to hodí priamo na ten profil, ale nechce sa mi to robiť :D

A ten mód, ak som dobre vyčítal z kódu ti pri hesle, ktore vbpisueš ukazuje úroveň bezpečnosti hesla. Niečo podobné mám niekde doma zahrabané


Offline

Užívateľ
Užívateľ
Password security

Registrovaný: 17.11.06
Prihlásený: 12.07.09
Príspevky: 65
Témy: 16
Príspevok NapísalOffline : 22.12.2006 20:00

Díky moc -pomohlo mně to


Odpovedať na tému [ Príspevkov: 4 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. ESET Smart Security 4 vs. Norton Internet Security 2010

v Antivíry a antispywary

5

966

14.03.2010 17:25

Snipo Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Eset Smart Security 4 vs MS Security Essentials

[ Choď na stránku:Choď na stránku: 1, 2 ]

v Antivíry a antispywary

34

3441

11.02.2010 17:54

Mindfreak Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Norton Internet Security 2010 vs. Eset Smart Security

v Antivíry a antispywary

17

1558

12.04.2010 8:33

lubos250 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kaspersky Internet Security 2009 vs. Eset Smart Security

v Antivíry a antispywary

8

1739

07.10.2008 0:43

Kosak Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Eset Smart Security vs. AVIRA Premium Security Suite

v Antivíry a antispywary

3

1200

14.05.2009 21:14

emajko159 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Eset Smart Security 4 vs AVG Internet security 8.5

v Antivíry a antispywary

23

2500

14.07.2009 16:27

citizen Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. ESET Smart Security 4.2 a ESET Mail Security for MES

v Novinky

5

721

13.03.2010 20:09

XxRENDYxX Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Avast 7 Internet Security alebo AVG Internet Security 2012

v Antivíry a antispywary

5

866

22.04.2012 0:30

Leslie12 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. password

v Ostatné programy

5

598

07.01.2009 11:15

majky358 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. BIOS PASSWORD

[ Choď na stránku:Choď na stránku: 1, 2 ]

v Ostatné programy

33

2569

17.07.2009 23:06

Srnka0 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Password extractor

v Ostatné programy

12

1086

11.08.2009 19:49

f4r0 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Password v MySQL

v Databázy

10

856

25.02.2010 18:35

noro-nr Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. PREKLAD: Password Protection CZ

v Redakčné systémy

1

3227

22.11.2006 11:07

AVAST Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. FSCK Disable boot password????

v Operačné systémy Unix a Linux

1

408

04.11.2009 10:37

jararak Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. hladat password a login

v Ostatné programy

9

950

19.10.2006 20:20

petulko81 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Enter Internal HDD Password

v Operačné systémy Microsoft

2

383

08.10.2012 19:05

shiro Zobrazenie posledných príspevkov


Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra