예제 #1
0
<?php

/* FileName: DG_delpicture.php
* Latest Update: 2014.6.2
* Author: song374561@gmail.com
* Usage: To delete a picture.
* require:
* * pro_isLogin.php;
* * pro_delpicture.php;
*/
require_once 'application/pro_isLogin.php';
require_once 'application/pro_delpicture.php';
require_once 'application/view_showIcon.php';
require_once 'application/pro_picData.php';
if (isLogin() === true) {
    if (is_numeric($_POST['pid'])) {
        p_delpicture($_POST['pid']);
        $picData = p_picData($_POST['pid']);
        $aid = $picData['pAID'];
        v_showIcon($aid);
    } else {
        echo '<div id="pe"><a href="javascript:void(0)"><img src="system/image/error.png">系統錯誤(alum/picture data type error)</a></div>';
    }
}
예제 #2
0
<?php

/* FileName: DG_delalbum.php
 * Latest Update: 2014.6.2
 * Author: song374561@gmail.com
 * Usage: To delete an album.
 * require:
 * * pro_delAlbum.php;
 * * pro_isLogin.php;
 */
require_once 'application/pro_isLogin.php';
require_once 'application/pro_delalbum.php';
require_once 'application/view_showIcon.php';
if (isLogin() === true) {
    if (is_numeric($_POST['aid'])) {
        p_delalbum($_POST['aid']);
        v_showIcon('root');
    } else {
        echo '<div id="pe"><a href="javascript:void(0)"><img src="system/image/error.png">系統錯誤(album data type error)</a></div>';
    }
}
예제 #3
0
 * require:
 * * view_folder.php
 * * view_showLockedIcon.php
 */
require_once 'application/view_showIcon.php';
require_once 'application/view_showLockedIcon.php';
?>
<html>
  <body>
    <?php 
if (isset($_GET['aid']) && is_numeric($_GET['aid'])) {
    if (is_numeric($_GET['aid'])) {
        if ($_GET['aid'] <= 0) {
            v_showIcon('root');
        } else {
            v_showIcon($_GET['aid']);
        }
    } else {
        echo '<div id="pe"><a href="javascript:void(0)"><img src="system/image/error.png">系統錯誤</a></div>';
    }
} else {
    if (is_numeric($_POST['aid']) && $_POST['aid'] > 0) {
        v_showLockedIcon($_POST['aid'], strtoupper(sha1($_POST['albumpass'])));
    } else {
        echo '<div id="pe"><a href="javascript:void(0)"><img src="system/image/error.png">系統錯誤</a></div>';
    }
}
?>
  </body>
</html>