示例#1
0
 public function authAction()
 {
     $Auth = new Auth();
     $uStorage = new UserStorage();
     $user = $Auth->checkUser($this->request->getPost());
     if ($user) {
         $storage = $uStorage->setUserData($user);
         header('Location: ' . Url::getUrl('index', 'index'));
     } else {
         $this->view->display('login');
     }
 }
$user = User::find_by_id($_SESSION['user_id']);
?>

<?php 
$path = 'assets/images/profile_pic/' . $user->profile_pic;
echo envapi_get_html_for_reg_user('176644-3EaSQ9JhWGaxqDH2EJ91XS3smNIPajiD', $user->first_name, $user->last_name, $path, false, "HI");
?>

<?php 
//Count the no. of unread messages...
$count = User::count_unread_messages($user->id);
?>

<?php 
//Get shared drive data...
$drive_data = UserStorage::find_all_public();
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Neon Admin Panel" />
	<meta name="author" content="" />
	
	<title>LLSCT | View Public Documents</title>
	
示例#3
0
 static function search($name)
 {
     return json(UserStorage::searchByName($name));
 }
    redirect_to('login.php?msg=Please Log-in first.');
}
?>

<?php 
//Get user details...
$user = User::find_by_id($_SESSION['user_id']);
$path = 'assets/images/profile_pic/' . $user->profile_pic;
echo envapi_get_html_for_reg_user('176644-3EaSQ9JhWGaxqDH2EJ91XS3smNIPajiD', $user->first_name, $user->last_name, $path, false, "HI");
//Count the no. of unread messages...
$count = User::count_unread_messages($user->id);
?>

<?php 
//Get shared drive data...
$drive_data = UserStorage::find_private_data_by_id($user->id);
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Neon Admin Panel" />
	<meta name="author" content="" />
	
	<title>LLSCT | My Document Sharing</title>
	
示例#5
0
<?php 
$path = 'assets/images/profile_pic/' . $user->profile_pic;
echo envapi_get_html_for_reg_user('176644-3EaSQ9JhWGaxqDH2EJ91XS3smNIPajiD', $user->first_name, $user->last_name, $path, false, "HI");
?>

<?php 
//Count the no. of unread messages...
$count = User::count_unread_messages($user->id);
?>


<?php 
$message = "No file chosen.";
if (isset($_POST['submit'])) {
    $file = new UserStorage();
    $file->attach_file($_FILES['file']);
    $file->is_public = isset($_POST['is_public']) ? 'true' : 'false';
    if ($file->save()) {
        $message = "File uploaded successfully";
    } else {
        $message = "<strong>Error(s) occured.</strong> <br/>" . join("<br />", $file->errors);
    }
}
?>


<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">