Guest User

Untitled

a guest
Feb 8th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. require_once("class_starten.php");
  3. class core {
  4. private $verbindung;
  5. private $host = "localhost";
  6. private $username = "root";
  7. private $password = "123kamil*A";
  8. private $datenbank = "butterfly";
  9. public function __construct()
  10. {
  11. $this->verbindung = mysql_connect($this->host, $this->username, $this->password)or die (mysql_error());
  12. mysql_select_db($this->datenbank, $this->verbindung)or die (mysql_error());
  13. }
  14. public function config()
  15. {
  16. $query = mysql_result(mysql_query("SELECT cms_name, cms_url, cms_ip FROM settings"),0);
  17. $configrow = mysql_fetch_assoc($query);
  18. return $configrow;
  19. }
  20. public function login($username, $password, $query)
  21. {
  22. }
  23. }
  24. ?>
Add Comment
Please, Sign In to add comment