Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Chat. It's not ready, but it work.
Chat. It's not ready, but it works.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
'msgs' => 'mchat_msgs',
),
'nick' => 'Anonym', // default nick
'token' => 1, // включить или выключить проверку token (1 - включено, 0 - выключено)
'token' => 1, // (1 - on, 0 - off)
'token_salt' => '123123123',
);
6 changes: 1 addition & 5 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php
//error_reporting (E_ALL);

//define ('DIRSEP', DIRECTORY_SEPARATOR);
//define ('site_path', dirname(__FILE__));
//define ('app', 'app');
// 33

require_once 'app'.DIRECTORY_SEPARATOR.'Bootstrap.php';

3 changes: 1 addition & 2 deletions install.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
// install DB

require_once 'app'.DIRECTORY_SEPARATOR.'Bootstrap.php';

Expand Down Expand Up @@ -26,7 +27,6 @@
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;";
$db->query($query);
//$db->query("truncate $table_users");

$db->query("DROP TABLE IF EXISTS `".$table_msgs."`");
$query="
Expand All @@ -38,4 +38,3 @@
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;";
$db->query($query);
//$db->query("truncate $table_msgs");