Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-10-2003, 02:39 AM   #1
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
PHP encryption script nightmare...

Anyone have a clue why this doesn't work?

http://www.junkiemail.com/encrypt.txt

I'm trying to get xcrypt() to output/return the $decompressed value near the end of the script, while passing 2 settings through the xcrypt() function.

So for instance, I'm trying to get this script to be more modular. It works when it isn't nested within a function, but, I need to be able to call it later in the script with different variables passed to it.

Overview: The script encrypts with $encrypt value=1, and decrypts the encrypted string with a value of 0.

That's all. I just need to be able to call it with a function, and the first value being the text to be encrypted, and second value being if the script is to encrypt(0) or decrypt(1).

My piggy head hurts now.
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2003, 02:43 AM   #2
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
First off, the one problem you are going to be having is keep those variables registered inside the function. Simply use

global $a, $b;

That should solve the problems. Basically, the function doesn't understand otherwise. I could go into more details, but I am tired and need sleep. Good luck. I'll take a stab at it in the morning, give me a holla back @ [email protected]

LaterZ
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2003, 02:50 AM   #3
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
Here's a working example...
http://www.junkiemail.com/encrypt.php?a=123456&b=1

where $a = whatever.... and
$b = 1 for "encrypt" or 0 for decrypt.

The source code for this working script is:
http://www.junkiemail.com/encrypt2.txt
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2003, 02:52 AM   #4
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
english plz
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2003, 02:58 AM   #5
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
extreme rabbit fetish
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2003, 03:04 AM   #6
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
Quote:
Originally posted by Wildcard
extreme rabbit fetish

wanna take over this thread and cyber?
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.