![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 11 Pomógł: 0 Dołączył: 7.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
ogólnie to nawet nie wiem o co chodzi w PHP i nie mam czasu za bardzo wgłębiać się w jego tajniki, a potrzebuję zamieścić na stronie kalendarz - extcalendar 2 ( http://sourceforge.net/projects/extcal )
tyle, że ściągnąłem go sobie i dalej nie wiem co muszę zrobić (IMG:http://forum.php.pl/style_emoticons/default/blink.gif) może ktoś by się tak pofatygował i napisał mi ktok po kroku co muszę zrobić? (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ten post edytował carlosterrorist 7.05.2008, 23:35:01 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 11 Pomógł: 0 Dołączył: 7.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
otwieram install.php i pojawia się na górze strony:
"'"', '<' => '<', '>' => '>'); $value = is_array($value) ?array_map('stripslashes_deep', $value) : strtr(stripslashes($value), $char_array); return $value; } $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } // ---------------------------- TEST PREREQUIRED --------------------------- // function test_fs() { global $errors, $DFLT; // include must be writable to create config file if (! is_dir($DFLT['cfg_d'])) { $errors .= "ˇ A subdirectory called '{$DFLT['cfg_d']}' should normally exist in the directory where you uploaded ExtCalendar. The installer can't find this directory. Check that you have uploaded all ExtCalendar files to your server. "; } elseif (! is_writable($DFLT['cfg_d'])) { if(!@chmod($DFLT['cfg_d'], 0777)) { $errors .= "ˇ The '{$DFLT['cfg_d']}' directory (located in the directory where you uploaded ExtCalendar) should be writable in order to save your configuration. Use your FTP program to change its mode to 777. "; } } // uploads must be writable to upload pictures if (! is_dir($DFLT['upl_d'])) { $errors .= "ˇ A subdirectory called '{$DFLT['upl_d']}' should normally exist in the directory where you uploaded ExtCalendar. The installer can't find this directory. Check that you have uploaded all ExtCalendar files to your server. "; } elseif (! is_writable($DFLT['upl_d'])) { if(!@chmod($DFLT['upl_d'], 0777)) { $errors .= "ˇ The '{$DFLT['upl_d']}' directory (located in the directory where you uploaded ExtCalendar) should be writable in order to allow pictures upload. Use your FTP program to change its mode to 777. "; } } } // ----------------------------- TEST FUNCTIONS ---------------------------- // function test_table_exists($database, $tableName) { $tables = array(); $tablesResult = mysql_list_tables($database); while ($row = db_fetch_row($tablesResult)) $tables[] = $row[0]; return(in_array($tableName, $tables)); } function test_sql_connection() { global $errors; if (! $connect_id = @mysql_connect($_POST['dbserver'], $_POST['dbuser'], $_POST['dbpass'])) { $errors .= "ˇ Could not create a DB connection, please check the SQL values entered Database error was : " . mysql_error() . " "; } elseif (! mysql_select_db($_POST['dbname'], $connect_id)) { $errors .= "ˇ The database system could not locate a database called '{$_POST['dbname']}' please check the value entered for this "; } } function test_admin_login() { global $errors; if ($_POST['admin_username'] == '' || $_POST['admin_password'] == '') $errors .= "ˇ It is required to provide a 'username' and a 'password' for the admin. "; if (!preg_match('/\A\w*\Z/', $_POST['admin_username']) || !preg_match('/\A\w*\Z/', $_POST['admin_password'])) $errors .= "ˇ Admin username and password must only contain alphanumeric characters. "; } // Test is safe_mode is misconfigured function test_silly_safe_mode() { global $DFLT; $test_file = "{$DFLT['upl_d']}/dummy/dummy.txt"; @mkdir(dirname($test_file), 0755); $fd = @fopen($test_file, 'w'); if (!$fd) { @rmdir(dirname($test_file)); return true; } fclose($fd); @unlink($test_file); @rmdir(dirname($test_file)); } // ------------------------- HTML OUTPUT FUNCTIONS ------------------------- // function html_header() { ?>" potem jest grafika kalenadrza z logiem, poniżej "ExtCalendar critical error: Unable to load the file'".$license_file."' !"; $license_txt = fread(fopen($license_file, 'r'), filesize($license_file)); echo <<" potem jest tabelka gdzie chyba powinna być treść licencji, ale mam po prostu "$license_txt" dalej mam linijkę tekstu "EOT; } function html_installer_locked() { global $DFLT; ?>" niżej jest tabelka informująca, że jest błąd z tytułem "The installer is locked" z treścią: "The installer has already been run successfuly once and is now locked. If you want to run the installer again, you first need to delete the '' file that was created in the directory where you put ExtCalendar. You can do this with any FTP program." tak z grubsza, bo są dalsze tabelki, gdzie jest napisane, że muszę naprawić właśnie jakieś błędy, żeby instalowa Ten post edytował carlosterrorist 8.05.2008, 12:39:07 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 08:40 |