Zubrag.com
May 22, 2012, 05:45:04 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Zubrag.com :: Forum
>
zubrag.com
>
Questions About Our Scripts
>
Password Protect Advanced
>
Over 200 different logins needed and I have no clue!
Pages: [
1
]
Print
Author
Topic: Over 200 different logins needed and I have no clue! (Read 2106 times)
SVAR
Newbie
Posts: 2
Over 200 different logins needed and I have no clue!
«
on:
June 18, 2009, 02:38:02 pm »
I am not a tech person by any means. We have Sharepoint Designer 2007 and I have been desperately trying to figure out how to upload a fill able pdf and have it password protected with 240 different logins. Needless to say I am at my wits end. If anyone can help me, I would REALLY appreciate it as I have never done this before so don't really understand it.
Logged
Stephie
Newbie
Posts: 2
Re: Over 200 different logins needed and I have no clue!
«
Reply #1 on:
September 16, 2010, 05:02:12 am »
Tiny privacy hack to recognise only privileged users who will be using passwords with a secret prefix.
(Useful if your handouts, cards, flyers, or whatever, are labeled with a unique prefix)
Just add another password check to signup.php, it seems to work OK ....
//Check for passwords that begin with a range of user numbers less than 9999 eg "1034Steph".
if(ereg("^[.0-9]{4}",$this->pass) === false) {
$this->error = "Invalid Password prefix.";
return false;
}
Logged
Stephie
Newbie
Posts: 2
Re: Over 200 different logins needed and I have no clue!
«
Reply #2 on:
September 17, 2010, 04:41:23 am »
Not sure if this is relevant here but it's too late to "Remove" or "Modify" the above post!
Anyway, might as well be hung for a sheep rather than a goat ... so here's a bit more on the simple password chopping ;-)
<?php
function strippsswd ($pass) {
ereg("(^[0-9]{4})([-:_]*)([A-Za-z]*$)",$pass,$regs);
echo "Orig: " . "$pass" . "<p>";
echo " Arg[1]= " . "$regs[1]" . " Arg[2]= " . "$regs[2]" . " Arg[3]= " . "$regs[3]<p>" ;
if(!$regs[3]){
return $pass;
}
if(!$regs[2]){
//If no special character found just replace 1234 with nothing:
echo "<p>One regex extracted from Password: " . " Regs: " . "$regs[1]";
$pass=str_replace("$regs[1]","",$regs[0]);
}
if($regs[2]){
//If there is a special character Replace 1234 plus :-_ with nothing:
echo "<p>Two Regex's extracted from Password: " . " Regs: " . "$regs[1]" . "$regs[2]";
$pass=str_replace("$regs[1]","",$regs[0]);
$pass=str_replace("$regs[2]","",$pass);
}
return $pass;
}
$pass=strippsswd("1234stephie");
echo "<p>New:<b> " . "$pass" . "</b><p>";
?>
Output:
Orig: 1234stephie
Arg[1]= 1234 Arg[2]= Arg[3]= stephie
One regex extracted from Password: Regs: 1234
New: stephie
Logged
Pages: [
1
]
Print
Jump to:
Please select a destination:
-----------------------------
zubrag.com
-----------------------------
=> News
=> Questions About Our Scripts
===> Password Protect
===> Password Protect Advanced
===> cPanel Scripts
===> Thumbnail Generator
===> Website Thumbnail Generator
===> Smart File Download
===> Anti Spam Image Generator
===> Watermark
=> Wish List / Suggestions
=> Bugs / Known Issues
-----------------------------
Webmasters Lounge
-----------------------------
=> Tips and Tricks
=> Webmasters: General Discussion
-----------------------------
Programmers Lounge
-----------------------------
=> PHP / MySql / Smarty Questions
=> Tips and Tricks
=> Programmers: General Discussion
-----------------------------
General Category
-----------------------------
=> General Discussion
Loading...