File indexing completed on 2024-11-24 05:19:13

0001 <?php
0002 class PublicProfileController extends EController {
0003   
0004   public function index ($args) {
0005     $dat = new RetrieveModel();
0006     $friend = new FriendModel;
0007     $self = new OCSUser;
0008     if (OCSUser::is_logged()) {
0009       EStructure::view("public_profile", $dat->getUserInfo($args[0]), $dat->getUserData(1), $friend->listFriends($self->login()));
0010     }
0011   }
0012   
0013   public function addfriend ($args){
0014     $friend = new FriendModel();
0015     if (OCSUser::is_logged()) {
0016       var_dump($friend->sendRequest($args[0]));
0017     }
0018   }
0019 }
0020 
0021 ?>