Re: [campsite-support] PHP in 3.x?
  • Please edit the file *CampTemplate.php* from the directory *
    [campsite_install_dir]/template_engine/classes*.

    Insert the following two lines at line 74:
    $this->security = false;
    $this->php_handling = SMARTY_PHP_ALLOW;

    just before the line:
    } // fn __constructor

    Please let me know if this helped.

    Mugur

    On Wed, Feb 4, 2009 at 5:27 AM, wrote:

    > Author: BUL
    > Link: http://code.campware.org/phorum/read.php?8,6877,6877#msg-6877
    >
    > --------------------------------------------------------------------------------
    >
    > I have this code in my old 2.x template.
    >
    > How I must rewrite this to work in 3.x?
    > For curious one.. this is must for flash security tweak.
    > I already try with new syntax.. {{ php }} & {{ /php }}
    >
    > __________
    > > // turn off NOTICE error reporting
    > $ext="http://feeds.bbc.co.uk/serbian/index.xml";
    > error_reporting (E_ALL ^ E_NOTICE);
    > if (function_exists('curl_init')) {
    > $ch = curl_init($ext);
    > curl_setopt($ch, CURLOPT_HEADER, 0);
    > curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    > echo curl_exec($ch);
    > curl_close($ch);
    > }
    > else {
    > readfile($ext);
    > }
    > ?>
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • 5 Comments sorted by
  • No Mugur, it is not work. I will try with support and let you know solution.

    Regards
  • No working solution for Flash tweak.
    I must drop to: 1. IFrame from my server.. 2. Java? PHP seems can't work at all... Anyway I am not in mood for hacking this month..


  • Can you give me access to your site, I don't understand why {{ php }}
    doesn't work for you. I didn't encounter such a problem.

    Mugur

    On Wed, Feb 18, 2009 at 3:36 PM, wrote:

    > Author: BUL
    > Link: http://code.campware.org/phorum/read.php?8,6880,6891#msg-6891
    >
    > --------------------------------------------------------------------------------
    >
    > No working solution for Flash tweak.
    > I must drop to: 1. IFrame from my server.. 2. Java? PHP seems can't work
    > at all... Anyway I am not in mood for hacking this month..
    >
    >
    >
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • Check your email Mugur, thanks.
  • please Mugur, reply to bulpabul@gmail.com