Jump to content

Jak se zbavit podivného kodování?


luckybastard

Recommended Posts

Je to jenom zkopirovane z osobnich poznamek, ale snad je to pochopitelne, kdyztak PM :) Takze zmenit takhle a pak vsechny texty znova ulozit.

1) /admin/tabs/AdminCMS.php cca řádek 108
// General options
entity_encoding:"raw",
mode : "textareas",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen",

2) /admin/tabs/AdminProducts.php cca řádek 2006
// General options
entity_encoding:"raw",
mode : "textareas",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen",

3) /admin/tabs/AdminManufactures.php cca řádek 136
// General options
entity_encoding:"raw",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen",

4) /modules/editorial/editorial.php cca řádek 134
// General options
entity_encoding:"raw",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen",

5) Celá idea úprav v bodech 1) až 4) spočívá v přídání entity_encoding:"raw", v místech kde se definují vlatnosti TinyMCE

6) stejné změny jako v 1) a 2) pro každý modul, který používá vlastní verzi TinyMCE (Novinky)

7) /tools/smarty/plugins/modifier.escape.php cca řádek 28
zaměnit
case 'htmlall':
           return htmlentities($string, ENT_QUOTES, $char_set); 
za
case 'htmlall':
           return htmlspecialchars($string, ENT_QUOTES, $char_set); 

5) /classes/Tools.php cca řádek 343
ve funkci htmlentitiesUTF8() změnit ten return htmlentities($string, ENT_QUOTES, ‘utf-8’); na return htmlspecialchars($string, ENT_QUOTES, ‘utf-8’); 



EDIT: Doplneno

Link to comment
Share on other sites

  • 4 weeks later...

osmičku jsem si domyslel, jde tedy o :

5) /classes/Tools.php cca řádek 343
ve funkci htmlentitiesUTF8() změnit ten return htmlentities($string, ENT_QUOTES, ‘utf-8’); na return htmlspecialchars($string, ENT_QUOTES, ‘utf-8’);

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...