The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use only letters or numbers ?
Author Message
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Use only letters or numbers ?
Hello i have found this password change scp i download section, i have try lot of wyas to do this but still ca't get right, so how could i make when can use only Latin letters and numbers but cant use like )($@# and another languaces for example china.
here the script.
and here is what i was trying to add
Code:
if !(STRMATCH(*a*,*b*,*c*,*d*,<ARGTXT[0]> ))
  src.sysmessage cant.
  else
  SRC.PASSWORD <ARGTXT[0]>
  RETURN 1
ENDIF

Code:
[Function changepassword]
SRC.DIALOG d_password

[dialog d_password]
40,0  
page 0
noclose
nomove
GUMPPIC 130 150 5170 //Top Left
GUMPPIC 150 150 5171 //Top
GUMPPIC 250 150 5171 //Top
GUMPPIC 420 150 5172 //Top right
GUMPPIC 130 188 5173 //LEFT
GUMPPIC 168 188 5174 //MIDDLE
GUMPPIC 250 188 5174 //MIDDLE
GUMPPIC 420 188 5175 //RIGHT
GUMPPIC 130 300 5176 //Bottom Left
GUMPPIC 150 300 5177 //Bottom
GUMPPIC 250 300 5177 //Bottom
GUMPPIC 420 300 5178 //Bottom Right
resizepic 190 250 3600 190 22
TEXT 174 190 00154 0 //
TEXT 254 210 00154 1 //
//TEXTENTRY 200 251 190 20 4 0 2
TEXTENTRY 200 251 190 20 1152 0 2
BUTTON 290 287 242 243 1 0 0 //Cancel
BUTTON 360 287 249 248 1 0 1 //Cancel
[dialog d_password text]
What would you like to change
password to?
0
[dialog d_password button]
onbutton=0
SRC.SYSMESSAGE Cancelled
RETURN 1
//onbutton=1
//IF (STRMATCH( *=*, <ARGTXT[0]> )) || (STRMATCH( *PLEVEL*, <ARGTXT[0]> ))
//SRC.SYSMESSAGE Plevel Hack Doesnt Work Here.
//RETURN 1
//ELSE
//SRC.PASSWORD <ARGTXT[0]>
//RETURN 1
//ENDIF

onbutton=1
IF (STRMATCH( *=*, <ARGTXT[0]> ))
  SRC.SYSMESSAGE You may not include = in your password.
  RETURN 1
elif !(STRCMPI("","<ARGTXT[0]>"))  // thanks to Acratia for
  src.sysmessage You need to supply a password.
  return 1
elif (STRMATCH(*eof*,<ARGTXT[0]> ))
  src.sysmessage You cannot use eof in your password.
  return 1
elif (STRMATCH(*\n*,<ARGTXT[0]> ))
  src.sysmessage You cannot use \n in your password.
  return 1
elif (STRMATCH(*plevel*,<ARGTXT[0]> ))
  src.sysmessage You cannot use plevel in your password.
  return 1
elif (STRMATCH(<src.account.password>,<ARGTXT[0]> ))
  src.sysmessage Whats the point of changing your pass if you're going to use your old one?
  return 1
elif (STRMATCH(* *,<ARGTXT[0]> ))
  src.sysmessage Your password cannot have a space in it.
  return 1
elif (STRLEN(<ARGTXT[0]> ) > 15))
  src.sysmessage Password cannot be longer than 15 characters.
  return 1
elif (STRLEN(<ARGTXT[0]> ) < 4))
  src.sysmessage Password cannot be shorter than 4 characters.
  return 1

ELSE
SRC.PASSWORD <ARGTXT[0]>
RETURN 1
ENDIF

[EOF]
(This post was last modified: 05-06-2012 11:19 PM by Alias.)
05-06-2012 11:17 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Use only letters or numbers ? - Alias - 05-06-2012 11:17 PM
RE: Use only letters or numbers ? - Alias - 05-07-2012, 12:01 AM
RE: Use only letters or numbers ? - Alias - 05-07-2012, 03:02 AM
RE: Use only letters or numbers ? - Alias - 05-07-2012, 07:11 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)