コード例 #1
0
ファイル: editpush.php プロジェクト: adi00/wumaproject
        $stylename[3] = 'one';
    } else {
        $stylename[3] = '';
    }
    if (isset($invokepiece['param']['tagrelate'])) {
        $iftagrelate = 1;
    } else {
        $iftagrelate = 0;
    }
    include areaLoadFrontView($action);
} else {
    InitGP(array('param', 'offset', 'endtime', 'starttime', 'title1', 'title2', 'title3', 'title4', 'titletime'), 'GP');
    $offset = (int) $offset;
    if (isset($invokepiece['param']['tagrelate'])) {
        InitGP(array('tagrelate'));
        $param['tagrelate'] = getTagRelate($tagrelate);
    }
    if ($param['url']) {
        $param['url'] = str_replace('=', '=', $param['url']);
    }
    if (isset($param['image']) && count($_FILES) && $_FILES["uploadpic"]["name"] && $_FILES["uploadpic"]["size"]) {
        $uploadPicUrl = $invokeService->uploadPicture($_FILES, $push['invokepieceid'], $windid);
        $param['image'] = $uploadPicUrl ? $uploadPicUrl : $param['image'];
    }
    $titlecss = $invokeService->pushDataTitleCss($title1, $title2, $title3, $title4, $titletime);
    $invokeService->updatePushData($id, array('starttime' => $starttime, 'endtime' => $endtime, 'offset' => $offset, 'data' => $param, 'titlecss' => $titlecss));
    $loopid = $push['loopid'];
    if ($invokepiece['rang'] != 'fid') {
        $fid = 0;
    } else {
        $fid = $push['fid'];
コード例 #2
0
 function _dealData($invokepieceid, $data)
 {
     $invokeService = L::loadClass('invokeservice', 'area');
     $invokepiece = $invokeService->getInvokePieceByInvokeId($invokepieceid);
     if (isset($invokepiece['param']['tagrelate'])) {
         require_once R_P . 'mode/area/require/tagrelate.php';
         $tagrelate = S::escapeChar(S::getGP('tagrelate', 'P'));
         $data['tagrelate'] = getTagRelate($tagrelate);
     }
     if ($data['url']) {
         $data['url'] = str_replace('=', '=', $data['url']);
     }
     if (isset($data['image']) && count($_FILES) && $_FILES["uploadpic"]["name"] && $_FILES["uploadpic"]["size"]) {
         $uploadPicUrl = $this->uploadPicture($invokepiece['id']);
         $data['image'] = $uploadPicUrl ? $uploadPicUrl : $data['image'];
     }
     return $data;
 }