<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fop 2.11 - Visual Phonebook]]></title><description><![CDATA[<p dir="auto">Hey all,</p>
<p dir="auto">Hopefully this will be an easy one...when I open the phonebook I am greeted with this:</p>
<pre><code>"yes") { die("no way"); } if($context=="") { $addcontext=""; } else { $addcontext="${context}_"; } // Sanitize Input $addcontext = ereg_replace("\.[\.]+", "", $addcontext); $addcontext = ereg_replace("^[\/]+", "", $addcontext); $addcontext = ereg_replace("^[A-Za-z][:\|][\/]?", "", $addcontext); $extension = ereg_replace("'", "", $extension ); $extension = ereg_replace("\"", "", $extension ); $extension = ereg_replace(";", "", $extension ); $grid = new dbgrid($db); $grid-&gt;set_table('visual_phonebook'); //$grid-&gt;set_caption(trans('Manage Phonebook')); $grid-&gt;salt("dldli3ks"); $grid-&gt;hide_field('id'); $grid-&gt;set_per_page(5); $grid-&gt;set_condition("context='$context' AND (owner='$extension' OR (owner&lt;&gt;'$extension' AND private='no'))"); $grid-&gt;set_default_values("context",$context); $grid-&gt;set_default_values("owner",$extension); $grid-&gt;set_input_type("context","hidden"); $grid-&gt;set_input_type("owner","hidden"); $grid-&gt;no_edit_field("context"); $grid-&gt;no_edit_field("owner"); $grid-&gt;hide_field('context'); $grid-&gt;hide_field('owner'); $grid-&gt;edit_field_condition("private",'owner','=',$extension); $fieldname = Array(); $fieldname[]=trans('First Name'); $fieldname[]=trans('Last Name'); $fieldname[]=trans('Company'); $fieldname[]=trans('Phone 1'); $fieldname[]=trans('Phone 2'); $fieldname[]=trans('Private'); $fieldname[]=trans('Picture'); //$grid-&gt;set_fields ( "id,firstname,lastname,company,phone1,phone2,owner,private,picture"); $grid-&gt;set_display_name( array('firstname','lastname','company','phone1','phone2','private','picture'), $fieldname); $grid-&gt;allow_view(true); $grid-&gt;allow_edit(true); $grid-&gt;allow_delete(true); $grid-&gt;allow_add(true); $grid-&gt;allow_export(true); $grid-&gt;allow_import(true); $grid-&gt;allow_search(true); $grid-&gt;set_search_fields(array('firstname','lastname','company','phone1','phone2')); $grid-&gt;set_input_type('picture','img'); //$grid-&gt;set_input_type('owner','select',array($extension,'')); $grid-&gt;force_import_field("context",$context); $grid-&gt;force_import_field("owner",$extension); $grid-&gt;add_display_filter('picture','display_image'); //$grid-&gt;add_display_filter('owner','display_private'); //$grid-&gt;add_edit_filter('owner','display_private'); $grid-&gt;set_user_directory('./uploads/'.$addcontext); //$grid-&gt;add_validation_type('email','email'); $grid-&gt;show_grid(); function display_image($img) { global $addcontext; if(is_file("./uploads/${addcontext}$img")) { return ""; } else { return "n/a"; } } function display_private($owner) { if($owner=="") { return trans('no'); } else { return trans('yes'); } } ?&gt;
</code></pre>
<p dir="auto">Cannot for the life of me work this out. I have put a fresh copy of the html folder up on the server in the hopes that this would fix it however it still shows this message.</p>
<p dir="auto">Server is running the following versions of PHP</p>
<pre><code>PHP Version 5.3.2
</code></pre>
<p dir="auto">This is on a CentOS 5.3 server and it is connecting to a MySQL server on another box.</p>
<p dir="auto">Database has been added correctly and the users configured.</p>
]]></description><link>http://localhost:4567/topic/407/fop-2.11-visual-phonebook</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 08:26:23 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/407.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 May 2010 11:58:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 15 Mar 2011 23:49:08 GMT]]></title><description><![CDATA[<p dir="auto">Just an idea, perhaps you broke config.php when putting the credentials.. be sure you do not have errors there and that the php tags are present.</p>
]]></description><link>http://localhost:4567/post/1862</link><guid isPermaLink="true">http://localhost:4567/post/1862</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 15 Mar 2011 23:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 15 Mar 2011 23:48:14 GMT]]></title><description><![CDATA[<p dir="auto">If php is configured correctly and you are looking at fop 2.20 visual phonebook, then it** must** work. From your post it seems you are having php installation issues. I cannot help you much, perhaps you can write a short php file in fop2 directory info.php</p>
<pre><code>&lt;?php
phpinfo();
?&gt;
</code></pre>
<p dir="auto">and see if it works. Perhaps you have  mixed php versions installed, or the php.ini file is not in the place you think it should be, or you are loading fop2.11 phonebook and you still do not have short tags enabled.</p>
<p dir="auto">If you see the php info page with the above script, check the location of the php.ini file and the status of short_open_tag</p>
]]></description><link>http://localhost:4567/post/1861</link><guid isPermaLink="true">http://localhost:4567/post/1861</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 15 Mar 2011 23:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 15 Mar 2011 14:19:22 GMT]]></title><description><![CDATA[<p dir="auto">PHP is enabled i followed instructions on <a href="http://wiki.centos.org/HowTos/PHP_5.1_To_5.2" rel="nofollow ugc">http://wiki.centos.org/HowTos/PHP_5.1_To_5.2</a>, and my test page is fine!</p>
<p dir="auto">This is what i get after click on Phonebook link:</p>
<pre><code>$page_title&gt;\n"; } else { echo " \n"; } ?&gt;
"yes") { die("no way"); } if($context=="") { $addcontext=""; } else { $addcontext="${context}_"; } // Sanitize Input $addcontext = ereg_replace("\.[\.]+", "", $addcontext); $addcontext = ereg_replace("^[\/]+", "", $addcontext); $addcontext = ereg_replace("^[A-Za-z][:\|][\/]?", "", $addcontext); $extension = ereg_replace("'", "", $extension ); $extension = ereg_replace("\"", "", $extension ); $extension = ereg_replace(";", "", $extension ); $grid = new dbgrid($db); $grid-&gt;set_table('visual_phonebook'); //$grid-&gt;set_caption(trans('Manage Phonebook')); $grid-&gt;salt("dldli3ks"); $grid-&gt;hide_field('id'); $grid-&gt;set_per_page(5); $grid-&gt;set_condition("context='$context' AND (owner='$extension' OR (owner&lt;&gt;'$extension' AND private='no'))"); $grid-&gt;set_default_values("context",$context); $grid-&gt;set_default_values("owner",$extension); $grid-&gt;set_input_type("context","hidden"); $grid-&gt;set_input_type("owner","hidden"); $grid-&gt;no_edit_field("context"); $grid-&gt;no_edit_field("owner"); $grid-&gt;hide_field('context'); $grid-&gt;hide_field('owner'); $grid-&gt;edit_field_condition("private",'owner','=',$extension); $fieldname = Array(); $fieldname[]=trans('First Name'); $fieldname[]=trans('Last Name'); $fieldname[]=trans('Company'); $fieldname[]=trans('Phone 1'); $fieldname[]=trans('Phone 2'); $fieldname[]=trans('Private'); $fieldname[]=trans('Picture'); //$grid-&gt;set_fields ( "id,firstname,lastname,company,phone1,phone2,owner,private,picture"); $grid-&gt;set_display_name( array('firstname','lastname','company','phone1','phone2','private','picture'), $fieldname); $grid-&gt;allow_view(true); $grid-&gt;allow_edit(true); $grid-&gt;allow_delete(true); $grid-&gt;allow_add(true); $grid-&gt;allow_export(true); $grid-&gt;allow_import(true); $grid-&gt;allow_search(true); $grid-&gt;set_search_fields(array('firstname','lastname','company','phone1','phone2')); $grid-&gt;set_input_type('picture','img'); //$grid-&gt;set_input_type('owner','select',array($extension,'')); $grid-&gt;force_import_field("context",$context); $grid-&gt;force_import_field("owner",$extension); $grid-&gt;add_display_filter('picture','display_image'); $grid-&gt;add_display_filter('phone1','clickdial'); $grid-&gt;add_display_filter('phone2','clickdial'); //$grid-&gt;add_display_filter('owner','display_private'); //$grid-&gt;add_edit_filter('owner','display_private'); $grid-&gt;set_user_directory('./uploads/'.$addcontext); //$grid-&gt;add_validation_type('email','email'); $grid-&gt;show_grid(); function display_image($img) { global $addcontext; if(is_file("./uploads/${addcontext}$img")) { return ""; } else { return "n/a"; } } function display_private($owner) { if($owner=="") { return trans('no'); } else { return trans('yes'); } } function clickdial($number) { return "$number"; } ?&gt;
</code></pre>
]]></description><link>http://localhost:4567/post/1860</link><guid isPermaLink="true">http://localhost:4567/post/1860</guid><dc:creator><![CDATA[abasic]]></dc:creator><pubDate>Tue, 15 Mar 2011 14:19:22 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 15 Mar 2011 14:00:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I do not think you have the same problem. FOP 2.20 does not use short tags anymore. So please explain a little bit better what do you see and what happens. If you see php code when loading the phonebook, then it is probably your web server does not have php support enabled.</p>
]]></description><link>http://localhost:4567/post/1859</link><guid isPermaLink="true">http://localhost:4567/post/1859</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 15 Mar 2011 14:00:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 15 Mar 2011 13:46:32 GMT]]></title><description><![CDATA[<p dir="auto">I have same problem!<br />
CentOS 5.5<br />
PHP 5.2.10 (short_open_tag = On)<br />
FOP 2.20</p>
]]></description><link>http://localhost:4567/post/1858</link><guid isPermaLink="true">http://localhost:4567/post/1858</guid><dc:creator><![CDATA[abasic]]></dc:creator><pubDate>Tue, 15 Mar 2011 13:46:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Fri, 28 May 2010 12:35:50 GMT]]></title><description><![CDATA[<p dir="auto">You are welcome, I will use the standard php tags on the next release to avoid this issue. It seems that some newer linux distributions are not enabling short tags for php by default.</p>
]]></description><link>http://localhost:4567/post/1857</link><guid isPermaLink="true">http://localhost:4567/post/1857</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 28 May 2010 12:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Fri, 28 May 2010 07:09:32 GMT]]></title><description><![CDATA[<p dir="auto">That worked perfectly. Thanks a lot. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>http://localhost:4567/post/1856</link><guid isPermaLink="true">http://localhost:4567/post/1856</guid><dc:creator><![CDATA[Marc]]></dc:creator><pubDate>Fri, 28 May 2010 07:09:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fop 2.11 - Visual Phonebook on Tue, 25 May 2010 13:44:05 GMT]]></title><description><![CDATA[<p dir="auto">In php.ini set short_open_tag = on and restart apache.</p>
]]></description><link>http://localhost:4567/post/1855</link><guid isPermaLink="true">http://localhost:4567/post/1855</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 25 May 2010 13:44:05 GMT</pubDate></item></channel></rss>