Zubrag.com
May 24, 2019, 11:24:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Over 200 different logins needed and I have no clue!  (Read 7989 times)
SVAR
Newbie
*
Posts: 2


« 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


« 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


« 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:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC