Jump to content

irfandayan

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

irfandayan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have developed a membership plugin (Wordpress) which provides different membership levels. It facilitate users with content, membership managment, protect variety of content and etc. It supports PayPal, Authorize.net and ClickBank payments. It provide multiple autorespnoders like Aweber, MailChimp and GerResponse I have an other RESTful API which provides licensing services. I'm able to genereate license key, validate and update keys via this service. I need to integrate my membership plugin with that Software Licesning service, that means if someone downloads the plugin and installs it on their wordpress site, it should at first not work. Instead it asks them to provide a license key. Now suppoese if the user purchases the license key for that membership plugin. Sometimes there are different versions of a license, like basic or pro or ultimate , the person issuing the license can make choose whatever he wants and indicate that in "disposition" So let's say user had a "basic" version of my membership plugin that only supported paypal payments or only supported Aweber. I can get the license information and see that disposition = basic tthen i would render only the basic elements. if i see that disposition = pro then i would render the entire plugin. If the license ever expired, I would disable the plugin and ask for a new license key again. if the license key that they provide was expired or deleted or invalid then i would not enable the plugin but would keep asking for a license key until i got one that was valid. I hope you understand all that, What would be the best way to accomplish this integration? How can i manage different elements rendering of my plugin on base of license key? Please refer me to some good example which model this kind of integration? I'm experienced developer and i know how to code but i am looking for some professional way to accomplish this kind of integration. I do appreciate all of your help. Thanks
  2. @DavidAM - The only solution to my problem seems to stripslashes and it almost works for me. I have managed it to work for me. Really appreciate your great concern on my issue. Thanks
  3. I was looking for magic quotes via get_magic_quotes_gpc() function. Yes, your guess is right, i am running a plugin on WordPress. I run your script and it doesn't add any back slashes and i looked into my php.ini file and found magic_quotes_gpc = Off ; magic_quotes_runtime = Off; your script produces correct output. Now it is clear that my magic quotes are off but i think there seems something involve with WordPress which escapes my $_POST within my plugin script. I have the similar problem like: http://stackoverflow.com/questions/8949768/with-magic-quotes-disabled-why-does-php-wordpress-continue-to-auto-escape-my Thanks
  4. Hi DavidAM, Thanks for such a great help. I really appreciate your explanation. 1) I have one other question, my magic quotes always return FALSE on PHP Version 5.3.1 but my $_POST always get a single back-slash before certain special characters. why this happening? How can i detect that my $_POST getting slashes other than magic quotes? And when i escape my $_POST values individually it again gets second slashes. Can you please help this regards for best solution? 2) how can i strip all slashes at once. Suppose i have too many slashes in string and i want to strip all at once. The function stripslashes remove only two slashes and some case i have to call stripslashes multiple times like $message = stripslashes(stripslashes($message));? Thanks in advance for such a great support.
  5. I have mail function which gets mail message from a textarea. But whenever there is apostrophes and new line it show it like below. Example Output: Comments: You\\'re mailing address was wrong. Couldn\\'t you provide an other? Survey Answers: item : You\\'re making it well. Isn\\'t it?\nitem2 : It\\'d better to have a cup of tea?\n 1) There are three slashes added along with apostrophes. Is it likely something to do with magic escaping? is the stripslashes function the better option to remove it? 2) New line converted to \r\n. The issue is the \r\n might be a windows artifact. On a Linux server it might be \n only. Is it would be enough to use str_replace('\r\n', "\n", $message); ? Then str_replace("\n", " ", $message); ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.