Find out if an osCommerce customer is logged in and their email address [closed] - oscommerce

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I find out the email address of a user when he's logged in to osCommerce? I want to display the following message at the top of my website:
When not logged in:
Welcome Guest! (Login or Signup)
When logged in:
Welcome {email address} (Logout)
What do I need to do for this to happen?

When a customer successfully logs into their account, the following session variable is filled in with a non-zero, non-empty integer value:
$_SESSION['customer_id']
If your install hasn't been upgraded away from using globals, it will be in the following:
$customer_id
From there you can use it to query the database to look up their email address and whatever else.
Or you can change your login code to fetch and add the email address into the session so you can reference it later and save yourself an extra database query.

Related

How to set password to staging env for a django app on Heroku? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'd like to password-protect my staging environment so it's not accessible to the public. Also, the password protection should not be tied to Django's authentication backend, so that I can test features (e.g. creating an account for user, logging in / out, etc.).
How best to achieve that?
So here are some ideas:
Do not make a registration possible. No form, no form validation etc
Give users you created special profile attributes like is_real_user = models.BooleanField(default=False) or maybe a group. Check or uncheck the boolean in the admin only!
Check in the views, templates, forms etc if the user has the attribute is_real_user and if not send 404/Validation_error
The first view on your "homepage" (start page) can have a form where user needs to type in password(s). Do a form validation and if its True render next template else 404/Validation_error and redirect him again to the main page.
Save in session/userprofile that the password was correct and check on templates/views if the correct password is given (again Booleanfield) else 404/Validation_error
Do not tell anybody about your site, url.
Hope that helps a bit :)

Cannot use GTalk in Pidgin after enabling 2 step verification [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I was unable to use GTalk from my Pidgin IM after enabling two step authentication for Google.
I get an error that the account is disabled. How can I get around that?
After enabling Google's 2-step authentication, you have to create app specific passwords for some apps. Go to https://myaccount.google.com/apppasswords and create a password for Pidgin. Then use the password that Google will generate in Pidgin.
A) First Signin to gmail account.
B) Now visit IssuedAuthSubTokens Link. Enter the password again if it ask.
C) In step 1, Type 'GTalk' & click 'Generate Password'
D) Now it shows a password with characters. Copy that password in notepad and save it safely. ( Important ) 
E) Click 'Done'.
Now access Gtalk. Enter username and then paste the password you copied in password field. Finally click 'signin'. Now gtalk login successfully!

How can I find my Facebook app id and secret key? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have already registered as a Facebook Developer but i am not finding any app id and secret key . Can Anyone help me ??
The list of all your apps and their settings (including id and secret) is here:
https://developers.facebook.com/apps
You may want to check out some tutorials about facebook apps, for example:
http://www.emanueleferonato.com/2009/09/20/developing-a-facebook-application-for-absolute-beginners/
Also, the official documentation is not that bad, but pretty big:
https://developers.facebook.com/docs/
You will find a developer link at the bottom of the page, after opening it you will find apps link at top right of page, click it to see your apps detail.
or
simple way is just login to facebook and copy below link to your browser.
https://developers.facebook.com/apps

Joomla 2.5: Unable to login back-end and front-end [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm suddenly not able to login anymore, neither at back-end nor front-end. I'm sure that I use the correct username/password and that the user is enabled. I have checked this with phpmyadmin. The error message I get is that the username/password is incorrect. I have also tried to recover my password and I finished this successfully, but when I try to login it again tells me that username/password is incorrect.
Any ideas what I can try to fix this issue? I have access to the web-server and database.
I found the solution. I did disable joomla-authentication plugin. Just make sure that plg_authentication_joomla is enabled in the _extensions table in your joomla database.

Update Facebook App Permissions [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Facebook app and would like to change the permissions on it. These were straightforward to set when I created the app, but when I login to the app and go through the settings, I can't find any mention of permissions. Where do I go to update the permissions on an existing app?
If you are user using another app: you cannot modify existing permissions. The best you can do is deauthorize the app.
If you are the owner of the app, and you want to ask for additional permissions: then you simply need to redirect your present users to the app authorization link requesting them to authorize the new permissions.
This assumes that you are referring to the API permissions. http://developers.facebook.com/docs/reference/api/permissions/