예제 #1
0
파일: readme.php 프로젝트: xwings/tuya
function myhash($str)
{
    print clean_hash(md5(md5($str) . "SALT"));
}
예제 #2
0
<?php

session_start();
header("Cache-Control: private, no-cache, must-revalidate");
require "library.php";
$request = array_merge($_POST, $_GET);
$request = clean_hash($request);
$account_id = $_SESSION["account_id"];
$form_name = addslashes($request["form_name"]);
$form_content = addslashes($request["form_content"]);
save_form($account_id, $form_name, $form_content);