-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
92 changed files
with
1,481 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-box | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-googledrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
@@ -19,6 +19,7 @@ | |
|
||
$string['basicinformation'] = 'Basic Information'; | ||
$string['applicationdesc'] = 'You must create %san application%s, if you wish to access and use OneDrive API. When you will create the application, the <code>Client ID</code> and <code>Client secret</code> will be generated. Copy and paste them here. Then copy <code>Redirect URL</code> and paste it into application settings. Save application settings and this plugin settings.'; | ||
$string['applicationdesc2'] = 'You have to create your application in <b>Live SDK applications</b> section.'; | ||
$string['applicationname'] = 'Application name'; | ||
$string['applicationnamedesc'] = 'You must provide unique application name, e.g. the name of this site.'; | ||
$string['applicationicon'] = 'Application logo'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
@@ -184,6 +184,11 @@ public static function get_config_options() { | |
'type' => 'html', | ||
'value' => get_string('applicationdesc', 'blocktype.cloud/microsoftdrive', '<a href="https://account.live.com/developers/applications">', '</a>'), | ||
); | ||
$elements['applicationdesc2'] = array( | ||
'type' => 'html', | ||
'class' => 'bg-danger text-danger', | ||
'value' => '<div style="padding:0 10px">' . get_string('applicationdesc2', 'blocktype.cloud/microsoftdrive') . '</div>', | ||
); | ||
$elements['basicinformation'] = array( | ||
'type' => 'fieldset', | ||
'class' => 'first', | ||
|
@@ -308,7 +313,7 @@ public function service_list() { | |
} | ||
else { | ||
$service->pending = true; | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
return $service; | ||
} | ||
|
@@ -332,7 +337,7 @@ public function request_token() { | |
redirect($request_url); | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -381,7 +386,7 @@ public function access_token($oauth_code) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -448,7 +453,7 @@ public function check_access_token($owner=null) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -472,7 +477,7 @@ public function revoke_access() { | |
redirect($request_url); | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -543,7 +548,7 @@ public function account_info() { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -627,7 +632,7 @@ public function get_filelist($folder_id='0', $selected=array(), $owner=null) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -715,7 +720,6 @@ public function get_folder_content($folder_id=0, $options, $block=0) { | |
foreach($data['data'] as $artefact) { | ||
$id = $artefact['id']; | ||
$type = ($artefact['type'] == 'folder' ? 'folder' : 'file'); | ||
// Get artefactname by removing parent path from beginning... | ||
$artefactname = $artefact['name']; | ||
if ($artefact['type'] == 'folder') { | ||
$icon = '<span class="icon-folder-open icon icon-lg"></span>'; | ||
|
@@ -756,7 +760,7 @@ public function get_folder_content($folder_id=0, $options, $block=0) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -802,7 +806,7 @@ public function get_folder_info($folder_id=0, $owner=null) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -848,7 +852,7 @@ public function get_file_info($file_id=0, $owner=null) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -882,7 +886,7 @@ public function download_file($file_id=0, $owner=null) { | |
return $result; | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
@@ -920,7 +924,7 @@ public function embed_file($file_id=0, $options=array(), $owner=null) { | |
} | ||
} | ||
else { | ||
$SESSION->add_error_msg('Can\'t find Live consumer key and/or consumer secret.'); | ||
$SESSION->add_error_msg('Can\'t find Microsoft Live consumer key and/or consumer secret.'); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
* @subpackage blocktype-microsoftdrive | ||
* @author Gregor Anzelj | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL | ||
* @copyright (C) 2012-2016 Gregor Anzelj, [email protected] | ||
* @copyright (C) 2012-2017 Gregor Anzelj, [email protected] | ||
* | ||
*/ | ||
|
||
defined('INTERNAL') || die(); | ||
|
||
$config = new StdClass; | ||
$config->version = 2016022600; | ||
$config->release = '16.02.1'; | ||
$config->version = 2017061700; | ||
$config->release = '17.06.1'; | ||
$config->auth = 'OAuth 2.0'; |
Oops, something went wrong.