# 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~/api.yimian # Last Substitute String: $ # Command Line History (newest to oldest): :wq :w :q :q! :Q! :Wq # Search String History (newest to oldest): ?/api.yimian ?/echo # Expression History (newest to oldest): # Input Line History (newest to oldest): # Input Line History (newest to oldest): # Registers: "0 LINE 0 include '/home/ushio/conf/dbKeys/log.db.key.php'; ""1 LINE 0 $tmp_total = 0; "2 CHAR 0 $total_arr[$ii]['date']=date('Y-m-d', strtotime('-'.($ii+1).'day')); $total_arr[$ii]['total']=$tmp; $firstTime = $firstItem['datetime']; $firstDate = substr($firstTime, 0, 10); $datetime_start = date_create($firstDate); $datetime_end = date_create(date('Y-m-d')); $days = date_diff($datetime_start, $datetime_end)->days; for($ii = 0; $ii < (($days < 30) ? $days: 30); $ii ++){ $sql = "select * from account where datetime>='".date('Y-m-d',strtotime('-'.($ii+1).' day'))." 00:00:00' and datetime<'".date('Y-m-d', strtotime("-$ii day"))." 00:00:00' order by id DESC limit 1"; $result = $conn->query($sql); $tmp = 0; while($row = $result->fetch_assoc()) { $tmp = $row['total']; } $total_arr[$ii]['date']=date('Y-m-d', strtotime('-'.($ii+1).'day')); $total_arr[$ii]['total']=$tmp; } for($i = 0; $i < count($total_arr); $i++){ if($i < count($total_arr) - 1) $total_arr[$i]['val'] = $total_arr[$i]['total'] - $total_arr[$i+1]['total']; else $total_arr[$i]['val'] = 0; } for($i = 0; $i < count($total_arr); $i ++){ if($i < count($total_arr) - 7) $total_arr[$i]['week_val'] = $total_arr[$i]['total'] - $total_arr[$i+7]['total']; else $total_arr[$i]['week_val'] = 0; } "3 LINE 0 array_push($ = $row['total']; } "4 LINE 0 $firstItem = $result->fetch_assoc(); "5 LINE 0 } "6 CHAR 0 $datetime_start = date_create($firstDate); $datetime_end = date_create(date('Y-m-d')); $days = date_diff($datetime_start, $datetime_end)->days; for($ii = 0; $ii < (($days < 30) ? $days: 30); $ii ++){ $sql = "select * from account where datetime>='".date('Y-m-d',strtotime('-'.($ii+1).' day'))." 00:00:00' and datetime<'".date('Y-m-d', strtotime("-$ii day"))." 00:00:00' order by id DESC limit 1"; $result = $conn->query($sql); $tmp = 0; while($row = $result->fetch_assoc()) { $tmp = $row['total']; } $total_arr[$ii]['date']=date('Y-m-d', strtotime('-'.($ii+1).'day')); $total_arr[$ii]['total']=$tmp; } for($i = 0; $i < count($total_arr); $i++){ if($i < count($total_arr) - 1) $total_arr[$i]['val'] = $total_arr[$i]['total'] - $total_arr[$i+1]['total']; else $total_arr[$i]['val'] = 0; } for($i = 0; $i < count($total_arr); $i ++){ if($i < count($total_arr) - 7) $total_arr[$i]['week_val'] = $total_arr[$i]['total'] - $total_arr[$i+7]['total']; else $total_arr[$i]['week_val'] = 0; } "7 LINE 0 $firstItem = $result->fetch_assoc(); "8 LINE 0 "9 LINE 0 "- CHAR 0 # File marks: '0 158 59 ~/www/settlement/api/index.php '1 189 0 ~/www/settlement/api/index.php '2 182 7 ~/www/settlement/api/index.php '3 4 423 ~/www/settlement/imgbed/js/jquery.imageuploader.js '4 69 8 ~/www/settlement/imgbed/index.html '5 26 6 ~/www/settlement/api/getWeekData.php '6 19 68 ~/www/settlement/api/index.php '7 73 93 ~/www/settlement/func/functions.php '8 4 0 ~/www/settlement/api/index.php '9 1 7 ~/www/settlement/imgbed/.gitignore # Jumplist (newest first): -' 158 59 ~/www/settlement/api/index.php -' 189 0 ~/www/settlement/api/index.php -' 182 8 ~/www/settlement/api/index.php -' 140 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 -' 37 43 ~/www/settlement/api/getWeekData.php -' 38 4 ~/www/settlement/api/getWeekData.php -' 19 68 ~/www/settlement/api/index.php -' 4 0 ~/www/settlement/api/index.php -' 73 93 ~/www/settlement/func/functions.php -' 70 0 ~/www/settlement/func/functions.php -' 78 0 ~/www/settlement/func/functions.php -' 87 0 ~/www/settlement/func/functions.php -' 117 73 ~/www/settlement/func/functions.php -' 118 0 ~/www/settlement/func/functions.php -' 119 0 ~/www/settlement/func/functions.php -' 121 0 ~/www/settlement/func/functions.php -' 122 0 ~/www/settlement/func/functions.php -' 151 66 ~/www/settlement/func/functions.php -' 120 0 ~/www/settlement/func/functions.php -' 86 0 ~/www/settlement/func/functions.php -' 152 0 ~/www/settlement/func/functions.php -' 157 0 ~/www/settlement/func/functions.php -' 164 0 ~/www/settlement/func/functions.php -' 179 0 ~/www/settlement/func/functions.php -' 184 0 ~/www/settlement/func/functions.php -' 189 0 ~/www/settlement/func/functions.php -' 196 0 ~/www/settlement/func/functions.php -' 199 0 ~/www/settlement/func/functions.php -' 204 0 ~/www/settlement/func/functions.php -' 207 0 ~/www/settlement/func/functions.php -' 211 0 ~/www/settlement/func/functions.php -' 213 0 ~/www/settlement/func/functions.php -' 220 0 ~/www/settlement/func/functions.php -' 222 0 ~/www/settlement/func/functions.php -' 219 0 ~/www/settlement/func/functions.php -' 195 0 ~/www/settlement/func/functions.php -' 188 0 ~/www/settlement/func/functions.php -' 178 0 ~/www/settlement/func/functions.php -' 154 0 ~/www/settlement/func/functions.php -' 59 0 ~/www/settlement/func/functions.php -' 39 0 ~/www/settlement/func/functions.php -' 67 28 ~/www/settlement/func/functions.php -' 60 0 ~/www/settlement/func/functions.php -' 61 42 ~/www/settlement/func/functions.php -' 4 0 ~/www/settlement/func/functions.php -' 122 12 ~/www/settlement/api/index.php -' 1 7 ~/www/settlement/imgbed/.gitignore -' 327 0 ~/www/settlement/func/functions.php -' 341 8 ~/www/settlement/func/functions.php -' 2 0 /home/ushio/www/api/functions.php -' 1 0 /home/ushio/www/api/functions.php -' 5 68 ~/www/settlement/api/test.php -' 1 0 ~/www/settlement/api/test.php -' 78 0 ~/www/settlement/api/index.php -' 30 58 ~/www/settlement/imgbed/upload.php -' 27 16 ~/www/settlement/imgbed/upload.php -' 1 0 ~/www/settlement/imgbed/upload -' 5 0 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 52 44 ~/www/settlement/imgbed/js/main.js -' 1 0 ~/www/settlement/imgbed/js/main.js -' 10 4 ~/www/settlement/imgbed/js/jquery.imageuploader.js -' 26 17 ~/www/settlement/api/getCurrent.php -' 13 0 ~/www/settlement/api/getCurrent.php -' 15 0 ~/www/settlement/api/getCurrent.php -' 1 0 ~/www/settlement/api/getCurrent.php -' 73 93 ~/www/settlement/func/functions.php -' 70 0 ~/www/settlement/func/functions.php -' 78 0 ~/www/settlement/func/functions.php -' 87 0 ~/www/settlement/func/functions.php -' 117 73 ~/www/settlement/func/functions.php -' 118 0 ~/www/settlement/func/functions.php -' 119 0 ~/www/settlement/func/functions.php -' 121 0 ~/www/settlement/func/functions.php -' 122 0 ~/www/settlement/func/functions.php -' 151 66 ~/www/settlement/func/functions.php -' 120 0 ~/www/settlement/func/functions.php -' 86 0 ~/www/settlement/func/functions.php -' 152 0 ~/www/settlement/func/functions.php -' 157 0 ~/www/settlement/func/functions.php -' 164 0 ~/www/settlement/func/functions.php -' 179 0 ~/www/settlement/func/functions.php -' 184 0 ~/www/settlement/func/functions.php -' 189 0 ~/www/settlement/func/functions.php -' 196 0 ~/www/settlement/func/functions.php -' 199 0 ~/www/settlement/func/functions.php -' 204 0 ~/www/settlement/func/functions.php -' 207 0 ~/www/settlement/func/functions.php -' 211 0 ~/www/settlement/func/functions.php # History of marks within files (newest to oldest): > ~/www/settlement/api/index.php " 158 59 ^ 158 60 . 158 59 + 66 14 + 54 21 + 102 1 + 109 1 + 102 0 + 109 0 + 104 0 + 116 20 + 201 49 + 116 0 + 122 9 + 129 13 + 122 8 + 123 9 + 138 18 + 122 9 + 121 24 + 122 8 + 121 9 + 122 36 + 123 36 + 129 12 + 8 15 + 86 15 + 91 0 + 92 0 + 91 26 + 92 1 + 93 0 + 91 0 + 81 21 + 80 62 + 81 0 + 5 0 + 2 0 + 3 37 + 19 69 + 26 142 + 27 29 + 28 30 + 29 28 + 30 29 + 136 0 + 140 0 + 188 3 + 141 104 + 144 7 + 142 40 + 144 31 + 148 9 + 144 31 + 148 385 + 160 0 + 148 389 + 152 116 + 156 26 + 158 31 + 159 21 + 160 0 + 161 0 + 163 33 + 164 68 + 165 22 + 169 218 + 169 332 + 173 140 + 139 14 + 173 152 + 139 49 + 140 10 + 144 28 + 145 8 + 156 22 + 148 383 + 153 8 + 166 8 + 170 8 + 173 159 + 174 8 + 178 8 + 181 22 + 182 10 + 178 15 + 174 15 + 170 15 + 166 15 + 157 11 + 153 15 + 145 15 + 149 15 + 145 12 + 161 12 + 149 12 + 153 12 + 166 12 + 170 12 + 174 12 + 178 12 + 183 60 + 158 59 > ~/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/index.html " 289 6 ^ 289 7 . 289 6 + 6 9 + 8 59 + 9 77 + 318 56 + 319 51 + 320 163 + 321 164 + 284 0 + 283 58 + 284 44 + 286 12 + 287 3 + 287 15 + 286 33 + 285 37 + 287 8 + 288 15 + 289 6 > ~/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 > /home/ushio/www/api/functions.php " 2 0 > ~/www/settlement/api/test.php " 5 68 ^ 5 69 . 5 68 + 3 57 + 5 68 > ~/www/settlement/imgbed/js/main.js " 52 44 ^ 52 45 . 52 44 + 48 58 + 49 50 + 50 41 + 52 63 + 48 39 + 50 25 + 51 31 + 52 44 > ~/www/settlement/api/getCurrent.php " 26 17 ^ 26 18 . 26 17 + 13 59 + 22 0 + 14 0 + 13 57 + 17 29 + 18 19 + 6 29 + 7 9 + 10 20 + 18 61 + 19 24 + 26 17 > ~/www/settlement/api/getDetail.php " 14 32 ^ 14 33 . 10 45 + 10 45 > ~/www/settlement/api/get " 1 0 > ~/www/settlement/api/getAccountEvents.php " 10 43 ^ 10 44 . 10 43 + 7 7 + 10 53 + 12 0 + 17 1 + 17 0 + 12 32 + 17 0 + 13 0 + 17 0 + 16 0 + 12 0 + 16 0 + 17 0 + 14 15 + 15 0 + 14 31 + 17 0 + 10 36 + 18 0 + 10 43 > ~/www/settlement/imgbed/js/jquery.min.js " 5 40 ^ 1 0 > ~/www/settlement/imgbed/js/jquery.hwLayer.js " 10 0 ^ 1 0 > ~/www/settlement/imgbed/style/main.css " 1 29 ^ 1 0 . 1 62 + 1 62 > ~/www/settlement/imgbed/uploadp " 1 0 ^ 1 0 > ~/www/settlement/log.db.key.php " 3 26 ^ 6 28 . 6 24 + 4 22 + 6 24