A tumblelog CMS built on AJAX, PHP and MySQL.

configuration.class.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?
  2. /* ===========================
  3. gelato CMS development version
  4. http://www.gelatocms.com/
  5. gelato CMS is a free software licensed under GPL (General public license)
  6. =========================== */
  7. ?>
  8. <?
  9. class configuration extends Conexion_Mysql {
  10. var $urlGelato;
  11. var $tablePrefix;
  12. var $idUser;
  13. var $postLimit;
  14. var $title;
  15. var $description;
  16. var $lang;
  17. var $urlFriendly;
  18. var $richText;
  19. var $template;
  20. function configuration() {
  21. parent::Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
  22. if ($this->ejecutarConsulta("SELECT * FROM ".Table_prefix."config")) {
  23. if ($this->contarRegistros()>0) {
  24. $register=$this->obtenerRegistro();
  25. $this->tablePrefix = Table_prefix;
  26. $this->urlGelato = $register['url_installation'];
  27. echo "<pre style='background-color:white;'>";
  28. print_r($register);
  29. echo" </pre>";
  30. $this->idUser = $register['id_user'];
  31. $this->postLimit = $register['posts_limit'];
  32. $this->title = $register['title'];
  33. $this->description = $register['description'];
  34. $this->lang = $register['lang'];
  35. $this->urlFriendly = $register['url_friendly'];
  36. $this->richText = $register['rich_text'];
  37. $this->template = $register['template'];
  38. }
  39. }
  40. }
  41. }
  42. ?>