latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Yolanda O'Bannon

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Locked out of website: Max logins

By:  Dave Preston in: Community Forum

voices: 2
replies: 2

4 years, 1 month ago  Eduan

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Friday Apr 5th, 2013 at 1:40 pm #46719

Hi Eduan,

We have enabled eval() but blacklisted the spammers toolbox with the above config. Hopefully s2member will not require the use of the spammers toolbox in the next generation.

Thanks,

Rich
Senior Web Applications Developer

Posted: Friday Mar 29th, 2013 at 5:13 pm #46095

In the meantime this suhosin line may help, turn eval back on in order to launch but blacklist some functions that should not be allowed:

suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = On
suhosin.executor.eval.blacklist=include,include_once,require,require_once,curl_init,fpassthru,file,base64_encode,base64_decode,mail,exec,system,proc_open,leak,syslog,pfsockopen,shell_exec,ini_restore,symlink,stream_socket_server,proc_nice,popen,proc_get_status,dl,pcntl_exec,pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, socket_accept, socket_bind, socket_connect, socket_create, socket_create_listen, socket_create_pair,link,register_shutdown_function,register_tick_function,create_function,passthru,p_open,proc_close,proc_get_status,proc_terminate

Posted: Tuesday Mar 26th, 2013 at 10:19 am #45761

Hello Eduan,

Thank you for your response.

Yes we are running 130221.

From the changelog the eval() issue was last addressed in 130213.

* (s2Member/s2Member Pro) **General Code Cleanup** Removing all unnecessary uses of PHP’s `eval()` function in s2Member’s codebase. These were used to keep repetitive code all in a single line; part of a standard the WebSharks™ development team is now moving away from. Removed in this release to improve readability for developers; and to prevent unnecessary confusion.

# grep “eval(” *
login-customizations.inc.php: eval(“?>”.$code);
tracking-codes.inc.php: eval(“?>” . $code);
# grep “eval (” *
utilities.inc.php: eval (“?>” . trim ($code));
utils-s2o.inc.php: eval (“?>” . trim ($code));
# pwd
…wp-content/plugins/s2member/includes/classes

Hm, only 4 left, great…

However, in the classes directory:
# grep evl *

[A page of deps listed… evl() calls eval() ]

Apparently some UI rendering and “shortcode” looks like.

Can you replace the eval()/evl() dependencies for UI rendering and Shortcode with a lightweight templating engine instead? Or just use simpler template strings where possible:
http://stackoverflow.com/questions/7683133/does-php-have-a-feature-like-pythons-template-strings

Thanks!
Rich Kucera
Senior Web Applications Dev/Admin
Howard Hughes Medical Insitute
kucerar@hhmi.org

Posted: Friday Oct 5th, 2012 at 2:38 pm #27594

Thanks, again, Raam, these are great responses. All of our courses are free to the users so we don’t need to concern ourselves with issues of payment. Hopefully, we can do everything we need to do with multiple levels and custom capabilities, all with allowing no-cost access to all of our users.

Posted: Thursday Oct 4th, 2012 at 4:28 pm #27474

Sorry, I forgot one thing. Would the same person, a student John Smith for example, be able to sign up for 2 different courses?

Posted: Thursday Oct 4th, 2012 at 4:20 pm #27473

Thanks again,

By “hierarchical” I meant what you referred to as “cumulative” access, so that teachers have access to all the student materials but not vice versa. So in our scenario, Course #1 and Course #2 could each have separate access AND teachers in Course #1 would have higher access than students in Course #1 AND teachers in Course #2 would have higher access than students in Course #2.

I appreciate your patience!

Yolanda

Posted: Tuesday Oct 2nd, 2012 at 12:59 pm #27223

Thanks so much for your response, Raam! A few more questions:

  • All of our courses are free. Clearly S2Member is designed for paid membership sites. Will we be able to set up different levels of unpaid access, such as for students and teachers without needing custom programming?
  • It looks like S2Member Pro Version would be able to help us with 2 levels of viewers (teachers and students) in one course. Would we be able to have separate access for multiple courses? For example, we will have a Microscopy course, and a Biology 101 course, and each will need to have hierarchical access for teachers and students. We could eventually have many courses. Could each course have separate hierarchical access for its teachers and students? And would we be able to see in the user lists on WordPress that a particular user had signed up as a teacher to the Microscopy course vs. the Biology 101 course?

Best,

Yolanda
iBioSeminars.org

Viewing 7 replies - 1 through 7 (of 7 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.