A tumblelog CMS built on AJAX, PHP and MySQL.

configuration.class.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  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. <?php
  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. $this->postLimit = $register['posts_limit'];
  28. $this->title = $register['title'];
  29. $this->description = $register['description'];
  30. $this->lang = $register['lang'];
  31. $this->urlFriendly = $register['url_friendly'];
  32. $this->richText = $register['rich_text'];
  33. $this->template = $register['template'];
  34. }
  35. }
  36. }
  37. }
  38. ?>