Wrong Information";
}
}
// Check if already authorized
if(isset($_SESSION['authorized_user']) && $_SESSION['authorized_user']===TRUE) {
$IS_AUTHORIZED = TRUE;
}
?>
Gallery Movie Size Fixer
Enter Admin Information
[DONE - End Session]
";
// Update all the movie size
if(isset($_GET['action']) && $_GET['action']=='process') {
$sql = "SELECT DISTINCT t2.`g_id` FROM
`$DATA_ITEM_TABLE` t1, `$MOVIE_ITEM_TABLE` t2
WHERE t1.`g_id` = t2.`g_id` AND t2.`g_width`=0 AND t2.`g_height`=0 AND t1.`g_mimeType`='$MOVIE_MIME_TYPE'";
$ids = get_result_array2D($sql);
echo "Processiong Total Records : ". count($ids) . "
";
for($i=0; $i$sql
\n";
$satus = do_query($sql);
}
} // end of IF ACTION SELECTED
// list existing records
$sql = "SELECT DISTINCT t2.`g_id` FROM
`$DATA_ITEM_TABLE` t1, `$MOVIE_ITEM_TABLE` t2
WHERE t1.`g_id` = t2.`g_id` AND t2.`g_width`=0 AND t2.`g_height`=0 AND t1.`g_mimeType`='$MOVIE_MIME_TYPE'";
$ids = get_result_array2D($sql);
echo "Total Records : ". count($ids) . "
\n";
for($i=0; $i\n";
}
if(count($ids)>0){
echo " will set WIDTH : $FLASH_MOVIE_WIDTH, and HEIGHT: $FLASH_MOVIE_HEIGHT
[Refresh]";
} else echo "All flash movie size are up to date.";
}
?>