Location: PHPKode > projects > Multimedia2Multimedia > mm2mm/include/step.php
<?
if ( $config['htmlcomm'] == true ) echo ("<!-- step.php BEGIN -->
");


// if (isset($_GET['step'])) $step = $_GET['step'];
$maxsteps = 5;
if (empty($step)) $step = 1;
if (isset($_POST['actualstep'])) $step = $_POST['actualstep'];
if ( ( $step == 4 ) AND (isset($_POST['go'])) ) $step++;
if ( ( $step == 3 ) AND (isset($_POST['next'])) AND (isset($_POST['destination'])) ) $step++;
if ( ( $step == 2 ) AND (isset($_POST['next'])) AND (isset($_POST['destination'])) AND ( $destination_media != "" ) ) $step++;
if ( ( $step == 1 ) AND (isset($_POST['next'])) AND (isset($_POST['source'])) AND ( $source_media != "" ) ) $step++;
if (isset($_POST['back'])) $step--;
if ( $step > $maxsteps ) $step = 1;
// echo $step;

if ( $config['htmlcomm'] == true ) echo ("<!-- step.php END -->
");
?>
Return current item: Multimedia2Multimedia