Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. root@vps503343:/var/www/coin-trade24.ru# php /var/www/coin-trade24.ru/cron/course.php
  2. <?
  3. define('DB_HOST', '151.80.235.7');
  4. define('DB_NAME', 'trade');
  5. define('DB_USER', 'n0dstyle');
  6. define('DB_PASS', 'sdhog$!Hhrfwef');<?
  7.  
  8. class Core_Common
  9. {
  10. public static $db;
  11. public static $settings;
  12. public static $menu;
  13. public static $connect = true;
  14.  
  15. public function __construct()
  16. {
  17. $dsn = 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=utf8';
  18. $user = DB_USER;
  19. $password = DB_PASS;
  20.  
  21. try {
  22. self::$db = new PDO($dsn, $user, $password);
  23. } catch (Exception $e) {
  24. var_dump($e->getMessage());
  25. self::$connect = false;
  26. }
  27. }
  28.  
  29. static function checkAuth(){
  30. return isset($_SESSION['user']) ? true : false;
  31. }
  32. }
  33.  
  34.  
  35.  
  36. /var/www/coin-trade24.ru/cron/../application/Core/Common.phpPHP Fatal error: Uncaught Error: Class 'Core_Common' not found in /var/www/coin-trade24.ru/cron/course.php:13
  37. Stack trace:
  38. #0 {main}
  39. thrown in /var/www/coin-trade24.ru/cron/course.php on line 13
  40.  
  41. Fatal error: Uncaught Error: Class 'Core_Common' not found in /var/www/coin-trade24.ru/cron/course.php:13
  42. Stack trace:
  43. #0 {main}
  44. thrown in /var/www/coin-trade24.ru/cron/course.php on line 13
  45. root@vps503343:/var/www/coin-trade24.ru#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement