Ejemplo n.º 1
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$add = new OssnPhotos();
if ($add->AddPhoto(input('album'), 'ossnphoto', input('privacy'))) {
    redirect(REF);
} else {
    redirect(REF);
}
Ejemplo n.º 2
0
<?php

/**
 * Acció crear nou álbum i afegir la foto
 *
 * @author    Dani Marti <*****@*****.**>
 * @license   GPL
 */
$add = new OssnPhotos();
$album = 130;
//Exist album
$access = 2;
//'OSSN_PUBLIC';
//check if album guid is not less than 0 and validate photo uploader
// if (!empty($album) && $album > 0 && $this->album->album->owner_guid == ossn_loggedin_user()->guid) {
//    error_log("check passed! album_owner: " .  $this->album->album->owner_guid);
// }
if ($add->AddPhoto($album, 'ossnphoto', $access)) {
    //130 is object exist Album  	redirect(REF);
    redirect(REF);
} else {
    redirect(REF);
}