File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed
Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -51,5 +51,38 @@ interface Another {
5151goto Label;
5252
5353Label:
54- №
54+
55+ $ db ['default ' ]['pconnect ' ] = TRUE ;
56+ $ db ['default ' ]['db_debug ' ] = TRUE ;
57+ $ db ['default ' ]['cache_on ' ] = FALSE ;
58+ $ db ['default ' ]['cachedir ' ] = '' ;
59+ $ db ['default ' ]['char_set ' ] = 'utf8 ' ;
60+ $ db ['default ' ]['dbcollat ' ] = 'utf8mb4_general_ci ' ;
61+
62+ if (empty ($ this ->instagram ->getAccessToken ())) {
63+
64+
65+ if (empty ($ accessToken )) {
66+ // receive OAuth token object
67+ if (!empty ($ _GET ['code ' ]))
68+ $ instagramReturn = $ this ->instagram ->getOAuthToken ($ _GET ['code ' ]);
69+
70+ if (isset ($ instagramReturn )) {
71+ // store user access token
72+ if (isset ($ instagramReturn ->access_token )) {
73+ $ this ->instagram ->setAccessToken ($ instagramReturn );
74+ } elseif ($ instagramReturn ->code !== 400 ) {
75+ if (isset ($ _GET ['error ' ])) {
76+ echo 'An error occurred: ' . $ _GET ['error_description ' ];
77+ }
78+
79+ }
80+
81+ }
82+ } else {
83+ $ this ->instagram ->setAccessToken ($ accessToken );
84+ }
85+
86+
87+ }
5588?>
You can’t perform that action at this time.
0 commit comments