Skip to content
Open
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
20 changes: 10 additions & 10 deletions mflib.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class mflib
public $password;

/**
* The Facebook Access Token of the user whose MediaFire account is
* associated with the corresponding Facebook Account (not required if
* The Facebook Access Token of the user whose MediaFire account is
* associated with the corresponding Facebook Account (not required if
* $email and $password are provided), for getting session token
*
* @access public
Expand All @@ -78,7 +78,7 @@ class mflib
public $userAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";

/**
* Format of the response from MediaFire, can either be JSON or XML.
* Format of the response from MediaFire, can either be JSON or XML.
* Default is 'json'
*
* @access protected
Expand Down Expand Up @@ -180,7 +180,7 @@ class mflib
* @var array
*/
protected $uploadResult = array(
-80 => "Upload Key not found",
-80 => "Upload Key not found",
-20 => "Invalid Upload Key",
0 => "Success"
);
Expand All @@ -192,7 +192,7 @@ class mflib
* @var array
*/
protected $uploadStatus = array(
0 => "Unknown or no status available for this key",
0 => "Unknown or no status available for this key",
2 => "Key is ready for use",
3 => "Upload is in progress",
4 => "Upload is completed",
Expand Down Expand Up @@ -574,7 +574,7 @@ public function getContents($url, $httpOptions = null, $returnRaw = false)
return $data;
} else
{
$this->showError(trim($data["message"]), trim($data["error"]));
#$this->showError(trim($data["message"]), trim($data["error"]));
return false;
}
}
Expand Down Expand Up @@ -970,8 +970,8 @@ public function userMyfilesRevision($sessionToken)
}

/**
* Note: This method was removed from the MediaFire API in 31-Jan-2013 and
* is no longer available since version 0.33 of this library. The code is
* Note: This method was removed from the MediaFire API in 31-Jan-2013 and
* is no longer available since version 0.33 of this library. The code is
* still kept for reference only
*
* Registers a MediaFire account. Note: This call requires SSL
Expand Down Expand Up @@ -1331,8 +1331,8 @@ public function fileGetInfo($sessionToken, $quickkey)
* Return the view link, normal download link, and if possible the direct
* download link of a file.
*
* The direct download link can only be generated for files uploaded by the
* MediaFire account owner himself/herself. If the link is not generated,
* The direct download link can only be generated for files uploaded by the
* MediaFire account owner himself/herself. If the link is not generated,
* an error message is returned explaining the reason
*
* @access public
Expand Down