@@ -89,7 +89,7 @@ |
||
| 89 | 89 | 'data' => $fileContent, 'mimeType' => 'image/jpeg', |
| 90 | 90 | 'uploadType' => 'multipart', 'fields' => 'id') |
| 91 | 91 | ); |
| 92 | - }catch (Exception $e) {
|
|
| 92 | + } catch (Exception $e) {
|
|
| 93 | 93 | print "An error occurred: " . $e->getMessage(); |
| 94 | 94 | } |
| 95 | 95 | $count++; |
@@ -245,7 +245,12 @@ |
||
| 245 | 245 | } |
| 246 | 246 | ?> |
| 247 | 247 | |
| 248 | - <div id="" class="g-access-token"><?php if ($google_access_token) echo "Hello"; else echo ""; ?></div> |
|
| 248 | + <div id="" class="g-access-token"><?php if ($google_access_token) {
|
|
| 249 | + echo "Hello"; |
|
| 250 | +} else {
|
|
| 251 | + echo ""; |
|
| 252 | +} |
|
| 253 | +?></div> |
|
| 249 | 254 | |
| 250 | 255 | <!-- Footer --> |
| 251 | 256 | |
@@ -365,7 +365,7 @@ |
||
| 365 | 365 | } catch (Exception $e) { |
| 366 | 366 | echo 'Email could not be sent. Mailer Error: ', $mail->ErrorInfo; |
| 367 | 367 | } |
| 368 | -}else { |
|
| 368 | +} else { |
|
| 369 | 369 | echo "Email id is not provided Or Downloading failed"; |
| 370 | 370 | } |
| 371 | 371 | ?> |
| 372 | 372 | \ No newline at end of file |
@@ -45,8 +45,9 @@ |
||
| 45 | 45 | foreach ($files as $file) {
|
| 46 | 46 | $file = str_replace('\\', '/', $file);
|
| 47 | 47 | // Ignore "." and ".." folders |
| 48 | - if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..')))
|
|
| 49 | - continue; |
|
| 48 | + if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..'))) {
|
|
| 49 | + continue; |
|
| 50 | + } |
|
| 50 | 51 | if (is_dir($file) === true) {
|
| 51 | 52 | $a[] = array( |
| 52 | 53 | 'type' => 'dir', |