Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for phpMyEdit/phpMyEditSetup.php between version 1.46 and 1.47

version 1.46, 2006/09/08 17:09:02 version 1.47, 2006/09/09 07:34:44
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEditSetup.php,v 1.45 2006-09-08 07:34:30 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEditSetup.php,v 1.46 2006-09-08 17:09:02 michal Exp $ */
   
 ?>  ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
Line 134  function check_constraints($tb,$fd)
Line 134  function check_constraints($tb,$fd)
   return $constraint_arg;    return $constraint_arg;
 }  }
   
   function get_versions()
   {
           $ret_ar  = array();
           $dirname = dirname(__FILE__);
           foreach (array(
                                   'current' => __FILE__,
                                   'setup'   => "$dirname/phpMyEditSetup.php",
                                   'core'    => "$dirname/phpMyEdit.class.php",
                                   'version' => "$dirname/doc/VERSION")
                           as $type => $file) {
                   if (@file_exists($file) && @is_readable($file)) {
                           if (($f = fopen($file, 'r')) == false) {
                                   continue;
                           }
                           $str = trim(fread($f, 4096));
                           if (strpos($str, ' ') === false && strlen($str) < 10) {
                                   $ret_ar[$type] = $str;
                           } else if (preg_match('|\$Platon:\s+\S+,v\s+(\S+\.\S+)\s+|', $str, $matches)) {
                                   $ret_ar[$type] = $matches[1];
                           }
                           fclose($f);
                   }
           }
           return $ret_ar;
   }
   
   
 $self = basename($_SERVER['PHP_SELF']);  $self = basename($_SERVER['PHP_SELF']);
 $dbl  = @mysql_pconnect($hn, $un, $pw);  $dbl  = @mysql_pconnect($hn, $un, $pw);
Line 271  if ((!$dbl) or empty($submit)) {
Line 297  if ((!$dbl) or empty($submit)) {
         if ($pageHeader) {          if ($pageHeader) {
                 echo_buffer('<h3>'.$pageTitle.'</h3>');                  echo_buffer('<h3>'.$pageTitle.'</h3>');
         }          }
           $versions    = '';
           $versions_ar = get_versions();
           foreach (array(
                                   'version' => 'phpMyEdit version:',
                                   'core'    => 'phpMyEdit.class.php core class:',
                                   'setup'   => 'phpMyEditSetup.php script:',
                                   'current' => 'generating setup script:')
                           as $type => $desc) {
                   $version = isset($versions_ar[$type]) ? $versions_ar[$type] : 'unknown';
                   $versions .= sprintf("\n *  %36s %s", $desc, $version);
           }
         echo_buffer("<?php          echo_buffer("<?php
   
 /*  /*
Line 280  if ((!$dbl) or empty($submit)) {
Line 317  if ((!$dbl) or empty($submit)) {
  * online and also for download on phpMyEdit project management page:   * online and also for download on phpMyEdit project management page:
  *   *
  * http://platon.sk/projects/main_page.php?project_id=5   * http://platon.sk/projects/main_page.php?project_id=5
    *
    * This file was generated by:
    *$versions
  */   */
   
 // MySQL host name, user name, password, database, and table  // MySQL host name, user name, password, database, and table

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top