示例#1
0
文件: forum.php 项目: tilitala/nForum
 public static function decodeAttHash($hash)
 {
     $hash = explode(".", $hash);
     if ($hash[0] && ($ret = bbs_decode_att_hash($hash[0], "24244"))) {
         $ret['sid'] = $ret[0];
         $ret['bid'] = $ret[1];
         $ret['id'] = $ret[2];
         $ret['ftype'] = $ret[3];
         $ret['num'] = $ret[4];
         $ret['ap'] = $ret[5];
         return $ret;
     }
     return false;
 }
示例#2
0
文件: att.php 项目: bianle/www2
<?php

require "www2-funcs.php";
function go_die()
{
    header("Location: images/pig.gif");
    die;
}
$sid = FALSE;
$query = $_SERVER["QUERY_STRING"];
settype($query, "string");
$av = explode(".", $query);
$ac = count($av);
if ($ac == 2) {
    $info = $av[0];
    $ret = bbs_decode_att_hash($info, "24244");
    if (!$ret) {
        die;
    }
    $bid = $ret[1];
    $board = '';
    $id = $ret[2];
    $ftype = $ret[3];
    $num = $ret[4];
    $ap = $ret[5];
    $sid = $ret[0];
} else {
    if ($ac == 4 || $ac == 5) {
        $ftype = 0;
        $num = 0;
        $ap = intval($av[3]);