} 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-->
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; }
function _callAddEditShareAction($action, $params) { if ($action == "edit") { return editShare($params); } else { if ($action == "add") { return addShare($params); } else { return False; } } }
} 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-->