function default_Form($field_value = "")
 {
     $do_user_rel = new UserRelations();
     if (!$this->getRData('hidden') && !$this->getRData('readonly')) {
         if (!$this->getRdata('execute')) {
             $field_value = $this->no_PhpCode($field_value);
             $field_value = $do_user_rel->decrypt($field_value);
         }
         if ($this->getRdata("loginform")) {
             $fval .= "<input type=\"password\" name=\"fields[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>";
         } else {
             $fval = "<input name=\"accessfield[" . $this->getRData('access') . "]\" type=\"hidden\" value=\"" . $this->getFieldName() . "\"/>";
             $fval .= "<input type=\"hidden\" name=\"mydb_events[22]\" value=\"ofuz.encryptDecryptPassword\">";
             $fval .= "<input type=\"hidden\" name=\"mydb_events[20]\" value=\"mydb.checkUsernamePassword\">";
             $fval .= "<input type=\"password\" name=\"fields[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>";
             $fval .= "\n<br/><input type=\"password\" name=\"fieldrepeatpass[" . $this->getFieldName() . "]\" value=\"" . $field_value . "\"/>";
         }
         $this->processed .= $fval;
     }
 }
示例#2
0
<?php

// display a user password
include "config.php";
$d = new UserRelations();
echo $d->decrypt("qM1vsedZt7nWydzE");
<?php

/**
 * Webform eventcontoler scipt will get post content form webform html section and process to the database. 
 * @param POST data
 * Created on Dec 30 2011
 * */
include_once "config.php";
$fields = array();
$efid = $_POST['fid'];
$euid = $_POST['uid'];
$tags = $_POST['tags'];
$do_user_rel = new UserRelations();
$fid = $do_user_rel->decrypt($efid);
$uid = $do_user_rel->decrypt($euid);
//$do_userform = new WebFormUser();
//$do_userform->posteventAddContact($fid,$_POST['fields'],$nxturl,$uid,$tags);
$evctl = new EventControler();
$evctl->addParam('fields', $_POST['fields']);
$evctl->addParam('uid', $uid);
$evctl->addParam('fid', $fid);
$do_userform = new WebFormUser();
$do_userform->eventAddContact($evctl);
示例#4
0
        header("Location: " . $GLOBALS['cfg_ofuz_site_http_base'] . $_SERVER['REQUEST_URI']);
    }
}
include_once 'includes/header_secure.inc.php';
$do_notes = new ContactNotes($GLOBALS['conx']);
$do_contact = new Contact($GLOBALS['conx']);
$do_company = new Company($GLOBALS['conx']);
$do_task = new Task($GLOBALS['conx']);
$do_task_category = new TaskCategory($GLOBALS['conx']);
$do_contact_task = new Contact();
$invoice_access = true;
if (empty($_GET["idinv"]) || empty($_GET["idcon"])) {
    $invoice_access = false;
} else {
    $do_user_rel = new UserRelations();
    $idinvoice = $do_user_rel->decrypt($_GET["idinv"]);
    $idcontact = $do_user_rel->decrypt($_GET["idcon"]);
}
if ($invoice_access) {
    if (!is_object($_SESSION['do_invoice'])) {
        $do_invoice = new Invoice();
        $do_invoice->sessionPersistent("do_invoice", "index.php", OFUZ_TTL);
    }
    $do_company = new Company();
    $_SESSION['do_invoice']->getId($idinvoice);
    if ($idcontact != $_SESSION['do_invoice']->idcontact) {
        $invoice_access = false;
    }
    if ($_SESSION['do_invoice']->isDeleted($idinvoice)) {
        $invoice_access = false;
    }
示例#5
0
    <div class="loginbg2">
<?php 
if ($_GET['message']) {
    ?>
<div class="error_message"><?php 
    echo htmlentities(stripslashes($_GET['message']));
    ?>
</div>
<?php 
}
$do_user = new User();
$do_user->sessionPersistent("do_User", "signout.php", 36000);
if ($_GET['id']) {
    $do_user_rel = new UserRelations();
    //echo $do_user_rel->decrypt($_GET['id']);
    $do_user_rel->getId($do_user_rel->decrypt($_GET['id']));
    if ($do_user_rel->checkRegURL($do_user_rel->enc_email, $_GET['id'])) {
        $_SESSION['do_User']->formRegisterInvitation('index.php', 'regthank', 'admin_registration_alert', '*****@*****.**', $do_user_rel->enc_email, $_GET['id'], $_SERVER['PHP_SELF']);
    } else {
        echo _('Please check the URL');
    }
} else {
    /* $_SESSION['do_User']->formRegister('import_contacts.php',
       'regthank',
       'admin_registration_alert',
       '*****@*****.**'
       ); */
    $_SESSION['do_User']->formRegister('ww_s1.php', 'regthank', 'admin_registration_alert', '*****@*****.**');
}
?>
    </div>
示例#6
0
 /**
  *************Overriding the method eventGetForgotPassword in Parent class to send decrypt password****************
  * Event registration.getForgotPassword
  * Returns the username and password for the
  * email id specified
  * @package registration
  * @author Philippe Lewicki, Abhik
  * @version 2.0
  */
 function eventGetForgotPassword(EventControler $eventControler)
 {
     $disp = new Display($eventControler->message_goto);
     $this->setLog("\n (" . $this->getObjectName() . ") Get Forgot Password " . date("Y/m/d H:i:s"));
     $conx = $this->getDbCon();
     $fields = $eventControler->fields;
     $useremail = $fields[$this->getEmailField()];
     include_once "class/Emailer.class.php";
     $qGetPass = new sqlQuery($this->getDbCon());
     $qGetPass->query("select * from `" . $this->getTable() . "` where `" . $this->getEmailField() . "`='" . $useremail . "'");
     $do_user_rel = new UserRelations();
     if ($qGetPass->getNumRows() > 0) {
         while ($dPass = $qGetPass->fetchArray()) {
             $email = new Emailer();
             $email->loadEmailer($this->getDbCon(), 'forgotpassword');
             $dPass["password"] = $do_user_rel->decrypt($dPass["password"]);
             $email->mergeArray($dPass);
             if ($email->hasHtml()) {
                 $email->sendMailHtml($dPass[$this->getEmailField()]);
             } else {
                 $email->sendMailStandard($dPass[$this->getEmailField()]);
             }
             $disp->addParam("message", _("Your password has been sent to: ") . $useremail);
         }
     } else {
         $disp->addParam("message", _("No user found with that email address"));
     }
     $eventControler->setDisplayNext($disp);
 }