예제 #1
0
<?php

/* 
 * @author Nibin Abraham Mattam
 * VStalk4U.com
 * 
 */
require '/var/www/html/photos/PhotoURL.php';
require '/var/www/html/photos/PhotoResizer.php';
require '/var/www/html/Downloader/PhotoDownloader.php';
require '/var/www/html/IdGenerator/RandomIDGenerator.php';
require '/var/www/html/DAO/Stalkee.php';
require '/var/www/html/DAO/Stalker.php';
require '/var/www/html/notifier/notifier.php';
foreach (Stalkee::get_stalkee_list() as $stalkee) {
    PhotoDownloader::download_photo(PhotoURL::get_API(Stalkee::get_stalkee_fb_id($stalkee)), $stalkee);
}
notifier::get_notifier_list();
예제 #2
0
 private static function get_optimal_image_size($fb_user)
 {
     $size = getimagesize(PhotoURL::get_photo_url($fb_user, 0, 0));
     return PhotoURL::get_photo_url($fb_user, $size[0], $size[1]);
 }