예제 #1
0
        } else {
            $i = 0;
            while ($row = $result[0]->fetch_assoc()) {
                $results .= getElement($row['username'], $row['id'], $i++);
            }
        }
    }
    $results .= <<<BOTTOM
\t\t</ul>
\t\t</div>

BOTTOM;
}
if (isset($_POST['sharetoID']) && isset($_POST['sharefromID'])) {
    if (is_numeric($_POST['sharetoID']) && is_numeric($_POST['sharefromID'])) {
        $error = addShare($conn, $_POST['sharefromID'], $_POST['sharetoID']);
        if (!$error) {
            $success = "Shared files with user successfully!";
        }
    }
}
$conn->close();
?>
<!doctype html>
<html>
<head>
<title>Share Files - Mega File</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--flexslider-css-->
예제 #2
0
 public function sentShare($uid, $data)
 {
     global $_FANWE;
     static $bind = NULL;
     if ($bind === NULL) {
         $uid = (int) $uid;
         $bind = FS("User")->getUserBindByType($uid, 'qq');
     }
     addShare($_FANWE['cache']['logins']['qq']['app_key'], $bind['access_token'], $bind['keyid'], $data);
     return true;
 }
예제 #3
0
파일: edit.php 프로젝트: psyray/mmc
function _callAddEditShareAction($action, $params)
{
    if ($action == "edit") {
        return editShare($params);
    } else {
        if ($action == "add") {
            return addShare($params);
        } else {
            return False;
        }
    }
}
예제 #4
0
파일: share.php 프로젝트: RITC3/rc3ctf-2015
        } else {
            $i = 0;
            while ($row = $result[0]->fetch_assoc()) {
                $results .= getElement($row['username'], $row['id'], $i++);
            }
        }
    }
    $results .= <<<BOTTOM
\t\t</ul>
\t\t</div>

BOTTOM;
}
if (isset($_POST['sharetoID'])) {
    if (is_numeric($_POST['sharetoID'])) {
        $error = addShare($conn, $_SESSION['id'], $_POST['sharetoID']);
        if (!$error) {
            $success = "Shared files with user successfully!";
        }
    }
}
$conn->close();
?>
<!doctype html>
<html>
<head>
<title>Share Files - Mega File</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--flexslider-css-->