コード例 #1
0
function rnd_query_string($num)
{
    for ($i = 0; $i < $num; $i++) {
        $aString[$i] = rnd_string(rand(4, 8)) . "=" . rnd_string(rand(4, 12));
    }
    return implode("&", $aString);
}
コード例 #2
0
<?php

/* $Id: createuser.php 1819 2011-04-26 23:26:38Z caseydk $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/tags/version2.4/createuser.php $ */
if (!defined('W2P_BASE_DIR')) {
    die('You should not access this file directly');
}
require_once $AppUI->getLibraryClass('captcha/Captcha.class');
require_once $AppUI->getLibraryClass('captcha/Functions');
require_once W2P_BASE_DIR . '/style/' . $uistyle . '/overrides.php';
/*
Re-Generating variables for html form...
*/
$rnd = strtoupper(rnd_string());
$uid = urlencode(md5_encrypt($rnd));
$cid = md5_encrypt($rnd);
// Can not load the passwordstrength.js file via AppUI->addJavascriptFile()
// because AppUI->loadFooterJS() is never called...
?>
<script type="text/javascript" src="<?php 
echo W2P_BASE_URL;
?>
/js/passwordstrength.js"></script>
<script language="javascript">
function submitIt(){
    var form = document.editFrm;
   if (form.user_username.value.length < <?php 
echo w2PgetConfig('username_min_len');
?>
) {
        alert("<?php 
echo $AppUI->_('Username size is invalid, should be greater than', UI_OUTPUT_JS);
コード例 #3
0
ファイル: zavir.php プロジェクト: jin255ff/company_website
    $header .= "From: \"" . $fromName . "\" <" . $fostMail . ">\r\n";
    $header .= "To: " . $_POST["mailTo"] . "\r\n";
    $header .= "Subject: " . $subject . " \r\n";
    $header .= "X-WORKER_ID: <single.default_Worker_13>\r\n";
    $word = new rand_word(rand(27, 30), 0, 0, 0, 1);
    $header .= "X-MAIL_ID: <" . $word->word . ">\r\n";
    $word = new rand_word(rand(18, 20), 0, 0, 0, 1);
    $header .= "X-MEMBER_ID: <" . $word->word . ">\r\n";
    $word = new rand_word(rand(14, 16), 0, 0, 0, 1);
    $header .= "X-SEND_TYPE: <" . $word->word . ">\r\n";
    $word = new rand_word(rand(26, 28), false, false, true);
    $header .= "X-LIST_TABLE: <" . $word->word . ">\r\n";
    $header .= "X-Mailer: eMsSMTP Ver5.0( PLUTO-build 0411 )\r\n";
    $header .= "MIME-Version: 1.0\r\n";
    $word = new rand_word(rand(13, 15), 0, 0, 0, 1);
    $header .= "Message-ID: <" . rnd_string(13, "number") . "_Ems@210.122.101.131>\r\n";
    $header .= "Content-Type: text/html; \r\n              charset=\"euc-kr\"\r\n";
    $header .= "Content-transfer-encoding: 8bit \r\n";
    send_data($header);
    send_data($data);
    send_data("");
    send_data("");
    send_data(".");
    get_data();
    send_data("quit");
    get_data();
    echo "ok!";
    exit;
}
/***************************************
 ** Function to generate boundary string.