1
This commit is contained in:
@@ -129,6 +129,20 @@ function get_str(){
|
||||
|
||||
}
|
||||
|
||||
function getRandPassword(){
|
||||
|
||||
$length = 8;
|
||||
$str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
$len = strlen($str)-1;
|
||||
$randstr = '';
|
||||
for ($i=0;$i<$length;$i++) {
|
||||
$num=mt_rand(0,$len);
|
||||
$randstr .= $str[$num];
|
||||
}
|
||||
return $randstr;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function proofState($article_id){
|
||||
$p_article_obj = Db::name('production_article');
|
||||
|
||||
Reference in New Issue
Block a user