├── .gitattributes ├── .gitignore ├── bc_api.php ├── bc_daemon.php ├── bc_layout.php ├── block_crawler.css ├── block_crawler.php └── readme.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################# 2 | ## Eclipse 3 | ################# 4 | 5 | *.pydevproject 6 | .project 7 | .metadata 8 | bin/ 9 | tmp/ 10 | *.tmp 11 | *.bak 12 | *.swp 13 | *~.nib 14 | local.properties 15 | .classpath 16 | .settings/ 17 | .loadpath 18 | 19 | # External tool builders 20 | .externalToolBuilders/ 21 | 22 | # Locally stored "Eclipse launch configurations" 23 | *.launch 24 | 25 | # CDT-specific 26 | .cproject 27 | 28 | # PDT-specific 29 | .buildpath 30 | 31 | 32 | ################# 33 | ## Visual Studio 34 | ################# 35 | 36 | ## Ignore Visual Studio temporary files, build results, and 37 | ## files generated by popular Visual Studio add-ons. 38 | 39 | # User-specific files 40 | *.suo 41 | *.user 42 | *.sln.docstates 43 | 44 | # Build results 45 | 46 | [Dd]ebug/ 47 | [Rr]elease/ 48 | x64/ 49 | build/ 50 | [Bb]in/ 51 | [Oo]bj/ 52 | 53 | # MSTest test Results 54 | [Tt]est[Rr]esult*/ 55 | [Bb]uild[Ll]og.* 56 | 57 | *_i.c 58 | *_p.c 59 | *.ilk 60 | *.meta 61 | *.obj 62 | *.pch 63 | *.pdb 64 | *.pgc 65 | *.pgd 66 | *.rsp 67 | *.sbr 68 | *.tlb 69 | *.tli 70 | *.tlh 71 | *.tmp 72 | *.tmp_proj 73 | *.log 74 | *.vspscc 75 | *.vssscc 76 | .builds 77 | *.pidb 78 | *.log 79 | *.scc 80 | 81 | # Visual C++ cache files 82 | ipch/ 83 | *.aps 84 | *.ncb 85 | *.opensdf 86 | *.sdf 87 | *.cachefile 88 | 89 | # Visual Studio profiler 90 | *.psess 91 | *.vsp 92 | *.vspx 93 | 94 | # Guidance Automation Toolkit 95 | *.gpState 96 | 97 | # ReSharper is a .NET coding add-in 98 | _ReSharper*/ 99 | *.[Rr]e[Ss]harper 100 | 101 | # TeamCity is a build add-in 102 | _TeamCity* 103 | 104 | # DotCover is a Code Coverage Tool 105 | *.dotCover 106 | 107 | # NCrunch 108 | *.ncrunch* 109 | .*crunch*.local.xml 110 | 111 | # Installshield output folder 112 | [Ee]xpress/ 113 | 114 | # DocProject is a documentation generator add-in 115 | DocProject/buildhelp/ 116 | DocProject/Help/*.HxT 117 | DocProject/Help/*.HxC 118 | DocProject/Help/*.hhc 119 | DocProject/Help/*.hhk 120 | DocProject/Help/*.hhp 121 | DocProject/Help/Html2 122 | DocProject/Help/html 123 | 124 | # Click-Once directory 125 | publish/ 126 | 127 | # Publish Web Output 128 | *.Publish.xml 129 | *.pubxml 130 | 131 | # NuGet Packages Directory 132 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line 133 | #packages/ 134 | 135 | # Windows Azure Build Output 136 | csx 137 | *.build.csdef 138 | 139 | # Windows Store app package directory 140 | AppPackages/ 141 | 142 | # Others 143 | sql/ 144 | *.Cache 145 | ClientBin/ 146 | [Ss]tyle[Cc]op.* 147 | ~$* 148 | *~ 149 | *.dbmdl 150 | *.[Pp]ublish.xml 151 | *.pfx 152 | *.publishsettings 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | App_Data/*.mdf 166 | App_Data/*.ldf 167 | 168 | ############# 169 | ## Windows detritus 170 | ############# 171 | 172 | # Windows image file caches 173 | Thumbs.db 174 | ehthumbs.db 175 | 176 | # Folder config file 177 | Desktop.ini 178 | 179 | # Recycle Bin used on file shares 180 | $RECYCLE.BIN/ 181 | 182 | # Mac crap 183 | .DS_Store 184 | 185 | 186 | ############# 187 | ## Python 188 | ############# 189 | 190 | *.py[co] 191 | 192 | # Packages 193 | *.egg 194 | *.egg-info 195 | dist/ 196 | build/ 197 | eggs/ 198 | parts/ 199 | var/ 200 | sdist/ 201 | develop-eggs/ 202 | .installed.cfg 203 | 204 | # Installer logs 205 | pip-log.txt 206 | 207 | # Unit test / coverage reports 208 | .coverage 209 | .tox 210 | 211 | #Translations 212 | *.mo 213 | 214 | #Mr Developer 215 | .mr.developer.cfg 216 | -------------------------------------------------------------------------------- /bc_api.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bc_daemon.php: -------------------------------------------------------------------------------- 1 | 179 | -------------------------------------------------------------------------------- /bc_layout.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallMeJake/BlockCrawler/834933565be0496526ac6094e792e5fca517fef6/bc_layout.php -------------------------------------------------------------------------------- /block_crawler.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin:0px; 3 | padding:0px; 4 | 5 | text-align:center; 6 | font-family:sans-serif; 7 | 8 | } 9 | 10 | body { 11 | background-color:#32326f; 12 | 13 | width:780px; 14 | 15 | margin:0px auto; 16 | 17 | } 18 | 19 | #site_head { 20 | width:768px; 21 | 22 | margin:10px auto; 23 | 24 | background-color:#ffffff; 25 | } 26 | 27 | #donor_box { 28 | width:768px; 29 | height:10px; 30 | 31 | margin:2px auto; 32 | 33 | font-size:.8em; 34 | color:#ffffff; 35 | } 36 | 37 | #page_wrap { 38 | width:760px; 39 | 40 | background-color:#ffffff; 41 | 42 | margin:5px auto; 43 | 44 | overflow:auto; 45 | } 46 | 47 | #node_info { 48 | width:200px; 49 | margin:10px; 50 | 51 | border-style:solid; 52 | float:left; 53 | 54 | overflow:auto; 55 | } 56 | 57 | .node_detail { 58 | width:190px; 59 | 60 | margin:10px auto; 61 | } 62 | 63 | .node_desc { 64 | font-weight:bold; 65 | } 66 | 67 | #site_menu { 68 | width:500px; 69 | margin:10px; 70 | 71 | float:right; 72 | } 73 | 74 | .menu_item { 75 | width:490px; 76 | 77 | margin:20px auto; 78 | 79 | text-align:left; 80 | } 81 | 82 | .menu_item form { 83 | width:490px; 84 | 85 | text-align:left; 86 | } 87 | 88 | .menu_desc { 89 | font-weight:bold; 90 | } 91 | 92 | .block_banner { 93 | width:740px; 94 | 95 | background-color:#3a3a3a; 96 | 97 | margin:10px auto; 98 | overflow:auto; 99 | } 100 | 101 | .blockbanner_left { 102 | width:360px; 103 | 104 | background-color:#ffffff; 105 | 106 | margin: 5px; 107 | 108 | line-height:42px; 109 | vertical-align:middle; 110 | font-weight:bold; 111 | 112 | float:left; 113 | } 114 | 115 | .blockbanner_right { 116 | width:360px; 117 | 118 | background-color:#ffffff; 119 | 120 | margin: 5px; 121 | 122 | line-height:42px; 123 | vertical-align:middle; 124 | font-weight:bold; 125 | 126 | float:right; 127 | } 128 | 129 | .blocknav { 130 | width:740px; 131 | 132 | margin:20px auto; 133 | 134 | border-style:solid none; 135 | 136 | clear:both; 137 | overflow:auto; 138 | } 139 | 140 | .blocknav_prev { 141 | width:150px; 142 | 143 | margin:5px 10px; 144 | 145 | float:left; 146 | } 147 | 148 | .blocknav_news { 149 | width:388px; 150 | 151 | margin:5px 5px; 152 | 153 | 154 | float:left; 155 | } 156 | 157 | .blocknav_next { 158 | width:150px; 159 | 160 | margin:5px 10px; 161 | 162 | float:left; 163 | } 164 | 165 | 166 | .blockdetail { 167 | width:680px; 168 | margin:5px auto 10px auto; 169 | 170 | clear:both; 171 | overflow:auto; 172 | } 173 | 174 | .blockdetail_detail { 175 | width:210px; 176 | margin:5px; 177 | 178 | border-style:solid; 179 | border-width:1px; 180 | 181 | float:left; 182 | } 183 | 184 | .blockdetail_header { 185 | width:210px; 186 | 187 | background-color:#000000; 188 | color:#ffffff; 189 | 190 | font-weight:bold; 191 | font-family:serif; 192 | } 193 | 194 | .blockdetail_content { 195 | width:210px; 196 | 197 | line-height:32px; 198 | vertical-align:middle; 199 | 200 | } 201 | 202 | .txlist_header { 203 | width:740px; 204 | 205 | background-color:#000000; 206 | 207 | margin:10px auto; 208 | 209 | font-weight:bold; 210 | font-family:serif; 211 | line-height:32px; 212 | vertical-align:middle; 213 | color:#ffffff; 214 | 215 | } 216 | 217 | .txlist_wrap { 218 | width:740px; 219 | 220 | background-color:#3a3a3a; 221 | 222 | margin:10px auto; 223 | overflow:auto; 224 | } 225 | 226 | .txlist_showtx { 227 | width:720px; 228 | 229 | background-color:#ffffff; 230 | 231 | margin:10px auto; 232 | 233 | font-family:sans-serif; 234 | line-height:32px; 235 | } 236 | 237 | .section_head { 238 | width:740px; 239 | 240 | background-color:#000000; 241 | 242 | margin:10px auto; 243 | 244 | font-weight:bold; 245 | font-family:serif; 246 | line-height:32px; 247 | vertical-align:middle; 248 | color:#ffffff; 249 | } 250 | 251 | .section_subhead { 252 | width:700px; 253 | 254 | margin:10px auto; 255 | 256 | border-bottom-style:solid; 257 | 258 | font-weight:bold; 259 | font-family:serif; 260 | text-align:left; 261 | line-height:32px; 262 | vertical-align:middle; 263 | } 264 | 265 | .detail_display { 266 | width:700px; 267 | 268 | margin:5px auto; 269 | 270 | border-style:solid; 271 | border-width:2px; 272 | 273 | font-family:sans-serif; 274 | 275 | overflow:auto; 276 | clear:both; 277 | } 278 | 279 | .detail_title { 280 | width:130px; 281 | height:100%; 282 | 283 | background-color:#000000; 284 | color:#ffffff; 285 | 286 | font-family:serif; 287 | font-weight:bold; 288 | line-height:32px; 289 | vertical-align:middle; 290 | 291 | float:left; 292 | } 293 | 294 | .detail_data { 295 | width:565px; 296 | 297 | font-family:sans-serif; 298 | text-align:left; 299 | line-height:32px; 300 | vertical-align:middle; 301 | 302 | float:right; 303 | } 304 | 305 | -------------------------------------------------------------------------------- /block_crawler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallMeJake/BlockCrawler/834933565be0496526ac6094e792e5fca517fef6/block_crawler.php -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | Block Crawler Instructions 2 | 3 | Ensure that you have the following files: 4 | 5 | block_crawler.php - The home page for the script. 6 | block_crawler.css - The CSS Style Sheet for the script. 7 | bc_layout.php - This file contains most of the php.html used to render the site. 8 | bc_daemon.php - This file contains fucntions for interacting with the daemon. 9 | 10 | 11 | Find the bc_daemon.php and open it in your text editor or PHP IDE. At the 12 | top you will find the following code: 13 | 14 | /****************************************************************************** 15 | Wallet Configuration 16 | ******************************************************************************/ 17 | $GLOBALS["wallet_ip"] = "127.0.0.1"; 18 | $GLOBALS["wallet_port"] = "8332"; 19 | $GLOBALS["wallet_user"] = "username"; 20 | $GLOBALS["wallet_pass"] = "password"; 21 | 22 | It is important to replace these values with the correct information for your daemon. 23 | 24 | The daemon will worh with RPCSSL configured if your version of cURL supports it. 25 | 26 | Here are some sample entries for the value $GLOBALS["wallet_ip"]: 27 | 28 | "127.0.0.1" - This will communitcate with the daemon in clear text 29 | "http://127.0.0.1" - This is also an unencrypted connection 30 | "https://127.0.0.1" - This will connect to the wallet using SSL encryption. 31 | 32 | Once you have made these changes upload the files to your server. You should be ready to go. 33 | 34 | /***************************************************************************** 35 | Updated 07/08/2013 36 | *****************************************************************************/ 37 | -Added file bc_api.php 38 | 39 | This file contains a pass through request API that allows a user or 40 | remote script to query the Block Crawler directly for information about the 41 | status of the network and the daemon. 42 | --------------------------------------------------------------------------------