aboutsummaryrefslogtreecommitdiffstats
path: root/functions/admin_functions.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-05-30 00:45:20 +0000
committerChad Little <clittle@users.sourceforge.net>2003-05-30 00:45:20 +0000
commit544791f934e723c7393023a576f10ed6a21958ae (patch)
tree422b12af6e318dde1625edf08e180c1caa7c03d2 /functions/admin_functions.php
parent692c1adcc5bd52b8dc501ab2bffadf947d9b452b (diff)
downloadphpicalendar-544791f934e723c7393023a576f10ed6a21958ae.tar.gz
phpicalendar-544791f934e723c7393023a576f10ed6a21958ae.tar.bz2
phpicalendar-544791f934e723c7393023a576f10ed6a21958ae.zip
Cleaned up look and feel of admin pages, corrected some error_reporting.
Diffstat (limited to 'functions/admin_functions.php')
-rw-r--r--functions/admin_functions.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/functions/admin_functions.php b/functions/admin_functions.php
index 4bdd712..7e7a8a6 100644
--- a/functions/admin_functions.php
+++ b/functions/admin_functions.php
@@ -50,10 +50,10 @@ function login_ftp ($username, $password) {
global $ftp_server;
// set up basic connection
- $conn_id = ftp_connect($ftp_server);
+ $conn_id = @ftp_connect($ftp_server);
// login with username and password
- $login_result = ftp_login($conn_id, $username, $password);
+ $login_result = @ftp_login($conn_id, $username, $password);
// check connection
if ((!$conn_id) || (!$login_result)) {
@@ -61,7 +61,7 @@ function login_ftp ($username, $password) {
}
// close the FTP stream
- ftp_close($conn_id);
+ @ftp_close($conn_id);
return TRUE;
}
@@ -96,24 +96,24 @@ function delete_cal ($filename) {
$filename = get_ftp_calendar_path() . "/" . $filename;
// set up basic connection
- $conn_id = ftp_connect($ftp_server);
+ $conn_id = @ftp_connect($ftp_server);
// login with username and password
- $login_result = ftp_login($conn_id, $HTTP_SESSION_VARS['phpical_username'], $HTTP_SESSION_VARS['phpical_password']);
+ $login_result = @ftp_login($conn_id, $HTTP_SESSION_VARS['phpical_username'], $HTTP_SESSION_VARS['phpical_password']);
// check connection
if ((!$conn_id) || (!$login_result))
return FALSE;
// delete the file
- $delete = ftp_delete($conn_id, $filename);
+ $delete = @ftp_delete($conn_id, $filename);
// check delete status
if (!$delete)
return FALSE;
// close the FTP stream
- ftp_close($conn_id);
+ @ftp_close($conn_id);
return TRUE;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy