# 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~/getImg # Last Substitute String: $ # Command Line History (newest to oldest): :w :q! :Q! :q1 :q :! :Q :wq :!q :s :Wq # Search String History (newest to oldest): ?/getImg ?/api.yimian ?/echo # Expression History (newest to oldest): # Input Line History (newest to oldest): # Input Line History (newest to oldest): # Registers: ""0 CHAR 0 /* obs get img */ function getImg($path, $time = 300){ return str_replace('yimian-image.obs.cn-east-2.myhuaweicloud.com:443','image.yimian.xyz',trim(exec("obs sign obs://yimian-image/". $path ." -e=". $time))); } "1 CHAR 0 function getMatchedKeys($str, $arr){ if(!is_array($str)){ $o = array(); foreach($arr as $key=>$val){ if($val >= $str - $GLOBALS['range'] && $val <= $str + $GLOBALS['range']) array_push($o, $key); } return $o; }else{ $o = array(); foreach($arr as $key=>$val){ if($val >= $str[0] - $GLOBALS['range'] && $val <= $str[1] + $GLOBALS['range']) array_push($o, $key); } return $o; } } "2 CHAR 0 elseif($type){ $arr = getImgsInfo($type); if($id){ $pos = array_search($id, $arr[1]); if($pos) $path = $type. '/' .$arr[0][$pos]; } if(!$size && !$path){ $path = $type. '/' .$arr[0][array_rand($arr[0])]; }elseif(strpos($size, '-') && !$path){ $arr_size = explode('x',$size); if(strpos($arr_size[0], '-')) $arr_size_length = explode('-',$arr_size[0]); else $arr_size_length = $arr_size[0]; if(strpos($arr_size[1], '-')) $arr_size_high = explode('-',$arr_size[1]); else $arr_size_high = $arr_size[1]; $arr_length = getMatchedKeys($arr_size_length, $arr[2]); $arr_high = getMatchedKeys($arr_size_high, $arr[3]); if($arr_size[0] == '*') $arr_keys = $arr_high; elseif($arr_size[1] == '*') $arr_keys = $arr_length; else $arr_keys = array_intersect($arr_length, $arr_high); if(!count($arr_keys)){ header('content-type: application/json'); echo json_encode(array("err"=>"Can not find any images matching Size $size in Type $type!!")); die(); } do{ $index = array_rand($arr_keys); }while($R18 != true && $arr[6][$arr_keys[$index]] != "normal"); $path = $type. '/' .$arr[0][$arr_keys[$index]]; }elseif(!$path){ $arr_size = explode('x',$size); $arr_length = getMatchedKeys($arr_size[0], $arr[2]); $arr_high = getMatchedKeys($arr_size[1], $arr[3]); if($arr_size[0] == '*' && $arr_size[1] == '*') $arr_keys = getMatchedKeys(array(0=>0,1=>9999), $arr[2]); elseif($arr_size[0] == '*') $arr_keys = $arr_high; elseif($arr_size[1] == '*') $arr_keys = $arr_length; else $arr_keys = array_intersect($arr_length, $arr_high); if(!count($arr_keys)){ header('content-type: application/json'); echo json_encode(array("err"=>"Can not find any images matching Size $size in Type $type!!")); die(); } do{ $index = array_rand($arr_keys); }while($R18 != true && $arr[6][$arr_keys[$index]] != "normal"); $path = $type. '/' .$arr[0][$arr_keys[$index]]; "3 LINE 0 "4 LINE 0 "5 LINE 0 if(isset($range) && $range > 0) $range = $range; else $range = 0; "6 LINE 0 if($R18 != "true") $R18 = false; else $R18 = true; "7 LINE 0 if($display != "true") $display = false; else $display = true; "8 LINE 0 if(!isset($path)) $path = null; "9 LINE 0 if(!isset($size)) $size = null; "- CHAR 0 # File marks: '0 22 28 /home/ushio/www/img/usr/themes/photograph/index.php '1 1 0 /home/ushio/www/img/usr/themes/photograph/index. '2 1 0 /home/lib/php/anti-ddos.php '3 1 0 /home/ushio/www/img/index.php '4 1 0 /home/ushio/www/img/in '5 38 0 /home/ushio/www/img/index.php '6 32 0 /home/ushio/www/api/video/index.php '7 291 3 /home/ushio/www/api/functions.php '8 20 0 /home/ushio/www/api/video/index.php '9 29 18 /home/ushio/www/api/video/index.php # Jumplist (newest first): -' 22 28 /home/ushio/www/img/usr/themes/photograph/index.php -' 1 0 /home/ushio/www/img/usr/themes/photograph/index.php -' 1 0 /home/ushio/www/img/usr/themes/photograph/index. -' 1 0 /home/lib/php/anti-ddos.php -' 1 0 /home/ushio/www/img/index.php -' 38 0 /home/ushio/www/img/index.php -' 1 0 /home/ushio/www/img/in -' 32 0 /home/ushio/www/api/video/index.php -' 20 0 /home/ushio/www/api/video/index.php -' 291 3 /home/ushio/www/api/functions.php -' 293 0 /home/ushio/www/api/functions.php -' 29 4 /home/ushio/www/api/video/index.php -' 31 0 /home/ushio/www/api/video/index.php -' 298 4 /home/ushio/www/api/functions.php -' 491 0 /home/ushio/www/api/functions.php -' 1 0 /home/ushio/www/api/functions.php -' 541 0 /home/ushio/www/api/functions.php -' 2 0 /home/ushio/www/api/functions.php -' 1 0 /home/ushio/www/api/video/index.php -' 1 0 /home/ushio/www/api/video/in -' 170 11 ~/www/settlement/api/index.php -' 27 0 ~/www/settlement/api/index.php -' 573 1 ~/www/settlement/index.html -' 294 24 ~/www/settlement/index.html -' 289 16 ~/www/settlement/index.html -' 5 105 ~/www/settlement/login.html -' 10 0 ~/www/settlement/login.html -' 285 6 ~/www/settlement/index.html -' 292 6 ~/www/settlement/index.html -' 282 1 ~/www/settlement/index.html -' 1 0 ~/www/settlement/login.html -' 1 0 ~/www/settlement/login.php -' 296 0 ~/www/settlement/index.html -' 310 0 ~/www/settlement/index.html -' 317 0 ~/www/settlement/index.html -' 320 0 ~/www/settlement/index.html -' 327 0 ~/www/settlement/index.html -' 329 0 ~/www/settlement/index.html -' 335 0 ~/www/settlement/index.html -' 339 0 ~/www/settlement/index.html -' 345 0 ~/www/settlement/index.html -' 348 0 ~/www/settlement/index.html -' 354 0 ~/www/settlement/index.html -' 357 0 ~/www/settlement/index.html -' 363 0 ~/www/settlement/index.html -' 366 0 ~/www/settlement/index.html -' 372 0 ~/www/settlement/index.html -' 376 0 ~/www/settlement/index.html -' 406 0 ~/www/settlement/index.html -' 410 0 ~/www/settlement/index.html -' 417 0 ~/www/settlement/index.html -' 421 0 ~/www/settlement/index.html -' 423 0 ~/www/settlement/index.html -' 433 0 ~/www/settlement/index.html -' 467 0 ~/www/settlement/index.html -' 474 0 ~/www/settlement/index.html -' 477 0 ~/www/settlement/index.html -' 481 0 ~/www/settlement/index.html -' 502 0 ~/www/settlement/index.html -' 509 0 ~/www/settlement/index.html -' 519 0 ~/www/settlement/index.html -' 528 0 ~/www/settlement/index.html -' 537 0 ~/www/settlement/index.html -' 540 0 ~/www/settlement/index.html -' 550 0 ~/www/settlement/index.html -' 555 0 ~/www/settlement/index.html -' 577 0 ~/www/settlement/index.html -' 187 7 ~/www/settlement/api/index.php -' 6 0 ~/www/settlement/api/test.php -' 36 0 ~/www/settlement/api/test.php -' 8 0 ~/www/settlement/api/index.php -' 36 3 ~/www/settlement/index.html -' 14 1 ~/www/settlement/index.html -' 11 4 ~/www/settlement/api/test.php -' 33 0 ~/www/settlement/api/test.php -' 34 0 ~/www/settlement/api/test.php -' 18 4 ~/www/settlement/api/test.php -' 50 0 ~/www/settlement/api/test.php -' 52 0 ~/www/settlement/api/test.php -' 91 3 ~/www/settlement/api/index.php -' 13 1 ~/www/settlement/buy-sell.html -' 1 0 ~/www/settlement/buy-sell.html -' 13 127 ~/www/settlement/index.html -' 277 9 ~/www/settlement/index.html -' 192 8 ~/www/settlement/api/index.php -' 162 8 ~/www/settlement/api/index.php -' 179 8 ~/www/settlement/api/index.php -' 214 0 ~/www/settlement/api/index.php -' 205 8 ~/www/settlement/api/index.php -' 161 4 ~/www/settlement/api/index.php -' 4 423 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 9 452 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 22 4 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 16 12 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 69 8 ~/www/settlement/imgbed/index.html -' 47 4 ~/www/settlement/imgbed/index.html -' 14 4 ~/www/settlement/imgbed/index.html -' 26 6 ~/www/settlement/api/getWeekData.php -' 1 0 ~/www/settlement/api/getWeekData.php # History of marks within files (newest to oldest): > /home/ushio/www/img/usr/themes/photograph/index.php " 22 28 ^ 22 29 . 22 28 + 22 28 > /home/ushio/www/img/usr/themes/photograph/index. " 1 0 ^ 1 0 > /home/lib/php/anti-ddos.php " 1 0 ^ 1 0 > /home/ushio/www/img/index.php " 1 0 ^ 38 0 > /home/ushio/www/img/in " 1 0 ^ 1 0 > /home/ushio/www/api/video/index.php " 32 0 ^ 20 0 . 29 18 + 12 30 + 15 0 + 16 0 + 23 0 + 21 0 + 23 43 + 19 14 + 28 19 + 30 4 + 33 0 + 29 18 > /home/ushio/www/api/functions.php " 291 3 ^ 291 4 . 291 74 + 286 0 + 295 15 + 296 36 + 298 130 + 286 0 + 288 15 + 289 37 + 291 130 + 294 0 + 291 74 > /home/ushio/www/api/video/in " 1 0 ^ 1 0 > ~/www/settlement/api/index.php " 170 11 ^ 170 12 . 169 413 + 83 62 + 84 0 + 5 0 + 2 0 + 3 37 + 21 69 + 27 192 + 27 96 + 27 126 + 27 154 + 27 183 + 157 0 + 161 0 + 213 3 + 162 104 + 165 7 + 163 40 + 165 31 + 169 9 + 165 31 + 169 385 + 183 0 + 169 389 + 173 116 + 177 26 + 179 31 + 182 21 + 183 0 + 184 0 + 186 33 + 187 68 + 188 22 + 192 218 + 192 332 + 196 140 + 160 14 + 196 152 + 160 49 + 161 10 + 165 28 + 166 8 + 177 22 + 169 383 + 174 8 + 189 8 + 193 8 + 196 159 + 197 8 + 201 8 + 204 22 + 205 10 + 201 15 + 197 15 + 193 15 + 189 15 + 178 11 + 174 15 + 166 15 + 170 15 + 166 12 + 184 12 + 170 12 + 174 12 + 189 12 + 193 12 + 197 12 + 201 12 + 206 60 + 179 59 + 16 48 + 17 21 + 113 17 + 114 8 + 118 13 + 115 14 + 116 27 + 88 7 + 85 14 + 86 100 + 116 105 + 196 169 + 196 42 + 192 91 + 169 90 + 180 11 + 207 12 + 192 335 + 196 153 + 91 64 + 92 1 + 96 0 + 93 44 + 196 257 + 196 152 + 91 39 + 8 15 + 28 0 + 28 0 + 192 507 + 169 413 > ~/www/settlement/index.html " 573 1 ^ 572 54 . 572 53 + 6 9 + 8 59 + 9 77 + 321 56 + 322 51 + 323 163 + 324 164 + 286 0 + 285 58 + 286 44 + 289 12 + 290 3 + 290 15 + 289 33 + 287 37 + 290 8 + 291 15 + 292 6 + 13 78 + 14 127 + 539 58 + 538 57 + 283 31 + 285 0 + 284 22 + 285 25 + 284 40 + 285 8 + 284 0 + 288 48 + 289 17 + 572 53 > ~/www/settlement/login.html " 5 105 ^ 5 106 . 5 105 + 19 7 + 14 0 + 17 0 + 14 0 + 11 3 + 12 41 + 10 37 + 7 6 + 4 0 + 5 105 > ~/www/settlement/login.php " 1 0 ^ 1 0 > ~/www/settlement/api/test.php " 6 0 ^ 36 0 . 33 134 + 3 57 + 52 68 + 5 0 + 50 0 + 50 7 + 15 10 + 16 3 + 15 22 + 16 17 + 18 22 + 41 10 + 18 10 + 41 30 + 18 12 + 20 15 + 23 7 + 21 0 + 25 7 + 27 4 + 29 0 + 34 0 + 27 0 + 28 5 + 27 7 + 29 8 + 32 7 + 39 0 + 34 0 + 24 0 + 21 0 + 38 3 + 41 0 + 52 0 + 43 0 + 44 83 + 46 10 + 50 0 + 17 7 + 18 7 + 40 3 + 26 18 + 28 1 + 30 1 + 26 19 + 28 21 + 30 1 + 28 1 + 26 50 + 28 106 + 35 3 + 35 0 + 33 123 + 8 31 + 9 43 + 10 31 + 11 47 + 26 157 + 30 163 + 33 134 > ~/www/settlement/buy-sell.html " 13 1 . 13 0 + 13 0 > ~/www/settlement/imgbed/upload.php " 30 3 ^ 30 42 . 30 41 + 43 0 + 42 24 + 43 60 + 30 54 + 23 34 + 15 27 + 27 0 + 42 0 + 43 1 + 42 2 + 30 59 + 42 0 + 43 0 + 30 41 > ~/www/settlement/imgbed/js/jquery.imageuploader.js " 4 423 ^ 9 455 . 4 0 + 4 412 + 9 559 + 23 0 + 11 47 + 12 54 + 13 28 + 14 35 + 15 35 + 17 24 + 19 33 + 20 63 + 16 23 + 10 52 + 11 16 + 11 0 + 16 23 + 18 13 + 10 4 + 4 376 + 4 0 > ~/www/settlement/func/functions.php " 46 0 ^ 46 1 . 73 93 + 3 37 + 9 2 + 4 0 + 61 95 + 71 56 + 72 86 + 73 93 > ~/www/settlement/api/getWeekData.php " 51 64 ^ 51 65 . 51 64 + 23 161 + 35 0 + 56 23 + 57 18 + 58 17 + 68 0 + 21 20 + 12 0 + 10 39 + 11 0 + 12 36 + 14 35 + 15 15 + 56 1 + 57 1 + 58 1 + 59 1 + 15 11 + 17 39 + 18 33 + 19 32 + 18 38 + 19 7 + 21 40 + 45 0 + 68 8 + 29 32 + 7 3 + 29 34 + 7 10 + 29 42 + 29 4 + 29 37 + 29 73 + 68 0 + 56 0 + 57 0 + 58 0 + 59 0 + 58 23 + 30 0 + 31 0 + 28 4 + 26 8 + 28 10 + 23 193 + 28 22 + 31 36 + 45 42 + 46 4 + 45 9 + 46 18 + 26 0 + 30 17 + 31 17 + 46 67 + 45 34 + 46 68 + 50 47 + 51 3 + 50 37 + 51 32 + 52 39 + 47 0 + 47 0 + 50 34 + 46 33 + 45 34 + 47 25 + 27 0 + 26 6 + 54 52 + 54 61 + 54 9 + 55 0 + 36 6 + 37 0 + 36 40 + 38 37 + 39 7 + 62 35 + 63 47 + 63 55 + 64 21 + 63 10 + 64 64 + 66 0 + 64 36 + 65 0 + 66 34 + 63 9 + 64 44 + 66 25 + 39 37 + 39 41 + 39 7 + 39 30 + 40 10 + 41 13 + 51 64 > ~/www/settlement/imgbed/index.html " 69 8 ^ 14 37 . 14 36 + 7 24 + 18 50 + 22 90 + 35 60 + 39 75 + 47 123 + 50 88 + 49 27 + 52 198 + 54 35 + 14 36 > ~/www/settlement/imgbed/.gitignore " 1 7 ^ 1 8 . 1 7 + 1 7