Esempio n. 1
0
/**
 * Resets the RSS feed for both high and low res, and displays a confirmation message to the user
 */
function reset_rss()
{
    global $input;
    global $repository_path;
    ezmam_repository_path($repository_path);
    if (!isset($input['album'])) {
        echo "Usage: web_index.php?action=reset_rss&album=ALBUM";
        die;
    }
    if (!ezmam_album_exists($input['album'])) {
        error_print_message(ezmam_last_error());
        die;
    }
    if (!ezmam_album_exists($input['album'])) {
        error_print_message(ezmam_last_error());
        die;
    }
    //
    // We just have to reset the tokens ...
    //
    ezmam_album_token_reset($input['album']);
    //
    // ... And display a confirmation message!
    //
    require_once template_getpath('popup_rss_successfully_reset.php');
}
Esempio n. 2
0
ezmam_asset_delete("COURSE-MNEMO-pub", "2011-07-27-14h32");
if ($step_by_step) {
    exec('read');
}
if ($step_by_step) {
    echo 'adding asset in COURSE-MNEMO-pub again';
}
$metadata = array('author' => 'X', 'title' => 'Test d\'accentuation UTF-8: tètètè', 'description' => 'Ceci est un accent: à', 'record_date' => '2011_07_26_16h00', 'record_type' => 'camslide', 'language' => 'français');
ezmam_asset_new("COURSE-MNEMO-pub", "2011-07-27-14h32", $metadata);
/*if($step_by_step)
    exec('read');
if($step_by_step)
    echo "Unpublishing asst 2011-07-27-14h32";
$res=ezmam_asset_unpublish("COURSE-MNEMO-pub", "2011-07-27-14h32");

if(!$res)
    echo ezmam_last_error();

if($step_by_step)
    exec('read');
if($step_by_step)
    echo "Publishing asst 2011-07-26-14h32";
ezmam_asset_publish("COURSE-MNEMO-priv", "2011-07-26-14h32");

if($step_by_step)
    exec('read');
if($step_by_step)
    echo 'Deleting the whole COURSE-MNEMO-pub album';*/
//ezmam_album_delete("COURSE-MNEMO-pub");
ezmam_album_token_reset("COURSE-MNEMO-priv");