Has this been posted yet for download. I was would love to try it out.
Thanks
Search found 5 matches
- Wed 23. Mar 2005, 22:16
- Forum: hacks & enhancements
- Topic: User-groups and advanced user / groups access rights
- Replies: 77
- Views: 35150
- Thu 29. Jan 2004, 07:32
- Forum: phpwcms Support English
- Topic: The PHP Include function - question for hack
- Replies: 4
- Views: 1831
One Issue
You can't use single quotes, it destroys the native phpwcms parsing apparently.
I am hoping this doesn't totally screw me on other things later.
I am hoping this doesn't totally screw me on other things later.
- Thu 29. Jan 2004, 07:29
- Forum: phpwcms Support English
- Topic: The PHP Include function - question for hack
- Replies: 4
- Views: 1831
Pretty much solved
Here is the code
This goes in inc_front/content.func.inc
// use internal PHP code (also normal HTML snippets)
if( ! ( strpos($content["all"],'{CODE:')===false ) ) {
// uses internal php code snippet, no <? or ?>
$content["all"] = preg_replace('/\{CODE:(.*?)\}/e', 'run_php_code("$1 ...
This goes in inc_front/content.func.inc
// use internal PHP code (also normal HTML snippets)
if( ! ( strpos($content["all"],'{CODE:')===false ) ) {
// uses internal php code snippet, no <? or ?>
$content["all"] = preg_replace('/\{CODE:(.*?)\}/e', 'run_php_code("$1 ...
- Thu 29. Jan 2004, 06:23
- Forum: phpwcms Support English
- Topic: The PHP Include function - question for hack
- Replies: 4
- Views: 1831
Where I am currently
If anyone is interested, there have been a few views, I could reaslly use help solving this.
Here is where the code has been heading.
if( ! ( strpos($content["all"],'{CODE:')===false ) ) {
// includes external PHP script and returns the content
$content["all"] = preg_replace('/\{CODE ...
Here is where the code has been heading.
if( ! ( strpos($content["all"],'{CODE:')===false ) ) {
// includes external PHP script and returns the content
$content["all"] = preg_replace('/\{CODE ...
- Thu 29. Jan 2004, 02:41
- Forum: phpwcms Support English
- Topic: The PHP Include function - question for hack
- Replies: 4
- Views: 1831
The PHP Include function - question for hack
I am working on using the same capability of the php include funtction to create a hack that will allow me to insert php code into the system rather than including a seperate file.
I think the include for the seperate file is great, but it is a pain if I need to use small snippets of code in php ...
I think the include for the seperate file is great, but it is a pain if I need to use small snippets of code in php ...