function films_film_distribute_new($film) { preint_r($_SESSION); $command = 'mv ' . FILMS_TEMP_PATH . $_SESSION['new_film_temp']['hash'] . '.' . $_SESSION['new_film_temp']['extension'] . ' /storage/www/www.hamsterpaj.net/data/distribute/film/' . $film['handle'] . '.' . $film['extension']; log_to_file('films', LOGLEVEL_DEBUG, __FILE__, __LINE__, 'executing command: ' . $command); exec($command, $output, $return_value); log_to_file('films', LOGLEVEL_DEBUG, __FILE__, __LINE__, 'command: ' . $command . ' returned ' . $return_value, serialize($output)); distribute_item(array('type' => 'film', 'handle' => $film['handle'], 'extension' => $film['extension'])); }
function games_game_distribute($options) { distribute_item(array('type' => 'game', 'handle' => $options['handle'], 'extension' => $_SESSION['new_game_temp']['extension'])); }
/** Call the distribute library to distribute the item to servers. An original i stored in /distribute on the web server. */ function entertain_item_distribute_new($item) { $command = 'cp ' . ENTERTAIN_TEMP_PATH . $_SESSION['new_entertain_temp']['hash'] . '.' . $_SESSION['new_entertain_temp']['extension'] . ' /storage/www/amusemaster.hamsterpaj.net/data/distribute/' . $item['entertain_type'] . '/' . $item['handle'] . '.' . $item['extension']; shell_exec($command); distribute_item(array('type' => $item['entertain_type'], 'handle' => $item['handle'], 'extension' => $item['extension'])); }
/** Call the distribute library to distribute the item to servers. An original i stored in /distribute on the web server. */ function entertain_item_distribute_new($item) { $command = 'mv ' . ENTERTAIN_TEMP_PATH . $_SESSION['new_entertain_temp']['hash'] . '.' . $_SESSION['new_entertain_temp']['extension'] . ' /storage/www/www.hamsterpaj.net/data/distribute/' . $item['entertain_type'] . '/' . $item['handle'] . '.' . $item['extension']; exec($command, $output, $return_value); distribute_item(array('type' => $item['entertain_type'], 'handle' => $item['handle'], 'extension' => $item['extension'])); }