Otrzymałem w prezencie od znajomego fajny skrypcik hostingu blogów

Oto 1 z nich

-Importuję sobie baze danych SQL i wszystko działa poza jedną linią kodu:
Kod
INSERT INTO `blog` VALUES (1, 'admin', 'Official Blog', 'spring.css', '1140030959', '1132405401', '1', '20', '1', '3', '', '', '', '', '', '1', '480726000', NULL, 3492, '');
php my admin wyrzuca to:
Kod
Błąd
zapytanie SQL:
INSERT INTO `blog`
VALUES ( 1, 'admin', 'Official Blog', 'spring.css', '1140030959', '1132405401', '1', '20', '1', '3', '', '', '', '', '', '1', '480726000', NULL , 3492, '' );
MySQL zwrócił komunikat: [url="http://dev.mysql.com/doc/refman/error-messages-server.html"][img]https://sql.sznajdrowicz.nazwa.pl/mysql5/themes/original/img/b_help.png[/img][/url]
#1136 - Column count doesn't match value count at row 1
zapytanie SQL:
INSERT INTO `blog`
VALUES ( 1, 'admin', 'Official Blog', 'spring.css', '1140030959', '1132405401', '1', '20', '1', '3', '', '', '', '', '', '1', '480726000', NULL , 3492, '' );
MySQL zwrócił komunikat: [url="http://dev.mysql.com/doc/refman/error-messages-server.html"][img]https://sql.sznajdrowicz.nazwa.pl/mysql5/themes/original/img/b_help.png[/img][/url]
#1136 - Column count doesn't match value count at row 1
Problem numer 2:
W panelu admina na samej górze mam taki błąd:
Kod
Warning: file(http://sznajdrowicz.nazwa.pl/blog212.106.22.116) [[url="http://sznajdrowicz.nazwa.pl/blog/admin/function.file"]function.file[/url]]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/sznajdrowicz/ftp/blog/includes/logincheck.php on line 11
Warning: implode() [[url="http://sznajdrowicz.nazwa.pl/blog/admin/function.implode"]function.implode[/url]]: Invalid arguments passed in /home/sznajdrowicz/ftp/blog/includes/logincheck.php on line 11
[b]Warning: implode() [[url="http://sznajdrowicz.nazwa.pl/blog/admin/function.implode"]function.implode[/url]]: Invalid arguments passed in /home/sznajdrowicz/ftp/blog/includes/logincheck.php on line 11
Oto plik logincheck.php[b]
<? //error_reporting(0); $uid =""; if($_COOKIE[blog_user] and $_COOKIE[blog_pass]) { $q = mysql_query("select * from ".$table_prefix."_users where user='$_COOKIE[blog_user]' and pass='$_COOKIE[blog_pass]'"); { if($l[location] =="") { }else{ $country = $l[location]; } mysql_query("UPDATE `".$table_prefix."_users` SET `lastvisit`='".time()."', location='$country' WHERE `Id`=$l[Id];"); $uid = $l[Id]; $ustat = $l[cat]; $user = $l[user]; $pname = $l[rname]; $mudata = $l; { $blogid = $l2[Id]; $blogurl = $l2[bname]; $mbdata = $l2; $totsize = 0; { } $totspace = $user_space; $frespace = $totspace - $totsize; $frperc = 100 - $usperc; } if($_GET[page] !="register" and $blogurl =="") { $_GET[page] = "register"; } } } ?>
Dodatkowo jak wylogowuje się z admina wyrzuca jeszcze to:
Kod
Warning: Cannot modify header information - headers already sent by (output started at /home/sznajdrowicz/ftp/blog/includes/logincheck.php:11) in /home/sznajdrowicz/ftp/blog/includes/functions.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/sznajdrowicz/ftp/blog/includes/logincheck.php:11) in /home/sznajdrowicz/ftp/blog/includes/functions.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/sznajdrowicz/ftp/blog/includes/logincheck.php:11) in /home/sznajdrowicz/ftp/blog/includes/functions.php on line 231
Warning: Cannot modify header information - headers already sent by (output started at /home/sznajdrowicz/ftp/blog/includes/logincheck.php:11) in /home/sznajdrowicz/ftp/blog/includes/functions.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/sznajdrowicz/ftp/blog/includes/logincheck.php:11) in /home/sznajdrowicz/ftp/blog/includes/functions.php on line 231
Będe bardzo wdzięczny za pomoc

Pozdrawiam,