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 - Alain

Pages: [1] 2
1
Installation, Update & Configuration / 4images is spyware :(
« on: June 27, 2002, 01:19:53 PM »
I was surprised to receive a message from Jan to inform me to put back the full copyright notice which I immediately put back once notified.

I didn't really referenced my website on the web and so I was wondering how he did find me.

But this morning I opened my admin panel and saw a little message saying that there is a new version!!!

It is easy to get the HTTP referer which a Javascript/PHP code...

To remove the spy :

admin/index.php

Line 88 to 95

<script language="JavaScript" type="text/javascript" src="http://www.4homepages.de/version/version.php"></script>
<script language="JavaScript" type="text/javascript">
<!--
if ('<?php echo SCRIPT_VERSION; ?>' != latestversion) {
document.write(latestversioninfo);
}
// -->
</script>

 :twisted:

2
Discussion & Troubleshooting / Found
« on: June 26, 2002, 05:10:39 PM »
MySQL table 4images_users : user_activationkey

 8)

3
Discussion & Troubleshooting / Re-send activation code
« on: June 25, 2002, 11:58:35 AM »
Hi, is it possible to regenerate activation codes in case the mail server is down? A kind of 'lost password' like 'lost activation code'

 :P

4
Discussion & Troubleshooting / Authentication
« on: June 22, 2002, 05:20:42 PM »
I tried discussion solutions at http://www.4homepages.de/forum/viewtopic.php?t=321&highlight=auth but they don't seem to work for me. It is returning an array but with nothing in.

I would like to know how to block people from viewing pictures if they are not registered (I know that it may be possible at the setup process but I can't remember and maybe that it would kill my current config.) ?

Finally, you may have already answered to this question, but how to add a link just below the LogOut button for members? I would like to add a link only for members and if they are already logged in.

Danke gut!!

5
Discussion & Troubleshooting / Cool!
« on: June 18, 2002, 01:30:02 AM »
It works now, I thought I shouldn't use the full path to the PHP/ZLIB extension. The lightbox ZIP download is xtra!

I still have this problem when you choose 'Open from location' with a picture, it is waiting, waiting... and then nothing appears... The web server is not usable anymore and I have to close the Windows session to make it usable again...  :oops:

6
Discussion & Troubleshooting / Forced download
« on: June 18, 2002, 01:16:09 AM »
I managed to force the download of the picture otherwise if you choose 'Open from location' then it was bugging my web server.



$dlext = ".pix";

if (!empty($file['file_data'])) {
  if (eregi("MSIE", getenv("HTTP_USER_AGENT"))) {
    $disposition = ($action != "zip" && $action != "lightbox") ? 'attachment' : 'inline';
    header("Content-Disposition: $disposition; filename=".$file['file_name']."$dlext\n");
    header("Content-Type: application/x-ms-download\n");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Pragma: public");
  }
  elseif (eregi("Opera", getenv("HTTP_USER_AGENT"))) {
    header("Content-Disposition: attachment; filename=".$file['file_name']."$dlext\n");
    header("Content-Type: application/octetstream\n");
    header("Cache-Control: no-cache");
    header("Pragma: no-cache");
  }
  else {
    header("Content-Disposition: attachment; filename=".$file['file_name']."$dlext\n");
    header("Content-Type: application/octet-stream\n");
    header("Cache-Control: no-cache");
    header("Pragma: no-cache");
  }
  header("Last Modified: ".gmdate("D, d M Y H:i:s")."GMT\n");
  header("Expires: 0\n");
  header("Content-Length: ".$file['file_size']."\n");

  if (eregi("Mac", getenv("HTTP_USER_AGENT"))) {
    header("Content-Transfer-Encoding: binary\n");
    header("Accept-Ranges: bytes\n");
    header("Connection: close\n");
  }
  echo $file['file_data'];
}


The extension .pix is added to make it viewable only if already downloaded  :o


[/i]

7
Discussion & Troubleshooting / GZIP
« on: June 18, 2002, 12:55:36 AM »
Could you give a step-by-step instruction to install this GZIP support with Apache/PHP?
I've totally switched to the normal Apache/PHP/MySQL system but this button will never show up!!!

 :evil:

8
Discussion & Troubleshooting / OK
« on: June 17, 2002, 11:47:03 PM »
I'll try to get rid of this french s***  :twisted:

9
Discussion & Troubleshooting / EasyPHP
« on: June 17, 2002, 11:22:27 PM »
This isn't EasyPHP package  :lol:

10
Discussion & Troubleshooting / Nothing
« on: June 17, 2002, 10:08:49 PM »
Still nothing, is there a way to check if my config. is OK for this feature?

11
Discussion & Troubleshooting / Applied
« on: June 17, 2002, 08:47:38 PM »
I applied pre-solution http://www.4homepages.de/forum/viewtopic.php?t=606 but this button doesn't want to show up.

 :oops:

12
Hi, I've activated GZIP feature in the admin. panel and activated in the PHP.INI the php_zlib.dll module and also installed the Apache GZIP dll module but still the Download ZIP button doesn't appear beside the Download button...? Why?

Also the download button works (save as) but if you choose OPEN FROM THE LOCATION and do not want to save it but open it in your browser directly then it is waiting, waiting... and the Apache web server is then unable to load any picture if I come back to my site. As if the connection couldn't be closed...
If no workaround is possible, how to force the user to download the picture and not ask to open from the location?

Thanks!

 8)

13
Discussion & Troubleshooting / Comment
« on: June 17, 2002, 02:57:46 PM »
I think that the interest of this DOWNLOAD button is to restrict users so that if you are not registered then it will fail to download. If you look at includes/functions.php then you should see the download button template.

14
Discussion & Troubleshooting / EXCELLENT!
« on: June 17, 2002, 02:36:22 PM »
It works now!  8)

Before applying, I tried to look at http://www.php.net/manual/en/function.fopen.php


Newbie advice: The little "b" for binary operations is very
essential when working with PHP4 and Apache on the win32 platform. fread()
only reads a couple of hundred bytes when reading for example an image
without "b".
// Read tempfile data into $thumb_img.
$thumb_file_size = filesize('C:\\Temp\\temp.jpg');
$fp = fopen('C:\\Temp\\temp.jpg', "rb");
$thumb_data = addslashes (fread ($fp, $thumb_file_size));
fclose ($fp);
unlink('C:\\Temp\\temp.jpg');


This case can be closed then, I hope it will help you to improve again your excellent application!  :P

15
Discussion & Troubleshooting / More info...
« on: June 17, 2002, 02:28:17 PM »
I will try this, however, you can reproduce the workflow with http://www.easyphp.org/?lang=en - EasyPHP 1.6 which is installing Apache+PHP+MySQL under Windows 2000.

Pages: [1] 2