A tumblelog CMS built on AJAX, PHP and MySQL.

configuration.class.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. include dirname(__FILE__)."/../config.php";
  10. class configuration extends Conexion_Mysql {
  11. var $urlGelato;
  12. var $tablePrefix;
  13. var $idUser;
  14. var $postLimit;
  15. var $title;
  16. var $description;
  17. var $lang;
  18. var $urlFriendly;
  19. var $richText;
  20. var $template;
  21. function configuration() {
  22. parent::Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
  23. if ($this->ejecutarConsulta("SELECT * FROM ".Table_prefix."config")) {
  24. if ($this->contarRegistros()>0) {
  25. $register=$this->obtenerRegistro();
  26. $this->tablePrefix = Table_prefix;
  27. $this->urlGelato = $register['url_installation'];
  28. $this->idUser = $register['id_user'];
  29. $this->postLimit = $register['posts_limit'];
  30. $this->title = $register['title'];
  31. $this->description = $register['description'];
  32. $this->lang = $register['lang'];
  33. $this->urlFriendly = $register['url_friendly'];
  34. $this->richText = $register['rich_text'];
  35. $this->template = $register['template'];
  36. }
  37. }
  38. }
  39. }
  40. ?>