Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fatman

Pages: [1] 2
1
Mods & Plugins (Releases & Support) / phpBB2 redirect function
« on: January 24, 2003, 10:02:03 AM »
When I try to integrated a testing site, I found when login from 4images is fail. the phpBB2 redirect function have prevent 4images login page to redirect back... am i correct?

at phpPP2/include/functions.php
Code: [Select]

function redirect($url)
{
global $db, $board_config;

if (!empty($db))
{
$db->sql_close();
}

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}

// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}

2
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 24, 2003, 02:49:36 AM »
I am OK if change to ShutterSpeedValue: ...
Do your jpeg got ShutterSpeedValue when set the
define('EXIF_CONTROL', false); ?

Quote from: FreDyz
I've tried to use ShutterSpeedValue instead ExposureTime filter in exif.php, but it doesn't work: The Shutter Speed Value doesn't appear in exif info table.

This is the code that I got in exif.php

Code: [Select]

(...)
define('EXIF_FILTER', "
Make:
Model:
ShutterSpeedValue:
FNumber:
ISOSpeedRatings:
MeteringMode:
Flash:
FocalLength:
");
(...)


What is happening?

3
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 22, 2003, 11:45:22 PM »
there is no way in current version.  I may implement language file later... but should not be next version.

My to-do list in mind.

0.4 : Parse maker note (Canon first... of course)
0.5 : Language for EXIF tag

Quote from: FreDyz
Thanks the problem was with the path, all works fine!

One Question: Which is the file that I have to modify to translate Exif data to another language? P.E.: "ExposureTime" to "Tiempo de Exposicion" (in spanish).

Thanks :)

4
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 22, 2003, 10:39:41 PM »
try to use this include if you got path errors.

Code: [Select]

include(ROOT_PATH.'includes/exif.php');


to check do you have exif enable.
write a test.php with
Code: [Select]

<?php
phpinfo
&#40;&#41;;
?>



load this page, you can find a lot configure command, such as
Quote

'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--with-apxs=/usr/sbin/apxs'


check --enable-exif is one if them

5
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 19, 2003, 09:02:21 AM »
the "--enable-exif " have to do when compile the PHP,  or download a binary or RPM at http://www.aucs.org/rpmcenter/ have enable it.  
you can find your PHP enable or not by phpinfo().

6
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 18, 2003, 01:10:23 AM »
....

you can try my functions.php & exif.php, it is 1.7 only with the exif mod.

http://photo.nixrex.com/exif.zip

7
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 17, 2003, 07:02:26 PM »
Done. just modified
Code: [Select]

      if ($detailed_view) {

to
Code: [Select]

      if ((($file_extension == "jpg") || ($file_extension == "jpeg")) &&($detailed_view)) {


I am thinking to parse the MakerNote, the PHP exif function can't do this.
It is quite a lot info about shooting in this.

Quote from: V@no
Quote from: V@no
only thing I'd suggest add to this mod is checking that the picture is jpg, jpeg as in previous version, atherwise in phperror.log get errors.

8
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 17, 2003, 03:26:00 PM »
yes. only the exif.php and functions.php changed.

error... maybe the "}" in functions, it is quite easy to del all "}" if change from 0.2 to 0.3.

I list the whole function in functions.php

Code: [Select]

function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
  global $site_template, $site_sess, $lang, $mode;

  if (!get_file_path($media_file_name, "media", $cat_id, 0, 0)) {
    $media = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
    $site_template->register_vars("iptc_info", "");
  }
  else {
    $media_src = get_file_path($media_file_name, "media", $cat_id, 0, 1);
    $file_extension = get_file_extension($media_file_name);
    $media_icon = "<img src=\"".ICON_PATH."/".$file_extension.".gif\" border=\"0\" alt=\"".$image_name."\" />";
    if ($show_link) {
      $media_icon = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$media_icon."</a>";
    }
    $width_height = "";
    $width = "";
    $height = "";
    $iptc_info = "";
    $src = (!file_exists($media_src) && file_exists(preg_replace("/\/{2,}/", "/", get_document_root()."/".$media_src))) ? preg_replace("/\/{2,}/", "/", get_document_root()."/".$media_src) : $media_src;
    if ($image_info = @getimagesize($src, $info)) {
      $width_height = " ".$image_info[3];
      $width = $image_info[0];
      $height = $image_info[1];
      if ($detailed_view && isset($info['APP13'])) {
        $iptc_array = get_iptc_info($info['APP13']);
        $bgcounter = 0;
        foreach ($iptc_array as $key => $val) {
          $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
          $site_template->register_vars(array(
            "iptc_value" => $val,
            "iptc_name" => $lang['iptc_'.$key],
            "row_bg_number" => $row_bg_number
          ));
          $iptc_info .= $site_template->parse_template("iptc_bit");
        }
      }
      $exif_info = "";
      if ($detailed_view) {
        $exif = exif_read_data ($media_src,'IFD0');
        $bgcounter = 0;
        if ($exif) {
          $exif = exif_read_data ($media_src,0,true);              
          foreach($exif as $key=>$section) {
            if (($key == "IFD0") || ($key == "EXIF")) {
              foreach($section as $name=>$val) {
                 if (!(exif_filter($name)) && exif_filter_control()) continue;
                $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
                $site_template->register_vars(array(
                  "exif_value" => exif_parse_value($name, $val),
                  "exif_name" => $name . ":",
                  "row_bg_number" => $row_bg_number
                ));
                $exif_info .= $site_template->parse_template("exif_bit");
              }
            }
          }
        }
      }
    }
   
    $site_template->register_vars(array(
      "media_src" => $media_src,
      "media_icon" => $media_icon,
      "image_name" => $image_name,
      "width_height" => $width_height,
      "width" => $width,
      "height" => $height,
      "iptc_info" => $iptc_info,
      "exif_info" => $exif_info
    ));  
    $media = $site_template->parse_template("media/".$file_extension);
  }
  return $media;
}

9
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 17, 2003, 04:20:35 AM »
I have try your site image, also got your error even by the PHP built-in function of 0.3 ....

Quote from: V@no
I probably do something wrong, but it doesnt display anything now....it's like in output no information to display...

10
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 17, 2003, 01:09:58 AM »
I have make a update version 0.3 which use php exif function.
You may have a trial.  I have tried to upload one of your image, seem that it is OK on the ISO, aperture...

11
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: January 16, 2003, 12:28:27 PM »
I have modified one line of code of PART 3, it should improve the performance when listing the thumbnail.

from

Quote

      if (($file_extension == "jpg") || ($file_extension == "jpeg")) {


to

Quote

      if ((($file_extension == "jpg") || ($file_extension == "jpeg")) && ($detailed_view)) {

12
Mods & Plugins (Releases & Support) / Re: Some data not correct
« on: January 16, 2003, 11:25:14 AM »
I am also using the D60, but I don't have your problem....

You may take a look on
http://photo.nixrex.com/details.php?image_id=182

Which version of firmware you are using? are you using the RAW format?

Anyway, I am tring to make the EXIF MOD to use PHP 4.2 built in functions
rather than the exifer.  After this, I will try to write the EXIF field display control.

Quote from: jengwen

Some of the fields seem to work, but some don't.  I am particularily concerned with ISO, Aperature/Fnumber, and Shutter Speed.  If you go to www.jenrichardsphotography.com you can see the problem on any image you select.  I also tried uploading an image on your site, ran it through your EXIFER and the info is wrong there too.  I have looked at the code and can't find the problem.  Also, do you have any plans to parse out the MakerNote fields for Canon?  I was going to try to do it myself, but can't quite get a handle on how the IFD tags work.  Lastly, is there a way to display only certain EXIF fields on the detail page instead of all of them?

13
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: December 28, 2002, 06:36:52 AM »
should be some program error..
the last field is "unknown::", it got two colons.  Normally, it should only got one ":" per field, there may be some looping problem.

Any other have tried it and succeed?

14
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: December 27, 2002, 07:11:54 PM »
Oh!!! I miss one "}"

there should be seven "}" at the end
Code: [Select]

                    $exif_info .= $site_template->parse_template("exif_bit");                  
                   }
                }
              }
            }
          }
        }
      }

15
Mods & Plugins (Releases & Support) / [Mod] EXIF 0.3
« on: December 27, 2002, 06:55:19 AM »
Quote from: V@no
I dont see any difference between v0.1 and v0.2, its shows exact same info, no new field and same funny ceracters in MakerNote, even though when I checked that picture at the site it showed me clear text info...
then I deleted
Code: [Select]
include('exif.php'); to check if the script give any erorros - and still it print EXIF information...well, I have PHP v4.2.3, maybe it uses only build in EXIF_INFO...


then, it may because you have not modified following code.
it use different function call, it should be error if remark the include line.
Quote

3. Open "includes/functions.php" and add after:
Code: [Select]
     if ($detailed_view && isset($info['APP13'])) {
        $iptc_array = get_iptc_info($info['APP13']);
        $bgcounter = 0;
        foreach ($iptc_array as $key => $val) {
          $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
          $site_template->register_vars(array(
            "iptc_value" => $val,
            "iptc_name" => $lang['iptc_'.$key],
            "row_bg_number" => $row_bg_number
          ));
          $iptc_info .= $site_template->parse_template("iptc_bit");
        }
      }


this code:
Code: [Select]
     $exif_info = "";
      if (($file_extension == "jpg") || ($file_extension == "jpeg")) {
        $exif = read_exif_data_raw($media_src,0);
        $bgcounter = 0;
        if ($exif > "") {
          foreach($exif as $key=>$section) {
         
            if (is_array($section)) {
              foreach($section as $name=>$val) {
                $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
                $site_template->register_vars(array(
                  "exif_value" => ((is_array($val)) ? "" : $val),
                  "exif_name" => $name . ":",
                  "row_bg_number" => $row_bg_number
                ));
                $exif_info .= $site_template->parse_template("exif_bit");              
              if (is_array($val)) {
               foreach($val as $s_name=>$s_val) {
                    $site_template->register_vars(array(
                      "exif_value" => $s_val,
                      "exif_name" => "&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;" . $s_name . ":",
                      "row_bg_number" => $row_bg_number
                    ));
                    $exif_info .= $site_template->parse_template("exif_bit");              
               }
                }
              }
            }
          }
        }



I have get one of the image from your homepage and put to my server for testing.(I will delete it later), you can take a look.

http://come.no-ip.com/details.php?image_id=1315
http://photo.nixrex.com/details.php?image_id=233

Pages: [1] 2