#!/usr/bin/perl -w #################################### ### A Genesis Site Manager ### ### http://www.xav.com/scripts/ ### ### genesis/ ### #################################### ### Site Manager Revised by ### ### BigTroy78@hotmail.com ### #################################### ### Site Manager Revision by ### ### TcTech@webtv.net ### #################################### use CGI; $q = new CGI; print "Content-type: text/html\n\n"; ### variables to be changed $title = 'Site-Manager'; $body = "
"; ### values for text inputs $input = ' bgcolor=ffffff text=000000 cursor=000000 border=2 autoactivate nohighlight font=proportional'; ### values for buttons and submits $b_color = ''; $no_b_color = ''; $button = ' '; ### values for textarea. values for text inputs are included. $tarea = ' cols=75 rows=20 usestyle'; ### color for changing directories and normal links $cd_color = ''; ### delete color $rm_color = ''; ### edit color $ed_color = ''; ### CHMOD color $ch_color = ''; ### time color $ti_color = ''; ### bytes format $by_color = ''; ### operation description color $op_color = ''; ### for the date @months = ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); ################################################ ### Script variables. DO NOT CHANGE ### ################################################ ### find form and query data $ch_dir = $q->param('cd') if $q->param('cd'); $action = $q->param('action') if $q->param('action'); $operation = $q->param('operation') if $q->param('operation'); if (($ch_dir) && (!$action) && (!$operation)) { $done = "$ch_dir sub-directory files listed."; } ### location of file. and location of top directory $this_url = $ENV{'SCRIPT_NAME'}; $mgr = $this_url; @urls = split(/\//,$this_url); pop(@urls); $top_dir = $urls[$#urls]; if ($top_dir) { $top_dir = '/'.$top_dir; } $top_dir .= '/'; $c_l_c = ''; ### find out if we are in another directory if ($ch_dir) { $new_dir = "$ch_dir"; } else { $new_dir = '.'; } if ($ch_dir) { @ch_dirs = split(/\//,$ch_dir); pop(@ch_dirs); $up_dir = join("\/",@ch_dirs); } if ($up_dir) { $last_dir = "cd=$up_dir"; } ### directory we are in $this_dir = $top_dir.$ch_dir; $cur_loc = "