Странна грешка

mizarck

Registered
Здравейте,
имам един php скрипт който ми дава грешка че ?> е грешно
ето грешката
Parse error: syntax error, unexpected $end in V:\Core\htdocs\phpbbinsatll\step3.php on line 291
ето и кода
Код:
<?php
$user = 'bbinstall';
mkdir("$user/admin", 0777);
mkdir("$user/cache", 0777);
mkdir("$user/db", 0777);
mkdir("$user/images", 0777);
mkdir("$user/includes", 0777);
mkdir("$user/language", 0777);
mkdir("$user/templates", 0777);
mkdir("$user/images/smiles", 0777);
mkdir("$user/images/avatars", 0777);
mkdir("$user/images/avatars/gallery", 0777);
mkdir("$user/language/lang_english", 0777);
mkdir("$user/language/lang_english/email", 0777);
mkdir("$user/templates/subSilver", 0777);
mkdir("$user/templates/subSilver/admin", 0777);
mkdir("$user/templates/subSilver/images", 0777);
copy("phpbb2/index.php", "$user/index.php");
copy("phpbb2/common.php", "$user/common.php");
copy("phpbb2/extension.inc", "$user/extension.inc");
copy("phpbb2/faq.php", "$user/faq.php");
copy("phpbb2/groupcp.php", "$user/groupcp.php");
copy("phpbb2/login.php", "$user/login.php");
copy("phpbb2/memberlist.php", "$user/memberlist.php");
copy("phpbb2/modcp.php", "$user/modcp.php");
copy("phpbb2/posting.php", "$user/posting.php");
copy("phpbb2/privmsg.php", "$user/privmsg.php");
copy("phpbb2/profile.php", "$user/profile.php");
copy("phpbb2/search.php", "$user/search.php");
copy("phpbb2/viewforum.php", "$user/viewforum.php");
copy("phpbb2/viewonline.php", "$user/viewonline.php");
copy("phpbb2/viewtopic.php", "$user/viewtopic.php");
copy("phpbb2/admin/admin_board.php", "$user/admin/admin_board.php");
copy("phpbb2/admin/admin_db_utilities.php", "$user/admin/admin_db_utilities.php");
copy("phpbb2/admin/admin_disallow.php", "$user/admin/admin_disallow.php");
copy("phpbb2/admin/admin_forum_prune.php", "$user/admin/admin_forum_prune.php");
copy("phpbb2/admin/admin_forumauth.php", "$user/admin/admin_forumauth.php");
copy("phpbb2/admin/admin_forums.php", "$user/admin/admin_forums.php");
copy("phpbb2/admin/admin_groups.php", "$user/admin/admin_groups.php");
copy("phpbb2/admin/admin_mass_email.php", "$user/admin/admin_mass_email.php");
copy("phpbb2/admin/admin_ranks.php", "$user/admin/admin_ranks.php");
copy("phpbb2/admin/admin_smilies.php", "$user/admin/admin_smilies.php");
copy("phpbb2/admin/admin_styles.php", "$user/admin/admin_styles.php");
copy("phpbb2/admin/admin_ug_auth.php", "$user/admin/admin_ug_auth.php");
copy("phpbb2/admin/admin_user_ban.php", "$user/admin/admin_user_ban.php");
copy("phpbb2/admin/admin_users.php", "$user/admin/admin_users.php");
copy("phpbb2/admin/admin_words.php", "$user/admin/admin_words.php");
copy("phpbb2/admin/index.php", "$user/admin/index.php");
copy("phpbb2/admin/page_footer_admin.php", "$user/admin/page_footer_admin.php");
copy("phpbb2/admin/page_header_admin.php", "$user/admin/page_header_admin.php");
copy("phpbb2/admin/pagestart.php", "$user/admin/pagestart.php");
copy("phpbb2/cache/.htaccess", "$user/cache/.htaccess");
copy("phpbb2/db/db2.php", "$user/db/db2.php");
copy("phpbb2/db/msaccess.php", "$user/db/msaccess.php");
copy("phpbb2/db/mssql.php", "$user/db/mssql.php");
copy("phpbb2/db/mssql-odbc.php", "$user/db/mssql-odbc.php");
copy("phpbb2/db/mysql.php", "$user/db/mysql.php");
copy("phpbb2/db/mysql4.php", "$user/db/mysql4.php");
copy("phpbb2/db/postgres7.php", "$user/db/postgres7.php");
copy("phpbb2/images/smiles/icon_arrow.GIF", "$user/images/smiles/icon_arrow.GIF");
copy("phpbb2/images/smiles/icon_biggrin.GIF", "$user/images/smiles/icon_biggrin.GIF");
copy("phpbb2/images/smiles/icon_confused.GIF", "$user/images/smiles/icon_confused.GIF");
copy("phpbb2/images/smiles/icon_cool.GIF", "$user/images/smiles/icon_cool.GIF");
copy("phpbb2/images/smiles/icon_cry.GIF", "$user/images/smiles/icon_cry.GIF");
copy("phpbb2/images/smiles/icon_eek.GIF", "$user/images/smiles/icon_eek.GIF");
copy("phpbb2/images/smiles/icon_evil.GIF", "$user/images/smiles/icon_evil.GIF");
copy("phpbb2/images/smiles/icon_exclaim.GIF", "$user/images/smiles/icon_exclaim.GIF");
copy("phpbb2/images/smiles/icon_frown.GIF", "$user/images/smiles/icon_frown.GIF");
copy("phpbb2/images/smiles/icon_idea.GIF", "$user/images/smiles/icon_idea.GIF");
copy("phpbb2/images/smiles/icon_lol.GIF", "$user/images/smiles/icon_lol.GIF");
copy("phpbb2/images/smiles/icon_mad.GIF", "$user/images/smiles/icon_mad.GIF");
copy("phpbb2/images/smiles/icon_mrgreen.GIF", "$user/images/smiles/icon_mrgreen.GIF");
copy("phpbb2/images/smiles/icon_neutral.GIF", "$user/images/smiles/icon_neutral.GIF");
copy("phpbb2/images/smiles/icon_question.GIF", "$user/images/smiles/icon_question.GIF");
copy("phpbb2/images/smiles/icon_razz.GIF", "$user/images/smiles/icon_razz.GIF");
copy("phpbb2/images/smiles/icon_redface.GIF", "$user/images/smiles/icon_redface.GIF");
copy("phpbb2/images/smiles/icon_rolleyes.GIF", "$user/images/smiles/icon_rolleyes.GIF");
copy("phpbb2/images/smiles/icon_sad.GIF", "$user/images/smiles/icon_sad.GIF");
copy("phpbb2/images/smiles/icon_smile.GIF", "$user/images/smiles/icon_smile.GIF");
copy("phpbb2/images/smiles/icon_surprised.GIF", "$user/images/smiles/icon_surprised.GIF");
copy("phpbb2/images/smiles/icon_twisted.GIF", "$user/images/smiles/icon_twisted.GIF");
copy("phpbb2/images/smiles/icon_wink.GIF", "$user/images/smiles/icon_wink.GIF");
copy("phpbb2/includes/auth.php", "$user/includes/auth.php");
copy("phpbb2/includes/bbcode.php", "$user/includes/bbcode.php");
copy("phpbb2/includes/constants.php", "$user/includes/constants.php");
copy("phpbb2/includes/db.php", "$user/includes/db.php");
copy("phpbb2/includes/emailer.php", "$user/includes/emailer.php");
copy("phpbb2/includes/functions.php", "$user/includes/functions.php");
copy("phpbb2/includes/functions_admin.php", "$user/includes/functions_admin.php");
copy("phpbb2/includes/functions_post.php", "$user/includes/functions_post.php");
copy("phpbb2/includes/functions_search.php", "$user/includes/functions_search.php");
copy("phpbb2/includes/functions_selects.php", "$user/includes/functions_selects.php");
copy("phpbb2/includes/functions_validate.php", "$user/includes/functions_validate.php");
copy("phpbb2/includes/page_header.php", "$user/includes/page_header.php");
copy("phpbb2/includes/page_tail.php", "$user/includes/page_tail.php");
copy("phpbb2/includes/prune.php", "$user/includes/prune.php");
copy("phpbb2/includes/sessions.php", "$user/includes/sessions.php");
copy("phpbb2/includes/smtp.php", "$user/includes/smtp.php");
copy("phpbb2/includes/sql_parse.php", "$user/includes/sql_parse.php");
copy("phpbb2/includes/template.php", "$user/includes/template.php");
copy("phpbb2/includes/topic_review.php", "$user/includes/topic_review.php");
copy("phpbb2/includes/usercp_activate.php", "$user/includes/usercp_activate.php");
copy("phpbb2/includes/usercp_avatar.php", "$user/includes/usercp_avatar.php");
copy("phpbb2/includes/usercp_confirm.php", "$user/includes/usercp_confirm.php");
copy("phpbb2/includes/usercp_email.php", "$user/includes/usercp_email.php");
copy("phpbb2/includes/usercp_register.php", "$user/includes/usercp_register.php");
copy("phpbb2/includes/usercp_sendpasswd.php", "$user/includes/usercp_sendpasswd.php");
copy("phpbb2/includes/usercp_viewprofile.php", "$user/includes/usercp_viewprofile.php");
copy("phpbb2/language/lang_english/lang_admin.php", "$user/language/lang_english/lang_admin.php");
copy("phpbb2/language/lang_english/lang_bbcode.php", "$user/language/lang_english/lang_bbcode.php");
copy("phpbb2/language/lang_english/lang_faq.php", "$user/language/lang_english/lang_faq.php");
copy("phpbb2/language/lang_english/lang_main.php", "$user/language/lang_english/lang_main.php");
copy("phpbb2/language/lang_english/search_synonyms.txt", "$user/language/lang_english/search_synonyms.txt");
copy("phpbb2/language/lang_english/search_stopwords.txt", "$user/language/lang_english/search_stopwords.txt");
copy("phpbb2/language/lang_english/email/admin_activate.TPL", "$user/language/lang_english/email/admin_activate.TPL");
copy("phpbb2/language/lang_english/email/admin_send_email.TPL", "$user/language/lang_english/email/admin_send_email.TPL");
copy("phpbb2/language/lang_english/email/admin_welcome_activated.TPL", "$user/language/lang_english/email/admin_welcome_activated.TPL");
copy("phpbb2/language/lang_english/email/admin_welcome_inactive.TPL", "$user/language/lang_english/email/admin_welcome_inactive.TPL");
copy("phpbb2/language/lang_english/email/coppa_welcome_inactive.TPL", "$user/language/lang_english/email/coppa_welcome_inactive.TPL");
copy("phpbb2/language/lang_english/email/group_added.TPL", "$user/language/lang_english/email/group_added.TPL");
copy("phpbb2/language/lang_english/email/group_approved.TPL", "$user/language/lang_english/email/group_approved.TPL");
copy("phpbb2/language/lang_english/email/group_request.TPL", "$user/language/lang_english/email/group_request.TPL");
copy("phpbb2/language/lang_english/email/privmsg_notify.TPL", "$user/language/lang_english/email/privmsg_notify.TPL");
copy("phpbb2/language/lang_english/email/profile_send_email.TPL", "$user/language/lang_english/email/profile_send_email.TPL");
copy("phpbb2/language/lang_english/email/topic_notify.TPL", "$user/language/lang_english/email/topic_notify.TPL");
copy("phpbb2/language/lang_english/email/user_activate.TPL", "$user/language/lang_english/email/user_activate.TPL");
copy("phpbb2/language/lang_english/email/user_activate_passwd.TPL", "$user/language/lang_english/email/user_activate_passwd.TPL");
copy("phpbb2/language/lang_english/email/user_welcome.TPL", "$user/language/lang_english/email/user_welcome.TPL");
copy("phpbb2/language/lang_english/email/user_welcome_inactive.TPL", "$user/language/lang_english/email/user_welcome_inactive.TPL");
copy("phpbb2/templates/subSilver/agreement.TPL", "$user/templates/subSilver/agreement.TPL");
copy("phpbb2/templates/subSilver/bbcode.TPL", "$user/templates/subSilver/bbcode.TPL");
copy("phpbb2/templates/subSilver/confirm_body.TPL", "$user/templates/subSilver/confirm_body.TPL");
copy("phpbb2/templates/subSilver/error_body.TPL", "$user/templates/subSilver/error_body.TPL");
copy("phpbb2/templates/subSilver/faq_body.TPL", "$user/templates/subSilver/faq_body.TPL");
copy("phpbb2/templates/subSilver/groupcp_info_body.TPL", "$user/templates/subSilver/groupcp_info_body.TPL");
copy("phpbb2/templates/subSilver/groupcp_pending_info.TPL", "$user/templates/subSilver/groupcp_pending_info.TPL");
copy("phpbb2/templates/subSilver/groupcp_user_body.TPL", "$user/templates/subSilver/groupcp_user_body.TPL");
copy("phpbb2/templates/subSilver/index_body.TPL", "$user/templates/subSilver/index_body.TPL");
copy("phpbb2/templates/subSilver/jumpbox.TPL", "$user/templates/subSilver/jumpbox.TPL");
copy("phpbb2/templates/subSilver/login_body.TPL", "$user/templates/subSilver/login_body.TPL");
copy("phpbb2/templates/subSilver/memberlist_body.TPL", "$user/templates/subSilver/memberlist_body.TPL");
copy("phpbb2/templates/subSilver/message_body.TPL", "$user/templates/subSilver/message_body.TPL");
copy("phpbb2/templates/subSilver/modcp_body.TPL", "$user/templates/subSilver/modcp_body.TPL");
copy("phpbb2/templates/subSilver/modcp_move.TPL", "$user/templates/subSilver/modcp_move.TPL");
copy("phpbb2/templates/subSilver/modcp_split.TPL", "$user/templates/subSilver/modcp_split.TPL");
copy("phpbb2/templates/subSilver/modcp_viewip.TPL", "$user/templates/subSilver/modcp_viewip.TPL");
copy("phpbb2/templates/subSilver/overall_footer.TPL", "$user/templates/subSilver/overall_footer.TPL");
copy("phpbb2/templates/subSilver/overall_header.TPL", "$user/templates/subSilver/overall_header.TPL");
copy("phpbb2/templates/subSilver/posting_body.TPL", "$user/templates/subSilver/posting_body.TPL");
copy("phpbb2/templates/subSilver/posting_poll_body.TPL", "$user/templates/subSilver/posting_poll_body.TPL");
copy("phpbb2/templates/subSilver/posting_preview.TPL", "$user/templates/subSilver/posting_preview.TPL");
copy("phpbb2/templates/subSilver/posting_smilies.TPL", "$user/templates/subSilver/posting_smilies.TPL");
copy("phpbb2/templates/subSilver/posting_topic_review.TPL", "$user/templates/subSilver/posting_topic_review.TPL");
copy("phpbb2/templates/subSilver/privmsgs_body.TPL", "$user/templates/subSilver/privmsgs_body.TPL");
copy("phpbb2/templates/subSilver/privmsgs_popup.TPL", "$user/templates/subSilver/privmsgs_popup.TPL");
copy("phpbb2/templates/subSilver/privmsgs_preview.TPL", "$user/templates/subSilver/privmsgs_preview.TPL");
copy("phpbb2/templates/subSilver/privmsgs_read_body.TPL", "$user/templates/subSilver/privmsgs_read_body.TPL");
copy("phpbb2/templates/subSilver/profile_add_body.TPL", "$user/templates/subSilver/profile_add_body.TPL");
copy("phpbb2/templates/subSilver/profile_avatar_gallery.TPL", "$user/templates/subSilver/profile_avatar_gallery.TPL");
copy("phpbb2/templates/subSilver/profile_send_email.TPL", "$user/templates/subSilver/profile_send_email.TPL");
copy("phpbb2/templates/subSilver/profile_send_pass.TPL", "$user/templates/subSilver/profile_send_pass.TPL");
copy("phpbb2/templates/subSilver/profile_view_body.TPL", "$user/templates/subSilver/profile_view_body.TPL");
copy("phpbb2/templates/subSilver/search_body.TPL", "$user/templates/subSilver/search_body.TPL");
copy("phpbb2/templates/subSilver/search_results_posts.TPL", "$user/templates/subSilver/search_results_posts.TPL");
copy("phpbb2/templates/subSilver/search_results_topics.TPL", "$user/templates/subSilver/search_results_topics.TPL");
copy("phpbb2/templates/subSilver/search_username.TPL", "$user/templates/subSilver/search_username.TPL");
copy("phpbb2/templates/subSilver/simple_footer.TPL", "$user/templates/subSilver/simple_footer.TPL");
copy("phpbb2/templates/subSilver/simple_header.TPL", "$user/templates/subSilver/simple_header.TPL");
copy("phpbb2/templates/subSilver/viewforum_body.TPL", "$user/templates/subSilver/viewforum_body.TPL");
copy("phpbb2/templates/subSilver/viewonline_body.TPL", "$user/templates/subSilver/viewonline_body.TPL");
copy("phpbb2/templates/subSilver/viewtopic_body.TPL", "$user/templates/subSilver/viewtopic_body.TPL");
copy("phpbb2/templates/subSilver/viewtopic_poll_ballot.TPL", "$user/templates/subSilver/viewtopic_poll_ballot.TPL");
copy("phpbb2/templates/subSilver/viewtopic_poll_result.TPL", "$user/templates/subSilver/viewtopic_poll_result.TPL");
copy("phpbb2/templates/subSilver/formIE.css", "$user/templates/subSilver/formIE.css");
copy("phpbb2/templates/subSilver/subSilver.cfg", "$user/templates/subSilver/subSilver.cfg");
copy("phpbb2/templates/subSilver/theme_info.cfg", "$user/templates/subSilver/theme_info.cfg");
copy("phpbb2/templates/subSilver/subSilver.css", "$user/templates/subSilver/subSilver.css");
copy("phpbb2/templates/subSilver/images/cellpic.GIF", "$user/templates/subSilver/images/cellpic.GIF");
copy("phpbb2/templates/subSilver/images/cellpic1.GIF", "$user/templates/subSilver/images/cellpic1.GIF");
copy("phpbb2/templates/subSilver/images/cellpic3.GIF", "$user/templates/subSilver/images/cellpic3.GIF");
copy("phpbb2/templates/subSilver/images/folder.GIF", "$user/templates/subSilver/images/folder.GIF");
copy("phpbb2/templates/subSilver/images/folder_announce.GIF", "$user/templates/subSilver/images/folder_announce.GIF");
copy("phpbb2/templates/subSilver/images/folder_announce_new.GIF", "$user/templates/subSilver/images/folder_announce_new.GIF");
copy("phpbb2/templates/subSilver/images/folder_big.GIF", "$user/templates/subSilver/images/folder_big.GIF");
copy("phpbb2/templates/subSilver/images/folder_hot.GIF", "$user/templates/subSilver/images/folder_hot.GIF");
copy("phpbb2/templates/subSilver/images/folder_lock.GIF", "$user/templates/subSilver/images/folder_lock.GIF");
copy("phpbb2/templates/subSilver/images/folder_lock_new.GIF", "$user/templates/subSilver/images/folder_lock_new.GIF");
copy("phpbb2/templates/subSilver/images/folder_locked_big.GIF", "$user/templates/subSilver/images/folder_locked_big.GIF");
copy("phpbb2/templates/subSilver/images/folder_new.GIF", "$user/templates/subSilver/images/folder_new.GIF");
copy("phpbb2/templates/subSilver/images/folder_new_big.GIF", "$user/templates/subSilver/images/folder_new_big.GIF");
copy("phpbb2/templates/subSilver/images/folder_new_hot.GIF", "$user/templates/subSilver/images/folder_new_hot.GIF");
copy("phpbb2/templates/subSilver/images/folder_sticky.GIF", "$user/templates/subSilver/images/folder_sticky.GIF");
copy("phpbb2/templates/subSilver/images/folder_sticky_new.GIF", "$user/templates/subSilver/images/folder_sticky_new.GIF");
copy("phpbb2/templates/subSilver/images/icon_delete.GIF", "$user/templates/subSilver/images/icon_delete.GIF");
copy("phpbb2/templates/subSilver/images/icon_latest_reply.GIF", "$user/templates/subSilver/images/icon_latest_reply.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_faq.GIF", "$user/templates/subSilver/images/icon_mini_faq.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_groups.GIF", "$user/templates/subSilver/images/icon_mini_groups.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_login.GIF", "$user/templates/subSilver/images/icon_mini_login.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_members.GIF", "$user/templates/subSilver/images/icon_mini_members.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_message.GIF", "$user/templates/subSilver/images/icon_mini_message.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_profile.GIF", "$user/templates/subSilver/images/icon_mini_profile.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_register.GIF", "$user/templates/subSilver/images/icon_mini_register.GIF");
copy("phpbb2/templates/subSilver/images/icon_mini_search.GIF", "$user/templates/subSilver/images/icon_mini_search.GIF");
copy("phpbb2/templates/subSilver/images/icon_minipost.GIF", "$user/templates/subSilver/images/icon_minipost.GIF");
copy("phpbb2/templates/subSilver/images/icon_minipost_new.GIF", "$user/templates/subSilver/images/icon_minipost_new.GIF");
copy("phpbb2/templates/subSilver/images/icon_newest_reply.GIF", "$user/templates/subSilver/images/icon_newest_reply.GIF");
copy("phpbb2/templates/subSilver/images/logo_phpBB.GIF", "$user/templates/subSilver/images/logo_phpBB.GIF");
copy("phpbb2/templates/subSilver/images/logo_phpBB_med.GIF", "$user/templates/subSilver/images/logo_phpBB_med.GIF");
copy("phpbb2/templates/subSilver/images/msg_inbox.GIF", "$user/templates/subSilver/images/msg_inbox.GIF");
copy("phpbb2/templates/subSilver/images/msg_outbox.GIF", "$user/templates/subSilver/images/msg_outbox.GIF");
copy("phpbb2/templates/subSilver/images/msg_savebox.GIF", "$user/templates/subSilver/images/msg_savebox.GIF");
copy("phpbb2/templates/subSilver/images/msg_sentbox.GIF", "$user/templates/subSilver/images/msg_sentbox.GIF");
copy("phpbb2/templates/subSilver/images/spacer.GIF", "$user/templates/subSilver/images/spacer.GIF");
copy("phpbb2/templates/subSilver/images/topic_delete.GIF", "$user/templates/subSilver/images/topic_delete.GIF");
copy("phpbb2/templates/subSilver/images/topic_lock.GIF", "$user/templates/subSilver/images/topic_lock.GIF");
copy("phpbb2/templates/subSilver/images/topic_move.GIF", "$user/templates/subSilver/images/topic_move.GIF");
copy("phpbb2/templates/subSilver/images/topic_split.GIF", "$user/templates/subSilver/images/topic_split.GIF");
copy("phpbb2/templates/subSilver/images/topic_unlock.GIF", "$user/templates/subSilver/images/topic_unlock.GIF");
copy("phpbb2/templates/subSilver/images/vote_lcap.GIF", "$user/templates/subSilver/images/vote_lcap.GIF");
copy("phpbb2/templates/subSilver/images/vote_rcap.GIF", "$user/templates/subSilver/images/vote_rcap.GIF");
copy("phpbb2/templates/subSilver/images/voting_bar.GIF", "$user/templates/subSilver/images/voting_bar.GIF");
copy("phpbb2/templates/subSilver/images/whosonline.GIF", "$user/templates/subSilver/images/whosonline.GIF");
copy("phpbb2/templates/subSilver/admin/admin_message_body.TPL", "$user/templates/subSilver/admin/admin_message_body.TPL");
copy("phpbb2/templates/subSilver/admin/auth_forum_body.TPL", "$user/templates/subSilver/admin/auth_forum_body.TPL");
copy("phpbb2/templates/subSilver/admin/auth_select_body.TPL", "$user/templates/subSilver/admin/auth_select_body.TPL");
copy("phpbb2/templates/subSilver/admin/auth_ug_body.TPL", "$user/templates/subSilver/admin/auth_ug_body.TPL");
copy("phpbb2/templates/subSilver/admin/board_config_body.TPL", "$user/templates/subSilver/admin/board_config_body.TPL");
copy("phpbb2/templates/subSilver/admin/category_edit_body.TPL", "$user/templates/subSilver/admin/category_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/confirm_body.TPL", "$user/templates/subSilver/admin/confirm_body.TPL");
copy("phpbb2/templates/subSilver/admin/db_utils_backup_body.TPL", "$user/templates/subSilver/admin/db_utils_backup_body.TPL");
copy("phpbb2/templates/subSilver/admin/db_utils_restore_body.TPL", "$user/templates/subSilver/admin/db_utils_restore_body.TPL");
copy("phpbb2/templates/subSilver/admin/disallow_body.TPL", "$user/templates/subSilver/admin/disallow_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_admin_body.TPL", "$user/templates/subSilver/admin/forum_admin_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_delete_body.TPL", "$user/templates/subSilver/admin/forum_delete_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_edit_body.TPL", "$user/templates/subSilver/admin/forum_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_prune_body.TPL", "$user/templates/subSilver/admin/forum_prune_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_prune_result_body.TPL", "$user/templates/subSilver/admin/forum_prune_result_body.TPL");
copy("phpbb2/templates/subSilver/admin/forum_prune_select_body.TPL", "$user/templates/subSilver/admin/forum_prune_select_body.TPL");
copy("phpbb2/templates/subSilver/admin/group_edit_body.TPL", "$user/templates/subSilver/admin/group_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/group_select_body.TPL", "$user/templates/subSilver/admin/group_select_body.TPL");
copy("phpbb2/templates/subSilver/admin/index_body.TPL", "$user/templates/subSilver/admin/index_body.TPL");
copy("phpbb2/templates/subSilver/admin/index_frameset.TPL", "$user/templates/subSilver/admin/index_frameset.TPL");
copy("phpbb2/templates/subSilver/admin/index_navigate.TPL", "$user/templates/subSilver/admin/index_navigate.TPL");
copy("phpbb2/templates/subSilver/admin/page_footer.TPL", "$user/templates/subSilver/admin/page_footer.TPL");
copy("phpbb2/templates/subSilver/admin/page_header.TPL", "$user/templates/subSilver/admin/page_header.TPL");
copy("phpbb2/templates/subSilver/admin/ranks_edit_body.TPL", "$user/templates/subSilver/admin/ranks_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/ranks_list_body.TPL", "$user/templates/subSilver/admin/ranks_list_body.TPL");
copy("phpbb2/templates/subSilver/admin/smile_edit_body.TPL", "$user/templates/subSilver/admin/smile_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/smile_import_body.TPL", "$user/templates/subSilver/admin/smile_import_body.TPL");
copy("phpbb2/templates/subSilver/admin/smile_list_body.TPL", "$user/templates/subSilver/admin/smile_list_body.TPL");
copy("phpbb2/templates/subSilver/admin/styles_addnew_body.TPL", "$user/templates/subSilver/admin/styles_addnew_body.TPL");
copy("phpbb2/templates/subSilver/admin/styles_edit_body.TPL", "$user/templates/subSilver/admin/styles_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/styles_exporter.TPL", "$user/templates/subSilver/admin/styles_exporter.TPL");
copy("phpbb2/templates/subSilver/admin/styles_list_body.TPL", "$user/templates/subSilver/admin/styles_list_body.TPL");
copy("phpbb2/templates/subSilver/admin/user_avatar_gallery.TPL", "$user/templates/subSilver/admin/user_avatar_gallery.TPL");
copy("phpbb2/templates/subSilver/admin/user_ban_body.TPL", "$user/templates/subSilver/admin/user_ban_body.TPL");
copy("phpbb2/templates/subSilver/admin/user_edit_body.TPL", "$user/templates/subSilver/admin/user_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/user_email_body.TPL", "$user/templates/subSilver/admin/user_email_body.TPL");
copy("phpbb2/templates/subSilver/admin/user_select_body.TPL", "$user/templates/subSilver/admin/user_select_body.TPL");
copy("phpbb2/templates/subSilver/admin/words_edit_body.TPL", "$user/templates/subSilver/admin/words_edit_body.TPL");
copy("phpbb2/templates/subSilver/admin/words_list_body.TPL", "$user/templates/subSilver/admin/words_list_body.TPL");

$config_data = '<?php'."\n\n";
$config_data .= '$dbhost = \'localhost\';' . "\n";
$config_data .= '$dbhost = ';
$config_data .= '"';
$config_data .= $user;
$config_data .= '"';
$config_data .= ';';
$config_data .= "\n";
$config_data .= '$dbuser = \'root2\';' . "\n";
$config_data .= '$dbpasswd = \'88edb7a5\';' . "\n\n";
$config_data .= '$table_prefix = \'wbg_\';' . "\n\n";
$config_data .= 'define(\'PHPBB_INSTALLED\', true);'."\n\n";   
$config_data .= '?>';
$config = fopen("$user/config.php","w+");
fwrite($config ,$config_data);
fclose($config);

$link = mysql_connect('localhost', 'root2', '********');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}

$sql = 'CREATE DATABASE my_db';
if (mysql_query($sql, $link)) {
   echo "Database my_db created successfully\n";
} else {
   echo 'Error creating database: ' . mysql_error() . "\n";

?>

кажете каде греша и защо ми показва че ?> и грешно и как да го оправя

Благодаря предварително
 

mizarck

Registered
hrischo каза:
май си изпуснал затваряща се скоба - }
EDIT:
echo 'Error creating database: ' . mysql_error() . "\n";
}
?>
10x

пп леле тези запетайки точки и скоби ще ме побъркат
една да изпуснеш и всичко се обърква :(
 

Горе