1./do.php?act=album_creat
'album_creat'=> array('action/album/album_creat.action.php'),
2.
//回应信息
action_return(1,"","modules.php?app=photo_upload&album_id=$album_id");
'album_upd'=> array('action/album/album_upd.action.php','modules.php?app=album'),
//回应信息
action_return(1,"","");
//防刷新控制代码
\foundation\aanti_refresh.php(23): function antiRePost($sendStr){
3./modules.php?app=photo_update&album_id=2
photo_update => modules/album/photo_update.php ,
4.删除
删除5.开始上传 modules.php?app=photo_upload&album_id=2
photo_upload => modules/album/photo_upload.php ,
modules.php?user_id=2&app=hstart
普通上传
do.php?act=photo_upl
flash上传
"src", "servtools/flash_mod/upl",
upl.swf
return domain_url+"do.php?act=photo_upl_flash&id="+album_id;
'photo_upd'=> array('action/album/photo_upd.action.php'),
'photo_upl_flash'=> array('action/album/photo_upl_flash.action.php'),
$sql = "insert into $t_photo(`user_id`,`add_time`,`photo_src`,`photo_thumb_src`,`album_id`,`user_name`,`privacy`)
values($user_id,'".constant('NOWTIME')."','$fileSrcStr','$thumb_src',$album_id,'$user_name','');";
图片上传类。包括缩略,水印
\foundation\cupload.class.php(2): class upload
name='attach[]' id='attach[]'
阅读(271) | 评论(0) | 转发(0) |