- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
public static function isOwner()
{
$user = app::getSession();
if ($user->isAuth()){
switch (true){
case ($_GET('action') == 'upload'):
case ($_GET('login') == $user->getUserLogin()):
return true;
break;
default:
return false;
break;
}
}
return false;
}