php-general Digest 14 Aug 2011 13:23:25 -0000 Issue 7443
Topics (messages 314517 through 314520):
New version : EasyPHP 5.3.7 RC5 with PHP 5.3.7 RC5
314517 by: EasyPHP
trying this again....
314518 by: Tamara Temple
314519 by: Michelle Konzack
Re: Login with Remember me Feature
314520 by: Alekto Antarctica
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi
PHP 5.3.7 RC5 is now included in the Wamp package EasyPHP 5.3.7 RC5.
Enjoy!
Website : www.easyphp.org
Screenshots : www.easyphp.org/screenshots.php
Facebook page : www.facebook.com/easywamp
Twitter : www.twitter.com/easyphp
--- End Message ---
--- Begin Message ---
I didn't know the server would reject this, but I'd really like to
know if anyone else has encountered this....
Begin forwarded message:
From: Mail Delivery Subsystem <mailer-dae...@googlemail.com>
Date: August 13, 2011 7:23:02 PM CDT
To: tamouse.li...@gmail.com
Subject: Delivery Status Notification (Failure)
Delivery to the following recipient failed permanently:
php-gene...@lists.php.net
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the
recipient domain. We recommend contacting the other email provider
for further information about the cause of this error. The error
that the other server returned was: 550 550 Apparent off-topic email
rejected. (state 18).
----- Original message -----
Received: by 10.236.175.40 with SMTP id y28mr7959372yhl.
93.1313281379046;
Sat, 13 Aug 2011 17:22:59 -0700 (PDT)
Return-Path: <tamouse.li...@gmail.com>
Received: from [192.168.1.136] (c-71-63-211-0.hsd1.mn.comcast.net
[71.63.211.0])
by mx.google.com with ESMTPS id c63sm4184829yhe.
4.2011.08.13.17.22.57
(version=SSLv3 cipher=OTHER);
Sat, 13 Aug 2011 17:22:57 -0700 (PDT)
Subject: OT: failures installing Zend PDT in Eclipse
From: Tamara Temple <tamouse.li...@gmail.com>
To: php-gene...@lists.php.net
Content-Type: text/plain; charset="UTF-8"
Date: Sat, 13 Aug 2011 19:22:47 -0500
Message-ID: <1313281367.9066.3.camel@caesar>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.2
Content-Transfer-Encoding: 7bit
While not really a PHP issue, per se, I thought someone here might
have
some light to shed on this.
I have a new install of Ubuntu 11.04 and fresh Eclipse 3.5 (Gallileo)
installation from Ubuntu Software Center.
I'm trying to install the Zend PDT package in Eclipse using the info
they give on their web site as best I can (it's for a previous version
of Eclipse, unfortunately). When I run the install, I get the
following
errors:
!ENTRY org.eclipse.equinox.p2.engine 4 4 2011-08-13 11:35:35.484
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-08-13 11:35:35.485
!MESSAGE session context was:(profile=PlatformProfile,
phase
=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect,
operand=, action=).
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2011-08-13
11:35:35.485
!MESSAGE No repository found containing:
osgi.bundle,org.zend.php.debug.debugger,5.3.18.v20110322
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2011-08-13
11:35:35.485
!MESSAGE No repository found containing:
osgi.bundle,org.zend.php.debug.debugger.linux.x86,5.3.18.v20110322
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2011-08-13
11:35:35.485
!MESSAGE No repository found containing:
org.eclipse.update.feature,org.zend.php.debug_feature,5.3.18.v20110322
Anyone have any clues about what I should be doing to get PDT
installed
in this version of Eclipse?
--- End Message ---
--- Begin Message ---
Hello Tamara,
I had this too and from an Admin (ome years ago) I know if there is an
"[OT]" or "OT:" in the subject, the list reject the mail.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
##################### Debian GNU/Linux Consultant ######################
Development of Intranet and Embedded Systems with Debian GNU/Linux
itsystems@tdnet France itsystems@tdnet
Owner Michelle Konzack Owner Michelle Konzack
Apt. 917 (homeoffice) Gewerbe Straße 3
50, rue de Soultz 77694 Kehl/Germany
67100 Strasbourg/France Tel: +49-177-9351947 mobil
Tel: +33-6-61925193 mobil Tel: +49-176-86004575 office
<http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/>
Jabber linux4miche...@jabber.ccc.de
ICQ #328449886
Linux-User #280138 with the Linux Counter, http://counter.li.org/
signature.pgp
Description: Digital signature
--- End Message ---
--- Begin Message ---
Hi guys!
I have now tried to take some of your hints into consideration, by
encrypting the password with md5 adding a salt.
As some of you pointed out, this code is the work of a newbie, that is
totally correct, so please bear with me ;)
I have tried to implement a cookie to remember the login for 48 hours, but
it still logs the user out after the default 24min for a session like this:
* //We compare the submited password and the real one, and we
check if the user exists*
* if($dn['password']==$password and mysql_num_rows($req)>0)*
* {*
* *
* //If the password is ok, we set the $loginok var to
true*
* $loginok = true;*
* //If the password is good, we dont show the form*
* $form = false;*
* *
* }*
* if ($loginok = true)*
* {*
* if ($remember=="on")
*
* setcookie("username",
$username, time()+7200*24);*
* elseif ($remember=="")
*
* //We save the user name in the session username and the
user Id in the session userid*
* $_SESSION('username')=$username; *
* $_SESSION['userid'] =
$dn['id'];*
* $_SESSION['usr_level'] =
$dn['usr_level'];*
*
*
*.*
*.*
*.*
*.*
*.*
*.*
*}*
Another problem I am now facing, is to check whether to user is logged in,
and if it is the user should be redirected from the index-page(with the
login-form) to its user area based on the user level(newbie, advanced or
admin).
For now I have written a function, in the config.php.
*function loggedin()*
*{*
* if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))*
* {*
* $loggedin = true;*
* return $loggedin;*
* }*
*}*
I have both tried to include the config.php into the index-page(login-form)
and into the connexions.php script (where cookie is implemented). Along with
this code:
*<?php*
*
*
*if (loggedin==true)*
*{*
* if($usr_level == admin)*
* {*
* ?>*
*<div class="message">You have successfuly been logged in. You can now
access the admin area.<br />*
*<?php header("Location: index_admin.php"); ?></div>*
*<?php*
* }*
* if($usr_level == newbie)*
* {*
* ?>*
*<div class="message">You have successfuly been logged in. You can now
access to the newbie area.<br />*
*<?php header("Location: index_newbe.php"); ?></div>*
*<?php*
* }*
* if($usr_level == advanced)*
* {*
* ?>*
*<div class="message">You have successfuly been logged in. You can now
access the advanced area.<br />*
*<?php header("Location: index_advanced.php"); ?></div>*
*<?php*
* }*
* *
*}*
*
*
*?> *
*
*
This does not redirect an alredy logged in user to its user area...
I know this is messy, but if some of you can spot some improvements that
hopfully can fix my cookie and redirect problem, please let me know.
Tanks a lot!
--- End Message ---