From 19c12ff7a916f40030ab37c5db79802cf07f2ef0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 8 Mar 2008 15:13:38 +0000 Subject: [PATCH] ebl Tweak page --- docs/home-page/en/pages/testimonial.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/home-page/en/pages/testimonial.php b/docs/home-page/en/pages/testimonial.php index 1afaacdf..6d399b93 100644 --- a/docs/home-page/en/pages/testimonial.php +++ b/docs/home-page/en/pages/testimonial.php @@ -337,7 +337,7 @@ information about how this data will be used. -
+ @@ -560,12 +560,12 @@ Nics: "; - echo ""; + echo ""; echo "
"; echo "
"; } else { - echo ""; + echo ""; } ?> @@ -679,10 +679,10 @@ if ($_REQUEST['action'] == 'Modify') { $form = load_formul($filename); if ($form['org_logo'] && file_exists($form['org_logo'])) { - rename($upload_dir + $form['org_logo'], $upload_dir + $form['org_logo'] + '.remove'); + rename($upload_dir + $form['org_logo'], 'removed.' + $upload_dir + $form['org_logo']); } if (file_exists($filename)) { - rename($filename, "$filename.remove"); + rename($filename, "$filename-removed"); echo "Profile deleted"; } @@ -775,14 +775,15 @@ function view_all() /* Ceci est la facon correcte de traverser un dossier. */ $i = 0 ; while (false !== ($file = readdir($handle))) { - if (preg_match("/profile.[a-z0-9\.]+/", $file)) { + if (preg_match("/^profile.[a-z0-9\.]+$/", $file)) { if (($i >= $offset) && ($i < $max)) { - print_formul_file("$dat_dir/$file",$admin); + $i += print_formul_file("$dat_dir/$file",$admin); + } else { + $i++; } if ($i > $max) { break; - } - $i++; + } } } closedir($handle); @@ -802,7 +803,7 @@ function view_all() function export_form($formul) { - global $country_lst, $org_type_lst, $org_industry_lst, $os_lst, $catalog_lst; + global $country_lst, $org_type_lst, $org_industry_lst, $os_lst, $catalog_lst, $version_lst; $attribs = array('contact_name','email_address', 'org_name','title','website', 'hardware_comments','comments', @@ -868,7 +869,7 @@ Best regards. "; - mail('testimonials@rt.baculasystems.com', $subject, $message, "From: $name <$email>"); + mail('testimonial@rt.baculasystems.com', $subject, $message, "From: $name <$email>"); echo "The email has been sent for approval.
"; } @@ -1132,7 +1133,7 @@ function dump_sql() if ($handle = opendir($dat_dir)) { /* Ceci est la facon correcte de traverser un dossier. */ while (false !== ($file = readdir($handle))) { - if (preg_match("/profile.[a-z0-9\.]+/", $file)) { + if (preg_match("/^profile.[a-z0-9\.]+$/", $file)) { $tmpv = array(); $tmpk = array(); $form = load_formul("$dat_dir/$file"); -- 2.39.5