# This viminfo file was generated by Vim 7.4. # You may edit it if you're careful! # Value of 'encoding' when this file was written *encoding=utf-8 # hlsearch on (H) or off (h): ~H # Last Search Pattern: ~MSle0~/echo # Last Substitute String: $ # Command Line History (newest to oldest): :q :w :wq :Wq :q! :Q! # Search String History (newest to oldest): ?/echo # Expression History (newest to oldest): # Input Line History (newest to oldest): # Input Line History (newest to oldest): # Registers: "0 LINE 0 */ ""1 LINE 0 var_dump($current_item); "2 LINE 0 $tmpItem['status'] = 1; "3 LINE 0 $tmpItem['status'] = 1; "4 LINE 0 echo checkCurrentLess($tmpItem); "5 LINE 0 */ "6 LINE 0 /* "7 LINE 0 $dsn, 'username' => $username, 'password' => $password)); // Pass a storage object or array of storage objects to the OAuth2 server class $server = new \OAuth2\Server($storage); // Add the "Client Credentials" grant type (it is the simplest of the grant types) $server->addGrantType(new \OAuth2\GrantType\ClientCredentials($storage)); // Add the "Authorization Code" grant type (this is where the oauth magic happens) $server->addGrantType(new \OAuth2\GrantType\AuthorizationCode($storage)); \OAuth2\Autoloader::register(); // $dsn is the Data Source Name for your database, for exmaple "mysql:dbname=my_oauth2_db;host=localhost" $storage = new \OAuth2\Storage\Pdo(array('dsn' => $dsn, 'username' => $username, 'password' => $password)); // var_dump($storage); // Pass a storage object or array of storage objects to the OAuth2 server class $server = new \OAuth2\Server($storage); // Add the "Client Credentials" grant type (it is the simplest of the grant types) $server->addGrantType(new \OAuth2\GrantType\ClientCredentials($storage)); // Add the "Authorization Code" grant type (this is where the oauth magic happens) $server->addGrantType(new \OAuth2\GrantType\AuthorizationCode($storage)); $request = \OAuth2\Request::createFromGlobals(); $response = new \OAuth2\Response(); // 校验请求是否 oauth2.0 请求以及是否 clientId 是否已经注册在数据库 if (!$server->validateAuthorizeRequest($request, $response)) { $response->send(); die; } // display an authorization form /*if (empty($_POST)) { exit('

'); } else { echo 'fail '; } "9 LINE 0 " ============================================================================ " Netrw Directory Listing (netrw v149) " /home/ushio/www/oauth/OAuth2 " Sorted by name " Sort sequence: [\/]$,\,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$ " Quick Help: :help -:go up dir D:delete R:rename s:sort-by x:exec " ============================================================================ ../ ./ ClientAssertionType/ Controller/ Encryption/ GrantType/ OpenID/ ResponseType/ Storage/ TokenType/ Autoloader.php Request.php RequestInterface.php Response.php ResponseInterface.php Scope.php ScopeInterface.php Server.php "- CHAR 0 # File marks: '0 121 4 ~/www/settlement/api/index.php '1 83 20 ~/www/settlement/api/index.php '2 6 15 ~/www/settlement/api/index.php '3 108 4 ~/www/settlement/api/index.php '4 144 49 ~/www/settlement/api/index.php '5 1 0 ~/www/settlement/api '6 96 0 ~/www/settlement/api/index.php '7 148 0 ~/www/settlement/api/index.php '8 74 13 ~/www/settlement/api/index.php '9 87 0 ~/www/settlement/func/functions.php # Jumplist (newest first): -' 121 4 ~/www/settlement/api/index.php -' 83 4 ~/www/settlement/api/index.php -' 6 0 ~/www/settlement/api/index.php -' 108 4 ~/www/settlement/api/index.php -' 144 8 ~/www/settlement/api/index.php -' 96 4 ~/www/settlement/api/index.php -' 1 0 ~/www/settlement/api -' 148 0 ~/www/settlement/api/index.php -' 74 8 ~/www/settlement/api/index.php -' 133 0 ~/www/settlement/api/index.php -' 87 0 ~/www/settlement/func/functions.php -' 8 0 ~/www/settlement/func/functions.php -' 442 6 ~/www/settlement/func/functions.php -' 299 6 ~/www/settlement/func/functions.php -' 150 38 ~/www/settlement/func/functions.php -' 116 38 ~/www/settlement/func/functions.php -' 9 1 ~/www/settlement/func/functions.php -' 1 0 ~/www/settlement/func/functions.php -' 3 0 ~/www/settlement/api/index.php -' 2 9 ~/www/settlement/index.php -' 1 0 ~/www/settlement/index.php -' 78 1 ~/www/settlement/func/functions.php -' 1 0 ~/www/settlement/api/index.php -' 1 0 ~/www/settlement/.config.php -' 1 0 ~/www/settlement/.gitignore -' 149 0 /home/ushio/www/api/functions.php -' 227 0 /home/ushio/www/api/functions.php -' 1 0 /home/ushio/www/api/functions.php -' 1 0 /home/ushio/www/api/mail/index.php -' 1 0 /home/ushio/www/api/mail/in -' 5 36 /etc/dnsmasq.d/sola.conf -' 1 0 /etc/dnsmasq.d/sola.conf -' 1 0 ~/www/smartfarm/routes/api.js -' 4 25 ~/www/wx/.env -' 1 0 ~/www/wx/.env -' 70 0 ~/www/smartfarm/html/chart-station.html -' 1 0 ~/www/smartfarm/html/chart-station.html -' 53 49 /home/ushio/www/api/img/index.php -' 111 37 /home/ushio/www/api/img/index.php -' 106 0 /home/ushio/www/api/img/index.php -' 117 66 /home/ushio/www/api/img/index.php -' 77 12 /home/ushio/www/api/img/index.php -' 1 0 /home/ushio/www/api/img/index.php -' 160 0 ~/iot/mqtt/smartfarm/mqtt-server.js -' 1 0 ~/iot/mqtt/smartfarm/mqtt-server.js -' 75 0 /home/ushio/www/oauth/AligenieAuthorize.php -' 16 12 /home/ushio/www/oauth/AligenieAuthorize.php -' 8 0 /home/ushio/www/oauth/AligenieAuthorize.php -' 9 0 /home/ushio/www/oauth/getResource.php -' 7 15 /home/ushio/www/oauth/getResource.php -' 9 0 /home/ushio/www/oauth/AligenieToken.php -' 3 0 /home/ushio/www/oauth/AligenieToken.php -' 1 0 /home/ushio/www/oauth/Aligenie -' 13 0 /home/ushio/www/oauth/AligenieToken.php -' 15 5 /home/ushio/www/oauth/AligenieAuthorize.php -' 11 0 /home/ushio/www/oauth/AligenieToken.php -' 1 0 /home/ushio/www/oauth/getResource.php -' 1 0 /home/ushio/www/oauth/AligenieToken.php -' 1 74 /home/ushio/www/oauth/AligenieAuthorize.php -' 1 0 /home/ushio/www/oauth/OAuth2 -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 9 0 ~/iot/mqtt/smartfarm/mqtt-server.js -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 1 0 /home/ushio/www/oauth/OAuth2 -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 1 0 /home/ushio/www/oauth/OAuth2 -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 16 2 /etc/crontab -' 1 0 /etc/crontab -' 172 0 ~/www/homepage/index.html -' 1 0 ~/www/homepage/index.html -' 16 2 /etc/crontab # History of marks within files (newest to oldest): > ~/www/settlement/api/index.php " 121 4 ^ 72 63 . 73 0 + 4 0 + 3 56 + 58 14 + 46 21 + 94 1 + 101 1 + 94 0 + 101 0 + 96 0 + 108 20 + 144 49 + 108 0 + 114 9 + 121 13 + 114 8 + 115 9 + 130 18 + 114 9 + 113 24 + 114 8 + 113 9 + 114 36 + 115 36 + 121 12 + 6 15 + 78 15 + 83 0 + 84 0 + 83 26 + 84 1 + 85 0 + 83 0 + 73 21 + 72 62 + 73 0 > ~/www/settlement/log.db.key.php " 3 26 ^ 6 28 . 6 24 + 4 22 + 6 24 > ~/www/settlement/func/functions.php " 87 0 ^ 8 3 . 8 2 + 3 37 + 8 2 > ~/www/settlement/index.php " 2 9 ^ 2 10 . 2 9 + 1 5 + 2 9 > ~/www/settlement/.gitignore " 2 10 ^ 2 11 . 2 10 + 1 0 + 2 10 > ~/www/settlement/.config.php " 1 0 ^ 1 0 > /home/ushio/www/api/functions.php " 149 0 ^ 149 0 . 149 0 + 149 0 > /home/ushio/www/api/mail/index.php " 1 0 ^ 1 0 > /home/ushio/www/api/mail/in " 1 0 ^ 1 0 > /etc/dnsmasq.d/sola.conf " 5 36 ^ 5 37 . 5 26 + 5 26 > ~/www/smartfarm/routes/api.js " 1 0 ^ 1 0 > ~/www/wx/.env " 4 25 ^ 4 26 . 4 25 + 2 52 + 3 14 + 2 31 + 4 25 > ~/www/smartfarm/html/chart-station.html " 70 0 ^ 1 0 > /home/ushio/www/api/img/index.php " 53 49 ^ 117 50 . 117 49 + 23 137 + 117 46 + 82 49 + 83 53 + 64 49 + 65 53 + 20 9 + 30 0 + 29 33 + 111 60 + 117 66 + 29 47 + 30 12 + 30 15 + 12 0 + 30 0 + 111 80 + 117 49 > ~/iot/mqtt/smartfarm/mqtt-server.js " 160 0 ^ 160 0 . 160 0 + 1 0 + 1 4 + 5 1 + 4 14 + 6 0 + 3 11 + 7 40 + 9 1 + 1 29 + 141 41 + 142 0 + 149 37 + 150 60 + 151 63 + 152 69 + 153 68 + 155 68 + 154 65 + 160 0 > /home/ushio/www/oauth/AligenieAuthorize.php " 75 0 ^ 75 0 . 75 0 + 1 5 + 1 5 + 16 23 + 13 48 + 14 22 + 15 33 + 16 1 + 16 1 + 76 0 + 75 0 > /home/ushio/www/oauth/getResource.php " 9 0 ^ 9 0 . 9 0 + 40 8 + 7 37 + 8 0 + 9 0 > /home/ushio/www/oauth/AligenieToken.php " 9 0 ^ 3 0 . 3 0 + 26 75 + 1 4 + 2 43 + 10 17 + 11 27 + 8 0 + 3 0 > /home/ushio/www/oauth/Aligenie " 1 0 ^ 1 0 > ~/www/homepage/index.html " 172 0 ^ 1 0