is it possible to run php scripts from OTRS?
My goal is to implement a 5 star rating script on the public FAQ interface. I want that our customers should rate our FAQ articles without logging in the customer (customer.pl) interface.
I have found this smaple and now want to impelent it: http://sandbox.ronggur.com/2009/05/30/j ... -with-php/
Therefore I have modified the PublicFAQZoom.dtl with:
Code: Select all
<ul class='star-rating'>
<li class="current-rating" id="current-rating"></li>
<span id="ratelinks">
<li><a href="javascript:void(0)" title="1 star out of 5" class="one-star">1</a></li>
<li><a href="javascript:void(0)" title="2 stars out of 5" class="two-stars">2</a></li>
<li><a href="javascript:void(0)" title="3 stars out of 5" class="three-stars">3</a></li>
<li><a href="javascript:void(0)" title="4 stars out of 5" class="four-stars">4</a></li>
<li><a href="javascript:void(0)" title="5 stars out of 5" class="five-stars">5</a></li>
</span>
</ul>
I created than the update.php file and put it to the directory /opt/otrs-3.0.12/bin/cgi-bin
Now when I open an FAQ Article https://otrs-dev/otrs/public.pl?Action= ... m;ItemID=1 I get an error message: some error occured, please try again later but after klicking on OK button I can see the rating starts. See here: http://s14.directupload.net/file/d/2891 ... t3_png.htm
I looks like the error message comes from the java-script because it tries to update the Database by ecexuting an update.php script.
My Apache error log shows me:
Code: Select all
[Tue May 15 12:59:09 2012] [error] Unterminated <> operator at /opt/otrs/bin/cgi-bin/update.php line 1.\n