WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
If I remove code from a droplet and re-add it show invalid php code
I'm running PHP Version 5.3.17Droplet says invalid php code
Parse error: syntax error, unexpected 'global' (T_GLOBAL) in G:\cms\wb_test_1532\modules\droplets\droplets.php(37) : eval()'d code on line 5
SectionPicker//Load the view.php from any other section-module, including the frontend.css//Use [[SectionPicker?sid=123]]global $database, $wb, $TEXT, $DGTEXT,$section_id,$page_id;
global $TEXT;$return_value = true;if (!isset($msg)) $msg=\'search this site..\';$j = \"onfocus=\\\"if(this.value==\'$msg\'){this.value=\'\';this.style.color=\'#000\';}else{this.select();}\\\"onblur=\\\"if(this.value==\'\'){this.value=\'$msg\';this.style.color=\'#b3b3b3\';}\\\"\";if(SHOW_SEARCH) {$return_value = \'<div class=\"searchbox\">\';$return_value .= \'<form action=\"\'.WB_URL.\'/search/index\'.PAGE_EXTENSION.\'\" method=\"get\" name=\"search\" class=\"searchform\" id=\"search\">\';$return_value .= \'<input style=\"color:#b3b3b3;\" type=\"text\" name=\"string\" size=\"25\" class=\"textbox\" value=\"\'.$msg.\'\" \'.$j.\' /> \';$return_value .= \'</form>\';$return_value .= \'</div>\';}return $return_value;
Saying SearchBox droplet is invalidCode: [Select]global $TEXT;$return_value = true;if (!isset($msg)) $msg=\'search this site..\';$j = \"onfocus=\\\"if(this.value==\'$msg\'){this.value=\'\';this.style.color=\'#000\';}else{this.select();}\\\"onblur=\\\"if(this.value==\'\'){this.value=\'$msg\';this.style.color=\'#b3b3b3\';}\\\"\";if(SHOW_SEARCH) {$return_value = \'<div class=\"searchbox\">\';$return_value .= \'<form action=\"\'.WB_URL.\'/search/index\'.PAGE_EXTENSION.\'\" method=\"get\" name=\"search\" class=\"searchform\" id=\"search\">\';$return_value .= \'<input style=\"color:#b3b3b3;\" type=\"text\" name=\"string\" size=\"25\" class=\"textbox\" value=\"\'.$msg.\'\" \'.$j.\' /> \';$return_value .= \'</form>\';$return_value .= \'</div>\';}return $return_value;The server is running PHP 5.4.20I have set php error messages to E_All and I also have E_ALL ->PHP5.3.17 as an option
the Server is right - it is invalid Thats not a WB Problem - thers a problem with the server configuration ... e.g. http://php.net/manual/en/security.magicquotes.php unter php 5.3...if you enter a String in the textarea (e.g. $myVar = 'Test'the server save this as $myVar = \'Test\'; <= and thats the problem