├── COPYING ├── LICENSE ├── README.md ├── cache └── index.html ├── help.html ├── includes ├── count.php ├── example-config.php ├── index.html └── live.php ├── index.php ├── outages.php ├── pull └── index.php ├── scripts ├── .gitkeep ├── bash │ ├── .gitkeep │ ├── README.txt │ ├── config.sh │ ├── uptime.sh │ └── uptime_used.sh ├── centos_install.sh ├── perl │ ├── .gitkeep │ ├── README.txt │ ├── uptime.conf │ └── uptime.pl ├── uptime_installer.sh └── uptime_used_installer.sh ├── templates ├── dark │ ├── css │ │ └── custom.css │ ├── img │ │ └── bg.png │ └── index.php ├── default │ ├── css │ │ └── custom.css │ ├── img │ │ └── bg.png │ └── index.php ├── default2016 │ ├── bs │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap-theme.min.css.map │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ └── npm.js │ ├── css │ │ └── custom.css │ ├── img │ │ └── bg.png │ └── index.php └── index.html ├── uptime.php └── uptime_used.php /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This program is free software: you can redistribute it and/or modify 2 | it under the terms of the GNU General Public License as published by 3 | the Free Software Foundation, either version 3 of the License, or 4 | (at your option) any later version. 5 | 6 | This program is distributed in the hope that it will be useful, 7 | but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | GNU General Public License for more details. 10 | 11 | You should have received a copy of the GNU General Public License 12 | along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ServerStatus Rebuild 2 | ### By Munzy 3 | 4 | 5 | 6 | ![Screenshot](https://www.cameronmunroe.com/u/2015-10-29_11-30-11.png) 7 | 8 | # Requirements 9 | 10 | Server: 11 | 12 | php5 13 | 14 | php5-json 15 | 16 | apache / nginx / etc. 17 | 18 | php-apc (recommended) 19 | 20 | 21 | 22 | Client: 23 | 24 | php5 (with -S server support) 25 | 26 | php5-json 27 | 28 | -or- 29 | 30 | php5 31 | 32 | php5-json 33 | 34 | apache / nginx / etc. 35 | 36 | 37 | -or- 38 | 39 | bash 40 | 41 | apache / nginx / etc. 42 | 43 | /scripts/bash/ 44 | 45 | https://www.qwdsa.com/threads/serverstatus-bash-uptime-php-alternative.55/ 46 | 47 | -or- 48 | 49 | perl 50 | 51 | apache / nginx / etc. 52 | 53 | /scripts/perl/ 54 | 55 | https://www.qwdsa.com/threads/serverstatus-perl-uptime-php-alternative.56/ 56 | 57 | 58 | 59 | # Installation & Guides 60 | 61 | https://www.qwdsa.com/threads/serverstatus-rebuild.43 62 | 63 | # Main Repos 64 | 65 | https://git.enjen.net/Munzy/ServerStatus 66 | 67 | https://github.com/Munzy/ServerStatus 68 | 69 | # Utils 70 | 71 | https://git.enjen.net/Munzy/ServerStatus-Utils 72 | 73 | 74 | # Supported Clients (tested) 75 | 76 | iOS Safari / Puffin / Chrome 77 | 78 | Andrioid Chrome 79 | 80 | Chrome 81 | 82 | Safari 83 | 84 | Firefox 85 | 86 | Internet Explorer 11 87 | 88 | # Donations 89 | 90 | If you like my projects, and work then please donate! 91 | 92 | https://www.cameronmunroe.com/coffee/ 93 | 94 | 95 | # Based On 96 | 97 | https://github.com/mojeda/ServerStatus 98 | 99 | -and- 100 | 101 | http://www.lowendtalk.com/discussion/comment/169690#Comment_169690 102 | 103 | -------------------------------------------------------------------------------- /cache/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /help.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/count.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/example-config.php: -------------------------------------------------------------------------------- 1 | '', 'name' => '', 'location' => '', 'host' => '', 'type' => ''); 6 | //============================================================================================ 7 | // The order you put your arrays in will be how they show up on the server! 8 | $servers[] = array( 9 | 'break' => 1, 10 | 'name' => ' Test Servers ' 11 | ); 12 | 13 | $servers[] = array( 14 | 'url' => 'https://uptime.munroenet.com/uptime.php', 15 | 'name' => 'Example Host', 16 | 'location' => 'Dallas Texas', 17 | 'host' => 'Example Host', 18 | 'type' => 'Test File', 19 | 'maxload' => 2.0 20 | ); 21 | 22 | 23 | 24 | 25 | 26 | 27 | //============================================================================================ 28 | // Chose A template. 29 | // Options ( dark | default | default2016 ) 30 | $template = "./templates/default/"; 31 | 32 | // Tells the web client how often to recheck in ms. 33 | $refresh = 10005; 34 | 35 | // This is how long before the cache expires in seconds. 36 | $cache = 10; 37 | 38 | // This defines how many seconds before we define a server down. 39 | $failafter = 70; 40 | 41 | 42 | 43 | // If you query uptime.php than use free, if you query uptime_used than use used. 44 | $rtype = 'free'; 45 | 46 | 47 | // Anything other then 1 will make it not send emails to you! 48 | $mailme = 0; 49 | 50 | 51 | // Email Options via phpmail. 52 | // where should we send down and up alerts? 53 | $emailto = '@gmail.com'; 54 | // where will we send the emails from? 55 | $emailfrom = 'serverstatus@'; 56 | 57 | //============================================================================================ 58 | // Settings below this shouldn't be changed! 59 | 60 | $index = $template . "index.php"; 61 | 62 | // Turns off the stripe animation to improve performance. 63 | $no_stripe = 1; 64 | 65 | ?> -------------------------------------------------------------------------------- /includes/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/live.php: -------------------------------------------------------------------------------- 1 | $max){continue;} // prevents a case where count shows way more then we should actually check! 46 | elseif(!is_numeric($count)){continue;} // hey that isn't a number, get out! 47 | $run = 0; 48 | do { 49 | file_get_contents($url . '/pull/index.php?url=' . $run); 50 | $run++; 51 | if($run > $max){break;} 52 | } while ($count != $run); 53 | 54 | } while (1 == 1); 55 | 56 | // ======================================================================================================================================== 57 | // Done 58 | // ======================================================================================================================================== 59 | ?> -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 13 | function uptime() { 14 | $(function() {'; 15 | $id = 0; 16 | $sTable =' 17 | 18 | 19 | Status 20 | Name 21 | Host 22 | Type 23 | Location 24 | Uptime 25 | Load 26 | RAM 27 | HDD 28 | 29 | 30 | '; 31 | foreach($servers as $result) { 32 | if(isset($result['break'])) { 33 | $sTable .= '' . $result['name'] . ''; 34 | } 35 | else { 36 | $sJavascript .= '$.getJSON("pull/index.php?url='.$id.'",function(result){ 37 | $("#online'.$id.'").html(result.online); 38 | $("#uptime'.$id.'").html(result.uptime); 39 | $("#load'.$id.'").html(result.load); 40 | $("#memory'.$id.'").html(result.memory); 41 | $("#hdd'.$id.'").html(result.hdd); 42 | });'; 43 | $sTable .= ' 44 | 45 | 46 |
47 |
Down
48 |
49 | 50 | '.$result["name"].' 51 | '.$result["host"].' 52 | '.$result["type"].' 53 | '.$result["location"].' 54 | n/a 55 | n/a 56 | 57 |
58 |
n/a
59 |
60 | 61 | 62 |
63 |
n/a
64 |
65 | 66 | 67 | '; 68 | } 69 | $id++; 70 | } 71 | $sTable .= ''; 72 | $sJavascript .= '}); 73 | } 74 | uptime(); 75 | setInterval(uptime, '.$refresh.'); 76 | '; 77 | 78 | include($index); 79 | 80 | ?> -------------------------------------------------------------------------------- /outages.php: -------------------------------------------------------------------------------- 1 | 0, 'upagain' => 1, 'name' => 'Server Name', 'host' => 'Server Host', 'type' => 'Server Type', 'uptime' => '1 Day'); 18 | } 19 | $sTable =' 20 | 21 | 22 | 23 | Name 24 | Host 25 | Type 26 | Down 27 | Up 28 | Total 29 | 30 | 31 | '; 32 | 33 | if ($name == null && $host == null) { 34 | foreach($outages as $outage) { 35 | $sTable .=''. $outage['name'] . ''. $outage['host'] . '' . $outage['type'] . '' . date("H:i | d M Y", $outage['down']) . '' . date("H:i | d M Y", $outage['upagain']) . '' . number_format((($outage['upagain'] - $outage['down']) / 60), 0, '.', '') . ' Min'; 36 | } 37 | } 38 | elseif($name != null && $host == null) { 39 | foreach($outages as $outage) { 40 | if ($name == $outage['name']) { 41 | $sTable .=''. $outage['name'] . ''. $outage['host'] . '' . $outage['type'] . '' . date("H:i | d M Y", $outage['down']) . '' . date("H:i | d M Y", $outage['upagain']) . '' . number_format((($outage['upagain'] - $outage['down']) / 60), 0, '.', '') . ' Min'; 42 | } 43 | } 44 | } 45 | elseif($name == null && $host != null) { 46 | foreach($outages as $outage) { 47 | if ($host == $outage['host']) { 48 | $sTable .=''. $outage['name'] . ''. $outage['host'] . '' . $outage['type'] . '' . date("H:i | d M Y", $outage['down']) . '' . date("H:i | d M Y", $outage['upagain']) . '' . number_format((($outage['upagain'] - $outage['down']) / 60), 0, '.', '') . ' Min'; 49 | } 50 | } 51 | } 52 | elseif($name != null && $host != null) { 53 | foreach($outages as $outage) { 54 | if ($host == $outage['host'] && $host == $outage['host']) { 55 | $sTable .=''. $outage['name'] . ''. $outage['host'] . '' . $outage['type'] . '' . date("H:i | d M Y", $outage['down']) . '' . date("H:i | d M Y", $outage['upagain']) . '' . number_format((($outage['upagain'] - $outage['down']) / 60), 0, '.', '') . ' Min'; 56 | } 57 | } 58 | } 59 | 60 | $sJavascript = ''; 61 | $sTable .= ''; 62 | include($index); 63 | 64 | 65 | 66 | 67 | ?> 68 | -------------------------------------------------------------------------------- /pull/index.php: -------------------------------------------------------------------------------- 1 | ' . "\r\n"); 76 | file_put_contents($path, json_encode(array('load' => $load, 'time' => $time, 'name' => $server['name']))); 77 | } 78 | elseif($server['maxload'] > $load && file_exists($path)) { 79 | $data = json_decode(file_get_contents($path),true); 80 | unlink($path); 81 | if($data['name'] == $server['name']) { 82 | $message = "Node: " . $server['name'] . " on host " . $server['host'] . " has returned to a normal load at " . date("H:i | d M Y", $time) . ". It was in a critical load for " . number_format((($time - $data['time']) / 60), 0, '.', '') . " Minutes." ; 83 | //$message = wordwrap($message, 70, "\r\n"); 84 | mail($emailto, "ServerStatus: " . $server['name'] . " load has returned to normal!", $message, 'From: ServerStatus <' . $emailfrom . '>' . "\r\n"); 85 | } 86 | } 87 | } 88 | } 89 | 90 | // This file checks if the server was down! 91 | function checkdown($id, $mailme, $emailto, $emailfrom, $time, $failafter, $server) { 92 | $path = '../cache/' . $id . '.down'; 93 | if (file_exists($path)) { 94 | $data = json_decode(file_get_contents($path), true); 95 | unlink($path); 96 | $totalfail = $time - $data['time']; 97 | if($totalfail > $failafter && $data['name'] == $server['name']) { 98 | $failures = array(); 99 | $failures[] = array('down' => $data['time'], 'upagain' => $time, 'name' => $server['name'], 'host' => $server['host'], 'type' => $server['type'], 'uptime' => $data['uptime']); 100 | $oldfails = json_decode(file_get_contents("../cache/outages.db"), true); 101 | if($mailme == 1) { 102 | $message = "Node: " . $server['name'] . " on host " . $server['host'] . " is up as of: " . date("H:i | d M Y", $time) . ". It was down for: " . number_format((($time - $data['time']) / 60), 0, '.', '') . " Minutes."; 103 | //$message = wordwrap($message, 70, "\r\n"); 104 | mail($emailto, "ServerStatus: " . $server['name'] . " is up!", $message, 'From: ServerStatus <' . $emailfrom . '>' . "\r\n"); 105 | } 106 | foreach($oldfails as $fail) { 107 | $failures[] = $fail; 108 | } 109 | file_put_contents("../cache/outages.db", json_encode($failures)); 110 | } 111 | } 112 | 113 | } 114 | 115 | // This function creates .down files when a server goes offline and manages 116 | // email alerts 117 | function downfile($id, $server, $failafter, $mailme, $emailto, $emailfrom, $time) { 118 | $path = '../cache/' . $id . '.down'; 119 | if (!file_exists($path)) { 120 | file_put_contents($path, json_encode(array('time'=> $time, 'name' => $server['name']))); 121 | } 122 | else { 123 | $down = json_decode(file_get_contents($path), true); 124 | if(($down['time'] + $failafter) <= $time && !isset($down['mailed']) && $mailme == 1 && $down['time'] != null) { 125 | $message = "Node: " . $server['name'] . " on host " . $server['host'] . " is down as of: " . date("H:i | d M Y", $down['time']) . ". It has currently been down for " . $failafter . " seconds."; 126 | //$message = wordwrap($message, 70, "\r\n"); 127 | mail($emailto, "ServerStatus: " . $server['name'] . " is down!", $message, 'From: ServerStatus <' . $emailfrom . '>' . "\r\n"); 128 | $down['mailed'] = 'yes'; 129 | file_put_contents($path, json_encode($down)); 130 | } 131 | } 132 | } 133 | 134 | // This function is for posting the down array info 135 | function downinfo() { 136 | $array = array(); 137 | $array['uptime'] = ' 138 |
139 |
Down
140 |
141 | '; 142 | $array['load'] = ' 143 |
144 |
Down
145 |
146 | '; 147 | $array['online'] = ' 148 |
149 |
Down
150 |
151 | '; 152 | echo json_encode($array); 153 | } 154 | 155 | // This gets data from our cache 156 | function get_cache($id, $cache, $time){ 157 | if(extension_loaded('apc') && ini_get('apc.enabled')){ 158 | $hashpath = md5($_SERVER['SERVER_NAME'] . $_SERVER['DOCUMENT_ROOT'] . $id); 159 | if(apc_exists($hashpath)){ 160 | $data = json_decode(apc_fetch($hashpath), true); 161 | if(($data['time'] + $cache) < $time){ 162 | return; 163 | } 164 | else { 165 | return $data; 166 | } 167 | } 168 | else { 169 | return; 170 | } 171 | } 172 | else { 173 | $path = '../cache/' . $id . '.raw'; 174 | if(!file_exists($path)) { 175 | return; 176 | } 177 | else { 178 | $data = json_decode(file_get_contents($path), true); 179 | } 180 | if(($data['time'] + $cache) < $time){ 181 | unlink($path); 182 | return; 183 | } 184 | else { 185 | return $data; 186 | } 187 | } 188 | } 189 | 190 | // This puts data into a cache 191 | function cache($id, $data) { 192 | if(extension_loaded('apc') && ini_get('apc.enabled')){ 193 | $hashpath = md5($_SERVER['SERVER_NAME'] . $_SERVER['DOCUMENT_ROOT'] . $id); 194 | if(isset($data['uptime'])) { 195 | apc_store($hashpath, json_encode($data), 360); 196 | } 197 | } 198 | else { 199 | $path = '../cache/' . $id . '.raw'; 200 | if(isset($data['uptime'])) { 201 | file_put_contents($path, json_encode($data)); 202 | } 203 | elseif(file_exists($path)) { 204 | unlink($path); 205 | } 206 | } 207 | } 208 | 209 | // This pulls data from the backend servers! 210 | function get_data($url) { 211 | $opts = array( 212 | 'http'=>array( 213 | 'method'=>"GET", 214 | 'timeout' => 10, 215 | 'header'=>"Accept-language: en\r\n" . 216 | "Cookie: foo=bar\r\n" . 217 | "User-Agent: ServerStatus @ ". $_SERVER['SERVER_NAME'] 218 | ) 219 | ); 220 | $context = stream_context_create($opts); 221 | $data = json_decode(file_get_contents($url, false, $context),true); 222 | if(isset($data['load'])){ 223 | $data["load"] = number_format($data["load"], 2); 224 | } 225 | return $data; 226 | } 227 | 228 | function no_stripe($data) { 229 | $data['memory'] = str_replace("progress-striped", '',$data['memory']); 230 | $data['hdd'] = str_replace("progress-striped", '',$data['hdd']); 231 | 232 | return $data; 233 | } 234 | 235 | -------------------------------------------------------------------------------- /scripts/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/scripts/.gitkeep -------------------------------------------------------------------------------- /scripts/bash/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/scripts/bash/.gitkeep -------------------------------------------------------------------------------- /scripts/bash/README.txt: -------------------------------------------------------------------------------- 1 | More info can be found here: 2 | 3 | https://www.qwdsa.com/threads/serverstatus-bash-uptime-php-alternative.55/ 4 | 5 | 6 | This is a replacement for the client side uptime.php file. This still requires a web server. -------------------------------------------------------------------------------- /scripts/bash/config.sh: -------------------------------------------------------------------------------- 1 | ### 2 | ### Config file for uptime.pl/uptime.sh 3 | ### 4 | ### pidfile: Store Process ID into specified file 5 | ### outfile: Write JSON into specified file otherwise print to STDOUT 6 | ### sleep: Amount of seconds to wait before re-running the data collection 7 | ### daemon: Run as a daemon background process 8 | ### 9 | pidfile=/run/uptime.pid 10 | outfile=/var/www/html/uptime 11 | sleep=60 12 | daemon=true #Closes STDIN/STDOUT/STDERR and go into the background -------------------------------------------------------------------------------- /scripts/bash/uptime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### 3 | ### uptime.sh: Generate the JSON info required for ServerStatus 4 | ### https://github.com/Munzy/ServerStatus 5 | ### 6 | ### Copyright 2014 by Davy Chan 7 | ### 8 | ### Last updated: 2014-09-22 9 | ### 10 | 11 | ### 12 | ### Configfile is in the format: 13 | ### pidfile="/pathname/filename" #comments begin with a '#' 14 | ### # This is a comment 15 | ### outfile=/path/to/file/can/be/enclosed/in/double/quotes 16 | ### sleep=integer_value_of_seconds 17 | ### daemon=true # close STDIN/STDOUT/STDERR and fork to background 18 | ### 19 | ### External dependencies: 20 | ### /bin/cat, /bin/date, /bin/df, /bin/rm, /bin/sleep 21 | 22 | G_SLEEP_SECS=0 23 | G_OUTFILE="" 24 | G_PIDFILE="" 25 | G_HDDTOTAL=0 26 | G_HDDFREE=0 27 | CAT_CMD='/bin/cat' 28 | DATE_CMD='/bin/date' 29 | DF_CMD='/bin/df' 30 | RM_CMD='/bin/rm' 31 | SLEEP_CMD='/bin/sleep' 32 | 33 | declare -A ARRAY 34 | 35 | usage() { 36 | ${CAT_CMD} <&2 37 | usage: $0 [...] 38 | --sleep secs: re-run $0 after secs of time 39 | --outfile file: write JSON to file 40 | --pidfile file: write PID to file 41 | --config file: read configs from file 42 | --daemon true|false: close STDIN, STDOUT, & STDERR and chdir("/") 43 | Note: --daemon must be the last option specified 44 | 45 | EOM 46 | } 47 | 48 | cleanup() { 49 | if [ x"${G_PIDFILE}"x != x""x ]; then 50 | if [ -f ${G_PIDFILE} ]; then 51 | ${RM_CMD} -f ${G_PIDFILE} 52 | fi 53 | fi 54 | exit 0 55 | } 56 | 57 | trap 'cleanup' 1 15 3 58 | 59 | disk_info() { 60 | ### Assuming /bin/df output is in the following format: 61 | ### Filesystem 1K-Blocks Used Available Use% Mounted on 62 | ### 63 | local FS=$1 64 | G_HDDTOTAL=0 65 | G_HDDFREE=0 66 | local FSYS DSTOTAL DSUSED DSAVAIL DSPER FMOUNT 67 | while read -r FSYS DSTOTAL DSUSED DSAVAIL DSPER FMOUNT; do if [ x"${FMOUNT}"x = x"${FS}"x ]; then G_HDDTOTAL=${DSTOTAL}; G_HDDFREE=${DSAVAIL}; break; fi; done <<<"$(${DF_CMD} ${FS})" 68 | } 69 | 70 | sec2human() { 71 | local TIME=$1 72 | local RET="" 73 | local SECONDS=0 MINS=0; local HOURS=0; local DAYS=0 74 | 75 | SECONDS=$(( $TIME % 60 )) 76 | MINS=$(( $TIME / 60)); MINS=$(( $MINS % 60 )) 77 | HOURS=$(( $TIME / 60 / 60 )) 78 | DAYS=$(( $HOURS / 24 )) 79 | HOURS=$(( $HOURS % 24 )) 80 | if [ $DAYS -gt 0 ]; then 81 | RET="${DAYS} day"; [ $DAYS -gt 1 ] && RET="${RET}s" 82 | else 83 | RET="${HOURS}:${MINS}:${SECONDS}" 84 | fi 85 | echo "${RET}" 86 | } 87 | 88 | GetUptime() { 89 | local U 90 | read -d'.' U < /proc/uptime 91 | ARRAY['uptime']=$(sec2human $U) 92 | } 93 | 94 | GetMemInfo() { 95 | ### Assuming /proc/meminfo output is in the following format: 96 | ### Label: Kilobytes kB 97 | ### 98 | local MEMTOTAL=1 MEMFREE=0 MEMCACHE=0 MEMMATH=0 99 | local MEMLEVEL="" JUNK 100 | local MEMORY 101 | local KEY VALUE 102 | 103 | while read KEY VALUE JUNK; do 104 | if [ x"${KEY}"x = x"MemTotal:"x ]; then 105 | MEMTOTAL="${VALUE}" 106 | elif [ x"${KEY}"x = x"MemFree:"x ]; then 107 | MEMFREE="${VALUE}" 108 | elif [ x"${KEY}"x = x"Cached:"x ]; then 109 | MEMCACHE="${VALUE}" 110 | fi 111 | done < /proc/meminfo 112 | MEMMATH=$(( $MEMCACHE + $MEMFREE )) 113 | MEMORY=$(( $MEMMATH * 100 / $MEMTOTAL )) 114 | if [ $MEMORY -gt 50 ]; then 115 | MEMLEVEL="success" 116 | elif [ $MEMORY -lt 51 ]; then 117 | MEMLEVEL="warning" 118 | elif [ $MEMORY -lt 36 ]; then 119 | MEMLEVEL="danger" 120 | fi 121 | MEMORY="${MEMORY}%" 122 | ARRAY['memory']='
123 |
'${MEMORY}'
124 |
' 125 | } 126 | 127 | AddHDDTotal() { 128 | local HDDTOTAL=$1 129 | local RET="" 130 | local UNITS='MB' 131 | local DIVISOR=1024 132 | 133 | [ ! -f '/proc/vz/veinfo' ] && DIVISOR=1000 134 | if [ -f '/root/00README.stats' ]; then 135 | RET=$(( $HDDTOTAL / $DIVISOR )) 136 | if [ $RET -gt 999 ]; then 137 | UNITS='GB' 138 | RET=$(( $RET / $DIVISOR )) 139 | if [ $RET -gt 999 ]; then 140 | UNITS='TB' 141 | RET=$(( $RET / $DIVISOR )) 142 | fi 143 | fi 144 | RET="(${RET}${UNITS})" 145 | fi 146 | echo ${RET} 147 | } 148 | 149 | GetStorage() { 150 | local HDDLEVEL="" 151 | local HDD 152 | local HDD_PRESENT="" 153 | 154 | disk_info '/' 155 | HDD=$(($G_HDDFREE * 100 / $G_HDDTOTAL)) 156 | if [ $HDD -gt 50 ]; then 157 | HDDLEVEL="success" 158 | elif [ $HDD -lt 51 ]; then 159 | HDDLEVEL="warning" 160 | elif [ $HDD -lt 36 ]; then 161 | HDDLEVEL="danger" 162 | fi 163 | HDD="${HDD}%" 164 | # HDD_PRESENT=$(AddHDDTotal $G_HDDTOTAL) 165 | ARRAY['hdd']='
166 |
'${HDD}${HDD_PRESENT}'
167 |
' 168 | } 169 | 170 | GetLoadAvg() { 171 | ### Assuming /proc/loadavg output is in the following format: 172 | ### now.load five.load fifteen.load cpus/sch recent_pid 173 | ### 174 | local LOAD="0.0" JUNK 175 | if [ -r /proc/loadavg ]; then 176 | read INT JUNK < /proc/loadavg 177 | LOAD="${INT}" 178 | fi 179 | ARRAY['load']="${LOAD}" 180 | } 181 | 182 | GetOnlineStatus() { 183 | ARRAY['online']='
184 |
Up
185 |
' 186 | } 187 | 188 | GetTimestamp() { 189 | ARRAY['timestamp']=$($DATE_CMD +'%s') 190 | } 191 | 192 | mk_json() { 193 | local KEY VALUE JSON_STR="{" 194 | for KEY in ${!ARRAY[@]}; do 195 | VALUE=${ARRAY["${KEY}"]} 196 | VALUE=${VALUE//'"'/\\'"'} 197 | VALUE=${VALUE//$'\n'/\\n} 198 | VALUE=${VALUE//\//\\\/} 199 | JSON_STR=${JSON_STR}'"'${KEY}'"':'"'${VALUE}'",' 200 | done 201 | JSON_STR=${JSON_STR%,} 202 | JSON_STR="${JSON_STR}"'}' 203 | echo "${JSON_STR}" 204 | } 205 | 206 | Daemonize() { 207 | if [ x"${G_OUTFILE}"x = x""x -o x"${G_PIDFILE}"x = x""x ]; then 208 | echo "ERR: --daemon must be preceeded by --pidfile -and --outfile." >&2 209 | exit 1 210 | fi 211 | if [ x"${G_OUTFILE:0:1}"x != x"/"x ]; then 212 | echo "ERR: outfile must be a full pathname." >&2 213 | exit 1 214 | fi 215 | cd / 216 | exec 0>&- 217 | exec 1>&- 218 | exec 2>&- 219 | } 220 | 221 | ProcessCmdOptions() { 222 | local ARG=$1 ARG1=$2 223 | local CONFIG_FILE 224 | if [ x"${ARG}"x = x"--sleep"x ]; then 225 | G_SLEEP_SECS=$ARG1 226 | elif [ x"${ARG}"x = x"--outfile"x ]; then 227 | G_OUTFILE=$ARG1 228 | elif [ x"${ARG}"x = x"--pidfile"x ]; then 229 | G_PIDFILE=$ARG1 230 | [ $G_SLEEP_SECS -eq 0 ] && G_SLEEP_SECS=120 231 | elif [ x"${ARG}"x = x"--config"x ]; then 232 | CONFIG_FILE=$ARG1 233 | local KEY VALUE 234 | if [ ! -r $CONFIG_FILE ]; then 235 | echo "ERR: configfile ${CONFIG_FILE} does not exist!" >&2 236 | exit 1 237 | fi 238 | while read LINE; do 239 | [ x"${LINE:0:1}"x = x"#"x ] && continue 240 | IFS='=' read -r KEY VALUE <<<"${LINE}" 241 | KEY=${KEY/# /}; KEY=${KEY/% /}; 242 | KEY=${KEY/\"/}; KEY=${KEY/%\"/}; 243 | VALUE=${VALUE/%#*/}; VALUE=${VALUE/# /}; VALUE=${VALUE/% */} 244 | VALUE=${VALUE/\"/}; VALUE=${VALUE/%\"/} 245 | ProcessCmdOptions "--${KEY}" "${VALUE}" 246 | done <$CONFIG_FILE 247 | elif [ x"${ARG}"x = x"--daemon"x ]; then 248 | [ x"${ARG1}"x = x"true"x ] && G_DAEMONIZE=true 249 | else 250 | usage; exit 1 251 | fi 252 | } 253 | 254 | ### 255 | ### MAIN 256 | ### 257 | while [ x"$1"x != x""x ]; do 258 | ARG=$1; shift; 259 | while [ x"${ARG:0:2}"x = x"--"x ]; do 260 | ProcessCmdOptions "${ARG}" "$1" 261 | shift 262 | break 263 | done 264 | done 265 | 266 | [ x"${SLEEP}"x != x""x ] && G_SLEEP_SECS=${SLEEP} 267 | [ x"${OUTFILE}"x != x""x ] && G_OUTFILE=${OUTFILE} 268 | [ x"${PIDFILE}"x != x""x ] && G_PIDFILE=${PIDFILE} 269 | [ x"${DAEMON}"x = x"true"x ] && G_DAEMONIZE='true' 270 | [ x"${DAEMON}"x = x"false"x ] && G_DAEMONIZE='false' 271 | 272 | do_main() { 273 | while :; do 274 | GetUptime 275 | GetMemInfo 276 | GetStorage 277 | GetLoadAvg 278 | GetOnlineStatus 279 | GetTimestamp 280 | A=$(mk_json) 281 | if [ x"${G_OUTFILE}"x != x""x ]; then 282 | echo $A > ${G_OUTFILE} 283 | else 284 | echo $A 285 | fi 286 | if [ ${G_SLEEP_SECS} -eq 0 ]; then 287 | break 288 | fi 289 | ${SLEEP_CMD} $G_SLEEP_SECS 290 | done 291 | cleanup 292 | } 293 | 294 | umask 022 295 | if [ x"${G_PIDFILE}"x != x""x ]; then 296 | echo "$$" > $G_PIDFILE 297 | fi 298 | 299 | if [ x"${G_DAEMONIZE}"x = x"true"x ]; then 300 | Daemonize 301 | do_main & 302 | if [ x"${G_PIDFILE}"x != x""x ]; then 303 | echo "$!" > $G_PIDFILE 304 | fi 305 | else 306 | do_main 307 | fi -------------------------------------------------------------------------------- /scripts/bash/uptime_used.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### 3 | ### uptime.sh: Generate the JSON info required for ServerStatus 4 | ### https://github.com/Munzy/ServerStatus 5 | ### 6 | ### Copyright 2014 by Davy Chan 7 | ### 8 | ### Last updated: 2014-09-22 9 | ### 10 | ### Updated by Mark Krieger for uptime_used 2017-03-20 11 | 12 | ### 13 | ### Configfile is in the format: 14 | ### pidfile="/pathname/filename" #comments begin with a '#' 15 | ### # This is a comment 16 | ### outfile=/path/to/file/can/be/enclosed/in/double/quotes 17 | ### sleep=integer_value_of_seconds 18 | ### daemon=true # close STDIN/STDOUT/STDERR and fork to background 19 | ### 20 | ### External dependencies: 21 | ### /bin/cat, /bin/date, /bin/df, /bin/rm, /bin/sleep 22 | 23 | G_SLEEP_SECS=0 24 | G_OUTFILE="" 25 | G_PIDFILE="" 26 | G_HDDTOTAL=0 27 | G_HDDFREE=0 28 | G_HDDUSED=0 29 | CAT_CMD='/bin/cat' 30 | DATE_CMD='/bin/date' 31 | DF_CMD='/bin/df' 32 | RM_CMD='/bin/rm' 33 | SLEEP_CMD='/bin/sleep' 34 | 35 | declare -A ARRAY 36 | 37 | usage() { 38 | ${CAT_CMD} <&2 39 | usage: $0 [...] 40 | --sleep secs: re-run $0 after secs of time 41 | --outfile file: write JSON to file 42 | --pidfile file: write PID to file 43 | --config file: read configs from file 44 | --daemon true|false: close STDIN, STDOUT, & STDERR and chdir("/") 45 | Note: --daemon must be the last option specified 46 | 47 | EOM 48 | } 49 | 50 | cleanup() { 51 | if [ x"${G_PIDFILE}"x != x""x ]; then 52 | if [ -f ${G_PIDFILE} ]; then 53 | ${RM_CMD} -f ${G_PIDFILE} 54 | fi 55 | fi 56 | exit 0 57 | } 58 | 59 | trap 'cleanup' 1 15 3 60 | 61 | disk_info() { 62 | ### Assuming /bin/df output is in the following format: 63 | ### Filesystem 1K-Blocks Used Available Use% Mounted on 64 | ### 65 | local FS=$1 66 | G_HDDTOTAL=0 67 | G_HDDFREE=0 68 | G_HDDUSED=0 69 | local FSYS DSTOTAL DSUSED DSAVAIL DSPER FMOUNT 70 | while read -r FSYS DSTOTAL DSUSED DSAVAIL DSPER FMOUNT; do if [ x"${FMOUNT}"x = x"${FS}"x ]; then G_HDDTOTAL=${DSTOTAL}; G_HDDFREE=${DSAVAIL}; G_HDDUSED=${DSUSED}; break; fi; done <<<"$(${DF_CMD} ${FS})" 71 | } 72 | 73 | sec2human() { 74 | local TIME=$1 75 | local RET="" 76 | local SECONDS=0 MINS=0; local HOURS=0; local DAYS=0 77 | 78 | SECONDS=$(( $TIME % 60 )) 79 | MINS=$(( $TIME / 60)); MINS=$(( $MINS % 60 )) 80 | HOURS=$(( $TIME / 60 / 60 )) 81 | DAYS=$(( $HOURS / 24 )) 82 | HOURS=$(( $HOURS % 24 )) 83 | if [ $DAYS -gt 0 ]; then 84 | RET="${DAYS} day"; [ $DAYS -gt 1 ] && RET="${RET}s" 85 | else 86 | RET="${HOURS}:${MINS}:${SECONDS}" 87 | fi 88 | echo "${RET}" 89 | } 90 | 91 | GetUptime() { 92 | local U 93 | read -d'.' U < /proc/uptime 94 | ARRAY['uptime']=$(sec2human $U) 95 | } 96 | 97 | GetMemInfo() { 98 | ### Assuming /proc/meminfo output is in the following format: 99 | ### Label: Kilobytes kB 100 | ### 101 | local MEMTOTAL=1 MEMFREE=0 MEMCACHE=0 MEMMATH=0 102 | local MEMLEVEL="" JUNK 103 | local MEMORY 104 | local KEY VALUE 105 | 106 | while read KEY VALUE JUNK; do 107 | if [ x"${KEY}"x = x"MemTotal:"x ]; then 108 | MEMTOTAL="${VALUE}" 109 | elif [ x"${KEY}"x = x"MemFree:"x ]; then 110 | MEMFREE="${VALUE}" 111 | elif [ x"${KEY}"x = x"Cached:"x ]; then 112 | MEMCACHE="${VALUE}" 113 | fi 114 | done < /proc/meminfo 115 | MEMMATH=$(( 100 - $MEMCACHE + $MEMFREE )) 116 | MEMORY=$(( $MEMMATH * 100 / $MEMTOTAL )) 117 | if [ $MEMORY -lt 75 ]; then 118 | MEMLEVEL="success" 119 | elif [ $MEMORY -lt 90 ]; then 120 | MEMLEVEL="warning" 121 | else 122 | MEMLEVEL="danger" 123 | fi 124 | MEMORY="${MEMORY}%" 125 | ARRAY['memory']='
126 |
'${MEMORY}'
127 |
' 128 | } 129 | 130 | AddHDDTotal() { 131 | local HDDTOTAL=$1 132 | local RET="" 133 | local UNITS='MB' 134 | local DIVISOR=1024 135 | 136 | [ ! -f '/proc/vz/veinfo' ] && DIVISOR=1000 137 | if [ -f '/root/00README.stats' ]; then 138 | RET=$(( $HDDTOTAL / $DIVISOR )) 139 | if [ $RET -gt 999 ]; then 140 | UNITS='GB' 141 | RET=$(( $RET / $DIVISOR )) 142 | if [ $RET -gt 999 ]; then 143 | UNITS='TB' 144 | RET=$(( $RET / $DIVISOR )) 145 | fi 146 | fi 147 | RET="(${RET}${UNITS})" 148 | fi 149 | echo ${RET} 150 | } 151 | 152 | GetStorage() { 153 | local HDDLEVEL="" 154 | local HDD 155 | local HDD_PRESENT="" 156 | 157 | disk_info '/' 158 | HDD=$(($G_HDDUSED * 100 / $G_HDDTOTAL)) 159 | if [ $HDD -lt 75 ]; then 160 | HDDLEVEL="success" 161 | elif [ $HDD -lt 90 ]; then 162 | HDDLEVEL="warning" 163 | else 164 | HDDLEVEL="danger" 165 | fi 166 | HDD="${HDD}%" 167 | # HDD_PRESENT=$(AddHDDTotal $G_HDDTOTAL) 168 | ARRAY['hdd']='
169 |
'${HDD}${HDD_PRESENT}'
170 |
' 171 | } 172 | 173 | GetLoadAvg() { 174 | ### Assuming /proc/loadavg output is in the following format: 175 | ### now.load five.load fifteen.load cpus/sch recent_pid 176 | ### 177 | local LOAD="0.0" JUNK 178 | if [ -r /proc/loadavg ]; then 179 | read INT JUNK < /proc/loadavg 180 | LOAD="${INT}" 181 | fi 182 | ARRAY['load']="${LOAD}" 183 | } 184 | 185 | GetOnlineStatus() { 186 | TIME=$(date +"%H:%M") 187 | ARRAY['online']='
188 |
Up - '${TIME}'
189 |
' 190 | } 191 | 192 | GetTimestamp() { 193 | ARRAY['timestamp']=$($DATE_CMD +'%s') 194 | } 195 | 196 | mk_json() { 197 | local KEY VALUE JSON_STR="{" 198 | for KEY in ${!ARRAY[@]}; do 199 | VALUE=${ARRAY["${KEY}"]} 200 | VALUE=${VALUE//'"'/\\'"'} 201 | VALUE=${VALUE//$'\n'/\\n} 202 | VALUE=${VALUE//\//\\\/} 203 | JSON_STR=${JSON_STR}'"'${KEY}'"':'"'${VALUE}'",' 204 | done 205 | JSON_STR=${JSON_STR%,} 206 | JSON_STR="${JSON_STR}"'}' 207 | echo "${JSON_STR}" 208 | } 209 | 210 | Daemonize() { 211 | if [ x"${G_OUTFILE}"x = x""x -o x"${G_PIDFILE}"x = x""x ]; then 212 | echo "ERR: --daemon must be preceeded by --pidfile -and --outfile." >&2 213 | exit 1 214 | fi 215 | if [ x"${G_OUTFILE:0:1}"x != x"/"x ]; then 216 | echo "ERR: outfile must be a full pathname." >&2 217 | exit 1 218 | fi 219 | cd / 220 | exec 0>&- 221 | exec 1>&- 222 | exec 2>&- 223 | } 224 | 225 | ProcessCmdOptions() { 226 | local ARG=$1 ARG1=$2 227 | local CONFIG_FILE 228 | if [ x"${ARG}"x = x"--sleep"x ]; then 229 | G_SLEEP_SECS=$ARG1 230 | elif [ x"${ARG}"x = x"--outfile"x ]; then 231 | G_OUTFILE=$ARG1 232 | elif [ x"${ARG}"x = x"--pidfile"x ]; then 233 | G_PIDFILE=$ARG1 234 | [ $G_SLEEP_SECS -eq 0 ] && G_SLEEP_SECS=120 235 | elif [ x"${ARG}"x = x"--config"x ]; then 236 | CONFIG_FILE=$ARG1 237 | local KEY VALUE 238 | if [ ! -r $CONFIG_FILE ]; then 239 | echo "ERR: configfile ${CONFIG_FILE} does not exist!" >&2 240 | exit 1 241 | fi 242 | while read LINE; do 243 | [ x"${LINE:0:1}"x = x"#"x ] && continue 244 | IFS='=' read -r KEY VALUE <<<"${LINE}" 245 | KEY=${KEY/# /}; KEY=${KEY/% /}; 246 | KEY=${KEY/\"/}; KEY=${KEY/%\"/}; 247 | VALUE=${VALUE/%#*/}; VALUE=${VALUE/# /}; VALUE=${VALUE/% */} 248 | VALUE=${VALUE/\"/}; VALUE=${VALUE/%\"/} 249 | ProcessCmdOptions "--${KEY}" "${VALUE}" 250 | done <$CONFIG_FILE 251 | elif [ x"${ARG}"x = x"--daemon"x ]; then 252 | [ x"${ARG1}"x = x"true"x ] && G_DAEMONIZE=true 253 | else 254 | usage; exit 1 255 | fi 256 | } 257 | 258 | ### 259 | ### MAIN 260 | ### 261 | while [ x"$1"x != x""x ]; do 262 | ARG=$1; shift; 263 | while [ x"${ARG:0:2}"x = x"--"x ]; do 264 | ProcessCmdOptions "${ARG}" "$1" 265 | shift 266 | break 267 | done 268 | done 269 | 270 | [ x"${SLEEP}"x != x""x ] && G_SLEEP_SECS=${SLEEP} 271 | [ x"${OUTFILE}"x != x""x ] && G_OUTFILE=${OUTFILE} 272 | [ x"${PIDFILE}"x != x""x ] && G_PIDFILE=${PIDFILE} 273 | [ x"${DAEMON}"x = x"true"x ] && G_DAEMONIZE='true' 274 | [ x"${DAEMON}"x = x"false"x ] && G_DAEMONIZE='false' 275 | 276 | do_main() { 277 | while :; do 278 | GetUptime 279 | GetMemInfo 280 | GetStorage 281 | GetLoadAvg 282 | GetOnlineStatus 283 | GetTimestamp 284 | A=$(mk_json) 285 | if [ x"${G_OUTFILE}"x != x""x ]; then 286 | echo $A > ${G_OUTFILE} 287 | else 288 | echo $A 289 | fi 290 | if [ ${G_SLEEP_SECS} -eq 0 ]; then 291 | break 292 | fi 293 | ${SLEEP_CMD} $G_SLEEP_SECS 294 | done 295 | cleanup 296 | } 297 | 298 | umask 022 299 | if [ x"${G_PIDFILE}"x != x""x ]; then 300 | echo "$$" > $G_PIDFILE 301 | fi 302 | 303 | if [ x"${G_DAEMONIZE}"x = x"true"x ]; then 304 | Daemonize 305 | do_main & 306 | if [ x"${G_PIDFILE}"x != x""x ]; then 307 | echo "$!" > $G_PIDFILE 308 | fi 309 | else 310 | do_main 311 | fi -------------------------------------------------------------------------------- /scripts/centos_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | yum update update -y 3 | yum install screen httpd php php-cli php-json php-common -y 4 | cd /var/www/html 5 | wget https://raw.githubusercontent.com/Munzy/ServerStatus/Munzy/uptime.php --no-check-certificate 6 | service httpd restart -------------------------------------------------------------------------------- /scripts/perl/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/scripts/perl/.gitkeep -------------------------------------------------------------------------------- /scripts/perl/README.txt: -------------------------------------------------------------------------------- 1 | More info can be found here: 2 | https://www.qwdsa.com/threads/serverstatus-perl-uptime-php-alternative.56/ 3 | 4 | -------------------------------------------------------------------------------- /scripts/perl/uptime.conf: -------------------------------------------------------------------------------- 1 | ### 2 | ### Config file for uptime.pl/uptime.sh 3 | ### 4 | ### pidfile: Store Process ID into specified file 5 | ### outfile: Write JSON into specified file otherwise print to STDOUT 6 | ### sleep: Amount of seconds to wait before re-running the data collection 7 | ### daemon: Run as a daemon background process 8 | ### 9 | pidfile=/run/uptime.pid 10 | outfile=/var/www/html/uptime 11 | sleep=60 12 | daemon=true #Closes STDIN/STDOUT/STDERR and go into the background -------------------------------------------------------------------------------- /scripts/perl/uptime.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | ### 3 | ### uptime.pl: Generate the JSON info required for ServerStatus 4 | ### https://github.com/Munzy/ServerStatus 5 | ### 6 | ### Copyright 2014 by Davy Chan 7 | ### 8 | ### Last updated: 2014-09-22 9 | ### 10 | 11 | ### 12 | ### Configfile is in the format: 13 | ### pidfile="/pathname/filename" #comments begin with a '#' 14 | ### # This is a comment 15 | ### outfile=/path/to/file/can/be/enclosed/in/double/quotes 16 | ### sleep=integer_value_of_seconds 17 | ### daemon=true # close STDIN/STDOUT/STDERR and fork to background 18 | ### 19 | ### External dependencies: 20 | ### /bin/df 21 | ### 22 | 23 | use strict; 24 | use warnings; 25 | 26 | use vars qw( @ARGV ); 27 | use vars qw( @ENV ); 28 | use vars qw( %SIG ); 29 | use vars qw($sleep_secs $outfile $pidfile); 30 | use vars qw($daemonize); 31 | use vars qw($DF_CMD); 32 | use vars qw(%array); 33 | %main::array = (); 34 | $main::sleep_secs = 0; 35 | $main::outfile = $main::pidfile = ""; 36 | $main::daemonize = "false"; 37 | $main::DF_CMD = '/bin/df'; 38 | 39 | sub usage 40 | { 41 | print STDERR <)) { 74 | next if ( ! /\/([^\s]+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+%)\s+$fs$/o ); 75 | ($hddtotal,$hddfree) = ($2,$4); last; 76 | } 77 | close(F); 78 | } 79 | return ($hddtotal,$hddfree); 80 | } 81 | 82 | sub sec2human { 83 | my($time) = @_; 84 | 85 | my($seconds) = $time%60; 86 | my($mins) = int($time/60)%60; 87 | my($hours) = int($time/60/60)%24; 88 | my($days) = int($time/60/60/24); 89 | my($ret) = ""; 90 | 91 | $ret = ($days > 0 ? $days . ' day' . ($days > 1 ? 's' : '') : $hours . ':' . $mins . ':' . $seconds); 92 | $ret; 93 | } 94 | 95 | sub GetUptime 96 | { ### Get Uptime 97 | my($uptime) = 0; 98 | if (open(F,"< /proc/uptime")) { 99 | $_ = ; chomp($_); 100 | close(F); 101 | if ( /(\d+)\.\d+\s+.*/o ) { 102 | $uptime = $1; 103 | } 104 | } 105 | $main::array{'uptime'} = &sec2human($uptime); 106 | } 107 | 108 | sub GetMemInfo 109 | { ### Get Memory stats 110 | ### Assuming /proc/meminfo output is in the following format: 111 | ### Label: Kilobytes kB 112 | ### 113 | my($memtotal, $memfree, $memcache, $memmath) = (1, 0, 0, 0); 114 | my($memlevel) = ""; 115 | my($memory); 116 | if (open(F,"< /proc/meminfo")) { 117 | while ($_ = ) { 118 | if ( /^MemTotal:\s+(\d+)\skB$/o ) { 119 | $memtotal = $1; 120 | } elsif ( /^MemFree:\s+(\d+)\skB$/o ) { 121 | $memfree = $1; 122 | } elsif ( /^Cached:\s+(\d+)\skB$/o ) { 123 | $memcache = $1; 124 | } 125 | } 126 | close(F); 127 | } 128 | $memmath = $memcache + $memfree; 129 | $memory = int($memmath / $memtotal * 100); 130 | if ( $memory >= 51 ) { 131 | $memlevel = "success"; 132 | } elsif ( $memory <= 50 ) { 133 | $memlevel = "warning"; 134 | } elsif ( $memory <= 35 ) { 135 | $memlevel = "danger"; 136 | } 137 | $memory = "${memory}%"; 138 | $main::array{'memory'} = '
139 |
' . $memory . '
140 |
'; 141 | } 142 | 143 | sub AddHDDTotal { 144 | my($hddtotal) = @_; 145 | my($ret) = ""; 146 | my($units) = 'MB'; 147 | my($divisor) = 1024; 148 | 149 | $divisor = 1000 if ( ! -f '/proc/vz/veinfo' ); 150 | if ( -f '/root/00README.stats' ) { 151 | $ret = int($hddtotal/$divisor); 152 | if ( $ret > 999 ) { 153 | $units = 'GB'; 154 | $ret = int($ret/$divisor); 155 | if ( $ret > 999 ) { 156 | $units = 'TB'; 157 | $ret = int($ret/$divisor) 158 | } 159 | } 160 | $ret = "(${ret}${units})"; 161 | } 162 | $ret; 163 | } 164 | 165 | sub GetStorage 166 | { ### Get storage stats 167 | my($hddtotal, $hddfree) = (0,0); 168 | my($hddlevel) = ""; 169 | my($hdd); 170 | my($hdd_present) = ""; 171 | ($hddtotal, $hddfree) = &disk_info("/"); 172 | $hddtotal = 1 if ( $hddtotal < 1 ); 173 | $hdd = int($hddfree / $hddtotal * 100); 174 | if ( $hdd >= 51 ) { 175 | $hddlevel = "success"; 176 | } elsif ( $hdd <= 50 ) { 177 | $hddlevel = "warning"; 178 | } elsif ( $hdd <= 35 ) { 179 | $hddlevel = "danger"; 180 | } 181 | $hdd="${hdd}%"; 182 | # $hdd_present = &AddHDDTotal($hddtotal); 183 | $main::array{'hdd'} = '
184 |
' . $hdd . $hdd_present . '
185 |
'; 186 | } 187 | 188 | sub GetLoadAvg 189 | { ### Get load average 190 | ### Assuming /proc/loadavg output is in the following format: 191 | ### now.load five.load fifteen.load cpus/sch recent_pid 192 | ### 193 | my($load) = "0.0"; 194 | if (open(F,"; 196 | close(F); 197 | if ( /(\d+)\.(\d+)\s+.*/o ) { 198 | $load = "$1.$2"; 199 | } 200 | } 201 | $main::array{'load'} = "${load}"; 202 | } 203 | 204 | sub GetOnlineStatus 205 | { ### Assign online status 206 | $main::array{'online'} = '
207 |
Up
208 |
'; 209 | } 210 | 211 | sub GetTimestamp 212 | { ### Set timestamp 213 | $main::array{'timestamp'} = time; 214 | } 215 | 216 | sub mk_json { 217 | ### Print JSON version of array 218 | my($key) = ""; 219 | my($json_str) = "{"; 220 | foreach $key (keys %array) { 221 | $_ = $array{$key}; 222 | s/"/\\"/g; 223 | s/\n/\\n/g; 224 | s/\//\\\//g; 225 | $json_str .= "\"${key}\":\"$_\","; 226 | } 227 | chop($json_str); 228 | $json_str .= "}"; 229 | $json_str; 230 | } 231 | 232 | sub Daemonize 233 | { 234 | if ( ! ($main::outfile && $main::pidfile) ) { 235 | print STDERR "ERR: --daemon must be preceeded by --pidfile and --outfile.\n"; 236 | exit 1; 237 | } 238 | if ( $main::outfile !~ /^\// ) { 239 | print STDERR "ERR: outfile must be a full pathname.\n"; 240 | exit 1; 241 | } 242 | chdir("/"); 243 | close(STDIN); close(STDOUT); close(STDERR); 244 | } 245 | 246 | sub ProcessCmdOptions { 247 | my($arg, $arg1) = @_; 248 | if ( $arg =~ /^--sleep/o ) { 249 | $main::sleep_secs = int($arg1) if ( ! $main::sleep_secs ); 250 | } elsif ( $arg =~ /^--outfile/o ) { 251 | $main::outfile = $arg1 if ( $main::outfile eq "" ); 252 | } elsif ( $arg =~ /^--pidfile/o ) { 253 | $main::pidfile = $arg1 if ( $main::pidfile eq "" ); 254 | $main::sleep_secs = 120 if ( ! $main::sleep_secs ); 255 | } elsif ( $arg =~ /^--config/o ) { 256 | my($config_file) = $arg1; 257 | my($key,$value) = ("",""); 258 | if ( ! -r $config_file ) { 259 | print STDERR "ERR: configfile ${config_file} does not exist!\n"; 260 | exit 1; 261 | } 262 | if ( ! open(F,"< ${config_file}") ) { 263 | print STDERR "ERR: cannot open ${config_file}.\n"; 264 | exit 1; 265 | } 266 | while ($_ = ) { 267 | next if ( /^#/o ); 268 | if ( /([^=]+)\s*=\s*(.*)/o ) { 269 | ($key,$value) = split(/=/,$_); 270 | $key =~ s/^\s+//; $key =~ s/\s+$//; 271 | $key =~ s/^"//; $key =~ s/"$//; 272 | $value =~ s/#.*$//; $value =~ s/^\s+//; $value =~ s/\s+$//; 273 | $value =~ s/^"//; $value =~ s/"$//; 274 | next if ( $key eq "config" ); 275 | &ProcessCmdOptions("--${key}", "${value}"); 276 | } 277 | } 278 | close(F); 279 | } elsif ( $arg =~ /^--daemon/o ) { 280 | $main::daemonize = "true" if ( $arg1 =~ /true/i ); 281 | } else { 282 | &usage; exit 1; 283 | } 284 | } 285 | 286 | ### 287 | ### MAIN 288 | ### 289 | 290 | while ( defined($ARGV[0]) && $ARGV[0] =~ /^--/o ) { 291 | my($arg) = shift; 292 | &ProcessCmdOptions($arg,$ARGV[0]); 293 | shift; 294 | } 295 | 296 | $main::sleep_secs = int($ENV{'SLEEP'}) if ( defined($ENV{'SLEEP'}) ); 297 | $main::outfile = $ENV{'OUTFILE'} if ( defined($ENV{'OUTFILE'}) ); 298 | $main::pidfile = $ENV{'PIDFILE'} if ( defined($ENV{'PIDFILE'}) ); 299 | if ( defined($ENV{'DAEMON'}) ) { 300 | $main::daemonize = 'true' if ( $ENV{'DAEMON'} =~ /true/io ); 301 | $main::daemonize = 'false' if ( $ENV{'DAEMON'} =~ /false/io ); 302 | } 303 | 304 | if ( $main::daemonize eq 'true' ) { 305 | my($pid) = 0; 306 | $pid=fork(); 307 | if ( $pid == 0 ) { 308 | &Daemonize; 309 | } elsif ( $pid > 0 ) { 310 | exit 0; 311 | } else { 312 | print STDERR "ERR: Cannot fork to go into the background...exiting..\n"; 313 | exit 1; 314 | } 315 | } else { 316 | my $oldsel = select(STDOUT); $| = 1; select($oldsel); 317 | } 318 | umask(022); 319 | 320 | if ( $main::pidfile ne "" ) { 321 | if ( open(F,"> $main::pidfile") ) { 322 | print F "$$\n"; 323 | close(F); 324 | } 325 | } 326 | 327 | while ( 1 ) { 328 | undef(%main::array); 329 | %main::array = (); 330 | &GetUptime; 331 | &GetMemInfo; 332 | &GetStorage; 333 | &GetLoadAvg; 334 | &GetOnlineStatus; 335 | &GetTimestamp; 336 | if ( $main::outfile ne "" ) { 337 | open(OUT, "> $main::outfile"); 338 | } else { 339 | open(OUT, ">&STDOUT"); 340 | } 341 | print OUT &mk_json; 342 | close(OUT); 343 | 344 | last if ( ! $main::sleep_secs ); 345 | sleep($main::sleep_secs); 346 | } 347 | 348 | &cleanup; -------------------------------------------------------------------------------- /scripts/uptime_installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # ====================================== 4 | # Uptime.php Installer 5 | # ====================================== 6 | # This script works on debian based 7 | # machines and is intended to install 8 | # and setup the required depends to run 9 | # the uptime.php file. 10 | # Make sure that you run this via: 11 | # sudo -or- root 12 | # 13 | # ====================================== 14 | # By: Cameron Munroe ~ Mun 15 | # site: https://www.qwdsa.com/threads/serverstatus-rebuild.43/ 16 | # mysite: https://www.cameronmunroe.com/ 17 | # 18 | # Ver: 1.3 19 | # ====================================== 20 | # Changelog 21 | # ====================================== 22 | 23 | # Ver 1.3 24 | # ====================================== 25 | # Patched adduser command 26 | 27 | 28 | # Ver 1.0 29 | # ====================================== 30 | # Initial Commit based on 1.2 of 31 | # uptime_used_installer.sh 32 | 33 | 34 | 35 | # ====================================== 36 | # Depends 37 | # ====================================== 38 | 39 | 40 | apt-get update > /dev/null 41 | apt-get install screen -y > /dev/null 42 | apt-get install php5-cli -y > /dev/null 43 | 44 | # ====================================== 45 | # Setup account 46 | # ====================================== 47 | 48 | adduser --quiet --disabled-login --gecos "" serverstatus 49 | 50 | # ====================================== 51 | # Get files 52 | # ====================================== 53 | 54 | cd /tmp 55 | wget -q https://git.enjen.net/Munzy/ServerStatus/raw/Munzy/uptime.php --no-check-certificate >/dev/null 56 | mv /tmp/uptime.php /home/serverstatus/uptime.php 57 | chown serverstatus:serverstatus /home/serverstatus/uptime.php 58 | 59 | 60 | # ====================================== 61 | # Install rc.local launcher 62 | # ====================================== 63 | 64 | if grep -q 'su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime.php"' '/etc/rc.local'; then 65 | echo "skipping..." 66 | else 67 | sed -i -e '$i \su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime.php"\n' /etc/rc.local 68 | fi 69 | 70 | 71 | 72 | # ====================================== 73 | # Launch it! 74 | # ====================================== 75 | 76 | su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime.php" 77 | 78 | 79 | # ====================================== 80 | # Done 81 | # ====================================== 82 | 83 | echo "# ======================================" 84 | echo " \ Uptime.php Installed /" 85 | echo "# ======================================" 86 | echo " \ Make sure to configure your /" 87 | echo " \ firewall and serverstatus /" 88 | echo " \ Enjoy! /" 89 | echo "# ======================================" 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /scripts/uptime_used_installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # ====================================== 4 | # Uptime_Used.php Installer 5 | # ====================================== 6 | # This script works on debian based 7 | # machines and is intended to install 8 | # and setup the required depends to run 9 | # the uptime_used.php file. 10 | # Make sure that you run this via: 11 | # sudo -or- root 12 | # 13 | # ====================================== 14 | # By: Cameron Munroe ~ Mun 15 | # site: https://www.qwdsa.com/threads/serverstatus-rebuild.43/ 16 | # mysite: https://www.cameronmunroe.com/ 17 | # 18 | # Ver: 1.4 19 | # ====================================== 20 | # Changelog 21 | # ====================================== 22 | 23 | # Ver 1.4 24 | # ====================================== 25 | # added ipv6 support on port 8081 26 | 27 | # Ver 1.3 28 | # ====================================== 29 | # Patched adduser command 30 | 31 | # Ver 1.2 32 | # ====================================== 33 | # Launched uptime_used.php at end of 34 | # file so that you don't have to start 35 | # it by hand. Assuming you don't proptly 36 | # restart the server. 37 | 38 | # Ver 1.1 39 | # ====================================== 40 | # Fixed the add account command 41 | 42 | # Ver 1.0 43 | # ====================================== 44 | # Initial Commit 45 | 46 | 47 | # ====================================== 48 | # Notes 49 | # ====================================== 50 | 51 | # Currently only works on debian and 52 | # ubuntu machines. 53 | # This will install php5-cli and screen. 54 | # The daemon will run on port 8080. 55 | # If you run iptables or a firewall 56 | # you will need to confifure it!. 57 | # This will also make an account called 58 | # serverstatus to run the daemon. 59 | 60 | 61 | 62 | # ====================================== 63 | # Depends 64 | # ====================================== 65 | 66 | 67 | apt-get update > /dev/null 68 | apt-get install screen -y > /dev/null 69 | apt-get install php5-cli -y > /dev/null 70 | 71 | # ====================================== 72 | # Setup account 73 | # ====================================== 74 | 75 | adduser --quiet --disabled-login --gecos "" serverstatus 76 | 77 | # ====================================== 78 | # Get files 79 | # ====================================== 80 | 81 | cd /tmp 82 | # 83 | # Fun fact, github doesn't have ipv6 support 84 | # So we get to use my gitlab for this.... 85 | # 86 | wget -q https://git.enjen.net/Munzy/ServerStatus/raw/Munzy/uptime_used.php --no-check-certificate >/dev/null 87 | mv /tmp/uptime_used.php /home/serverstatus/uptime_used.php 88 | chown serverstatus:serverstatus /home/serverstatus/uptime_used.php 89 | 90 | 91 | # ====================================== 92 | # Install rc.local launcher 93 | # ====================================== 94 | 95 | if grep -q 'su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime_used.php"' '/etc/rc.local'; then 96 | echo "skipping..." 97 | else 98 | sed -i -e '$i \su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime_used.php"\n' /etc/rc.local 99 | fi 100 | 101 | if grep -q 'su - serverstatus -c "screen -d -m php -S [\'::\']:8081 /home/serverstatus/uptime_used.php"' '/etc/rc.local'; then 102 | echo "skipping..." 103 | else 104 | sed -i -e '$i \su - serverstatus -c "screen -d -m php -S [\'::\']:8080 /home/serverstatus/uptime_used.php"\n' /etc/rc.local 105 | fi 106 | 107 | 108 | # ====================================== 109 | # Launch it! 110 | # ====================================== 111 | 112 | su - serverstatus -c "screen -d -m php -S 0.0.0.0:8080 /home/serverstatus/uptime_used.php" 113 | su - serverstatus -c "screen -d -m php -S ['::']:8081 /home/serverstatus/uptime_used.php" 114 | 115 | 116 | # ====================================== 117 | # Done 118 | # ====================================== 119 | 120 | echo "# ======================================" 121 | echo " \ Uptime_used.php Installed /" 122 | echo "# ======================================" 123 | echo " \ Make sure to configure your /" 124 | echo " \ firewall and serverstatus /" 125 | echo " \ Enjoy! /" 126 | echo "# ======================================" -------------------------------------------------------------------------------- /templates/dark/css/custom.css: -------------------------------------------------------------------------------- 1 | body { background: #222222 url('../img/bg.png'); color: #fff; } 2 | .navbar-inverse .brand { color: #fff; } 3 | .content { background: #222; padding: 20px; border-radius: 5px; border: 1px #000 solid; -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); box-shadow: 0 1px 10px rgba(0, 0, 0, .1); margin-bottom: 20px; } 4 | .table { background: #000; margin-bottom: 0; border-collapse: collapse; border-radius: 3px; } 5 | .table th { text-align: center; } 6 | .table-striped tbody>tr:nth-child(odd)>td, .table-striped tbody>tr:nth-child(odd)>th { background-color: #2f2f2f; } 7 | .table td { text-align: center; border-color: #2f2f2f; } 8 | .progress { margin-bottom: 0; background: #222; } 9 | #ram, #hdd { min-width: 35px; max-width: 100px; } 10 | @media only screen and (max-width: 768px) { 11 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 12 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 13 | } 14 | @media only screen and (max-width: 420px) { 15 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 16 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 17 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 18 | } 19 | @media only screen and (max-width: 320px) { 20 | body { font-size: 10px; } 21 | .content { padding: 0; } 22 | #name, tr td:nth-child(2) { min-width: 10px; max-width: 25px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } 23 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 24 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 25 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 26 | #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } 27 | } 28 | -------------------------------------------------------------------------------- /templates/dark/img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/dark/img/bg.png -------------------------------------------------------------------------------- /templates/dark/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ServerStatus 5 | 6 | 7 | 8 | 14 | 15 | 16 | 23 | 24 |
25 | 26 | 27 |
28 |
29 | 30 |
31 |

We are showing resources.
ServerStatus by Michael Ojeda and Cameron Munroe
32 | Like this app, then please donate.

33 |
34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /templates/default/css/custom.css: -------------------------------------------------------------------------------- 1 | body { background: #ebebeb url('../img/bg.png'); } 2 | .content { background: #ffffff; padding: 20px; border-radius: 5px; border: 1px #cecece solid; -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); box-shadow: 0 1px 10px rgba(0, 0, 0, .1); margin-bottom: 20px; } 3 | .table { background: #ffffff; margin-bottom: 0; border-collapse: collapse; border-radius: 3px; } 4 | .table th, .table td { text-align: center; } 5 | .progress { margin-bottom: 0; } 6 | #ram, #hdd { min-width: 35px; max-width: 100px; } 7 | @media only screen and (max-width: 768px) { 8 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 9 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 10 | 11 | } 12 | @media only screen and (max-width: 420px) { 13 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 14 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 15 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 16 | 17 | 18 | } 19 | @media only screen and (max-width: 320px) { 20 | body { font-size: 10px; } 21 | .content { padding: 0; } 22 | #name, tr td:nth-child(2) { min-width: 10px; max-width: 25px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } 23 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 24 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 25 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /templates/default/img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default/img/bg.png -------------------------------------------------------------------------------- /templates/default/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Uptime | <?php echo $title?> 5 | 6 | 7 | 8 | 14 | 15 | 16 | 23 | 24 |
25 | 26 | 27 |
28 |
29 | 30 |
31 |

We are showing resources.
ServerStatus by Michael Ojeda and Cameron Munroe
32 | Like this app, then please donate.

33 |
34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /templates/default2016/bs/css/bootstrap-theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | .btn-default, 7 | .btn-primary, 8 | .btn-success, 9 | .btn-info, 10 | .btn-warning, 11 | .btn-danger { 12 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); 13 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 14 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 15 | } 16 | .btn-default:active, 17 | .btn-primary:active, 18 | .btn-success:active, 19 | .btn-info:active, 20 | .btn-warning:active, 21 | .btn-danger:active, 22 | .btn-default.active, 23 | .btn-primary.active, 24 | .btn-success.active, 25 | .btn-info.active, 26 | .btn-warning.active, 27 | .btn-danger.active { 28 | -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 29 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 30 | } 31 | .btn-default.disabled, 32 | .btn-primary.disabled, 33 | .btn-success.disabled, 34 | .btn-info.disabled, 35 | .btn-warning.disabled, 36 | .btn-danger.disabled, 37 | .btn-default[disabled], 38 | .btn-primary[disabled], 39 | .btn-success[disabled], 40 | .btn-info[disabled], 41 | .btn-warning[disabled], 42 | .btn-danger[disabled], 43 | fieldset[disabled] .btn-default, 44 | fieldset[disabled] .btn-primary, 45 | fieldset[disabled] .btn-success, 46 | fieldset[disabled] .btn-info, 47 | fieldset[disabled] .btn-warning, 48 | fieldset[disabled] .btn-danger { 49 | -webkit-box-shadow: none; 50 | box-shadow: none; 51 | } 52 | .btn-default .badge, 53 | .btn-primary .badge, 54 | .btn-success .badge, 55 | .btn-info .badge, 56 | .btn-warning .badge, 57 | .btn-danger .badge { 58 | text-shadow: none; 59 | } 60 | .btn:active, 61 | .btn.active { 62 | background-image: none; 63 | } 64 | .btn-default { 65 | text-shadow: 0 1px 0 #fff; 66 | background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); 67 | background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); 68 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 69 | background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); 70 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); 71 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 72 | background-repeat: repeat-x; 73 | border-color: #dbdbdb; 74 | border-color: #ccc; 75 | } 76 | .btn-default:hover, 77 | .btn-default:focus { 78 | background-color: #e0e0e0; 79 | background-position: 0 -15px; 80 | } 81 | .btn-default:active, 82 | .btn-default.active { 83 | background-color: #e0e0e0; 84 | border-color: #dbdbdb; 85 | } 86 | .btn-default.disabled, 87 | .btn-default[disabled], 88 | fieldset[disabled] .btn-default, 89 | .btn-default.disabled:hover, 90 | .btn-default[disabled]:hover, 91 | fieldset[disabled] .btn-default:hover, 92 | .btn-default.disabled:focus, 93 | .btn-default[disabled]:focus, 94 | fieldset[disabled] .btn-default:focus, 95 | .btn-default.disabled.focus, 96 | .btn-default[disabled].focus, 97 | fieldset[disabled] .btn-default.focus, 98 | .btn-default.disabled:active, 99 | .btn-default[disabled]:active, 100 | fieldset[disabled] .btn-default:active, 101 | .btn-default.disabled.active, 102 | .btn-default[disabled].active, 103 | fieldset[disabled] .btn-default.active { 104 | background-color: #e0e0e0; 105 | background-image: none; 106 | } 107 | .btn-primary { 108 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); 109 | background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); 110 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); 111 | background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); 112 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); 113 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 114 | background-repeat: repeat-x; 115 | border-color: #245580; 116 | } 117 | .btn-primary:hover, 118 | .btn-primary:focus { 119 | background-color: #265a88; 120 | background-position: 0 -15px; 121 | } 122 | .btn-primary:active, 123 | .btn-primary.active { 124 | background-color: #265a88; 125 | border-color: #245580; 126 | } 127 | .btn-primary.disabled, 128 | .btn-primary[disabled], 129 | fieldset[disabled] .btn-primary, 130 | .btn-primary.disabled:hover, 131 | .btn-primary[disabled]:hover, 132 | fieldset[disabled] .btn-primary:hover, 133 | .btn-primary.disabled:focus, 134 | .btn-primary[disabled]:focus, 135 | fieldset[disabled] .btn-primary:focus, 136 | .btn-primary.disabled.focus, 137 | .btn-primary[disabled].focus, 138 | fieldset[disabled] .btn-primary.focus, 139 | .btn-primary.disabled:active, 140 | .btn-primary[disabled]:active, 141 | fieldset[disabled] .btn-primary:active, 142 | .btn-primary.disabled.active, 143 | .btn-primary[disabled].active, 144 | fieldset[disabled] .btn-primary.active { 145 | background-color: #265a88; 146 | background-image: none; 147 | } 148 | .btn-success { 149 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); 150 | background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); 151 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); 152 | background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); 153 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); 154 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 155 | background-repeat: repeat-x; 156 | border-color: #3e8f3e; 157 | } 158 | .btn-success:hover, 159 | .btn-success:focus { 160 | background-color: #419641; 161 | background-position: 0 -15px; 162 | } 163 | .btn-success:active, 164 | .btn-success.active { 165 | background-color: #419641; 166 | border-color: #3e8f3e; 167 | } 168 | .btn-success.disabled, 169 | .btn-success[disabled], 170 | fieldset[disabled] .btn-success, 171 | .btn-success.disabled:hover, 172 | .btn-success[disabled]:hover, 173 | fieldset[disabled] .btn-success:hover, 174 | .btn-success.disabled:focus, 175 | .btn-success[disabled]:focus, 176 | fieldset[disabled] .btn-success:focus, 177 | .btn-success.disabled.focus, 178 | .btn-success[disabled].focus, 179 | fieldset[disabled] .btn-success.focus, 180 | .btn-success.disabled:active, 181 | .btn-success[disabled]:active, 182 | fieldset[disabled] .btn-success:active, 183 | .btn-success.disabled.active, 184 | .btn-success[disabled].active, 185 | fieldset[disabled] .btn-success.active { 186 | background-color: #419641; 187 | background-image: none; 188 | } 189 | .btn-info { 190 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 191 | background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 192 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); 193 | background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); 194 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); 195 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 196 | background-repeat: repeat-x; 197 | border-color: #28a4c9; 198 | } 199 | .btn-info:hover, 200 | .btn-info:focus { 201 | background-color: #2aabd2; 202 | background-position: 0 -15px; 203 | } 204 | .btn-info:active, 205 | .btn-info.active { 206 | background-color: #2aabd2; 207 | border-color: #28a4c9; 208 | } 209 | .btn-info.disabled, 210 | .btn-info[disabled], 211 | fieldset[disabled] .btn-info, 212 | .btn-info.disabled:hover, 213 | .btn-info[disabled]:hover, 214 | fieldset[disabled] .btn-info:hover, 215 | .btn-info.disabled:focus, 216 | .btn-info[disabled]:focus, 217 | fieldset[disabled] .btn-info:focus, 218 | .btn-info.disabled.focus, 219 | .btn-info[disabled].focus, 220 | fieldset[disabled] .btn-info.focus, 221 | .btn-info.disabled:active, 222 | .btn-info[disabled]:active, 223 | fieldset[disabled] .btn-info:active, 224 | .btn-info.disabled.active, 225 | .btn-info[disabled].active, 226 | fieldset[disabled] .btn-info.active { 227 | background-color: #2aabd2; 228 | background-image: none; 229 | } 230 | .btn-warning { 231 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 232 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 233 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); 234 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); 235 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); 236 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 237 | background-repeat: repeat-x; 238 | border-color: #e38d13; 239 | } 240 | .btn-warning:hover, 241 | .btn-warning:focus { 242 | background-color: #eb9316; 243 | background-position: 0 -15px; 244 | } 245 | .btn-warning:active, 246 | .btn-warning.active { 247 | background-color: #eb9316; 248 | border-color: #e38d13; 249 | } 250 | .btn-warning.disabled, 251 | .btn-warning[disabled], 252 | fieldset[disabled] .btn-warning, 253 | .btn-warning.disabled:hover, 254 | .btn-warning[disabled]:hover, 255 | fieldset[disabled] .btn-warning:hover, 256 | .btn-warning.disabled:focus, 257 | .btn-warning[disabled]:focus, 258 | fieldset[disabled] .btn-warning:focus, 259 | .btn-warning.disabled.focus, 260 | .btn-warning[disabled].focus, 261 | fieldset[disabled] .btn-warning.focus, 262 | .btn-warning.disabled:active, 263 | .btn-warning[disabled]:active, 264 | fieldset[disabled] .btn-warning:active, 265 | .btn-warning.disabled.active, 266 | .btn-warning[disabled].active, 267 | fieldset[disabled] .btn-warning.active { 268 | background-color: #eb9316; 269 | background-image: none; 270 | } 271 | .btn-danger { 272 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 273 | background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 274 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); 275 | background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); 276 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); 277 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 278 | background-repeat: repeat-x; 279 | border-color: #b92c28; 280 | } 281 | .btn-danger:hover, 282 | .btn-danger:focus { 283 | background-color: #c12e2a; 284 | background-position: 0 -15px; 285 | } 286 | .btn-danger:active, 287 | .btn-danger.active { 288 | background-color: #c12e2a; 289 | border-color: #b92c28; 290 | } 291 | .btn-danger.disabled, 292 | .btn-danger[disabled], 293 | fieldset[disabled] .btn-danger, 294 | .btn-danger.disabled:hover, 295 | .btn-danger[disabled]:hover, 296 | fieldset[disabled] .btn-danger:hover, 297 | .btn-danger.disabled:focus, 298 | .btn-danger[disabled]:focus, 299 | fieldset[disabled] .btn-danger:focus, 300 | .btn-danger.disabled.focus, 301 | .btn-danger[disabled].focus, 302 | fieldset[disabled] .btn-danger.focus, 303 | .btn-danger.disabled:active, 304 | .btn-danger[disabled]:active, 305 | fieldset[disabled] .btn-danger:active, 306 | .btn-danger.disabled.active, 307 | .btn-danger[disabled].active, 308 | fieldset[disabled] .btn-danger.active { 309 | background-color: #c12e2a; 310 | background-image: none; 311 | } 312 | .thumbnail, 313 | .img-thumbnail { 314 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 315 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 316 | } 317 | .dropdown-menu > li > a:hover, 318 | .dropdown-menu > li > a:focus { 319 | background-color: #e8e8e8; 320 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 321 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 322 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 323 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 324 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 325 | background-repeat: repeat-x; 326 | } 327 | .dropdown-menu > .active > a, 328 | .dropdown-menu > .active > a:hover, 329 | .dropdown-menu > .active > a:focus { 330 | background-color: #2e6da4; 331 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 332 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 333 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 334 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 335 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 336 | background-repeat: repeat-x; 337 | } 338 | .navbar-default { 339 | background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); 340 | background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); 341 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); 342 | background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); 343 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); 344 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 345 | background-repeat: repeat-x; 346 | border-radius: 4px; 347 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 348 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 349 | } 350 | .navbar-default .navbar-nav > .open > a, 351 | .navbar-default .navbar-nav > .active > a { 352 | background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 353 | background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 354 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); 355 | background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); 356 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); 357 | background-repeat: repeat-x; 358 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 359 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 360 | } 361 | .navbar-brand, 362 | .navbar-nav > li > a { 363 | text-shadow: 0 1px 0 rgba(255, 255, 255, .25); 364 | } 365 | .navbar-inverse { 366 | background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); 367 | background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); 368 | background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); 369 | background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); 370 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); 371 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 372 | background-repeat: repeat-x; 373 | border-radius: 4px; 374 | } 375 | .navbar-inverse .navbar-nav > .open > a, 376 | .navbar-inverse .navbar-nav > .active > a { 377 | background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); 378 | background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); 379 | background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); 380 | background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); 381 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); 382 | background-repeat: repeat-x; 383 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 384 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 385 | } 386 | .navbar-inverse .navbar-brand, 387 | .navbar-inverse .navbar-nav > li > a { 388 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); 389 | } 390 | .navbar-static-top, 391 | .navbar-fixed-top, 392 | .navbar-fixed-bottom { 393 | border-radius: 0; 394 | } 395 | @media (max-width: 767px) { 396 | .navbar .navbar-nav .open .dropdown-menu > .active > a, 397 | .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, 398 | .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { 399 | color: #fff; 400 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 401 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 402 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 403 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 404 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 405 | background-repeat: repeat-x; 406 | } 407 | } 408 | .alert { 409 | text-shadow: 0 1px 0 rgba(255, 255, 255, .2); 410 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 411 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 412 | } 413 | .alert-success { 414 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 415 | background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 416 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); 417 | background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); 418 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); 419 | background-repeat: repeat-x; 420 | border-color: #b2dba1; 421 | } 422 | .alert-info { 423 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 424 | background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 425 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); 426 | background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); 427 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); 428 | background-repeat: repeat-x; 429 | border-color: #9acfea; 430 | } 431 | .alert-warning { 432 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 433 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 434 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); 435 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); 436 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); 437 | background-repeat: repeat-x; 438 | border-color: #f5e79e; 439 | } 440 | .alert-danger { 441 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 442 | background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 443 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); 444 | background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); 445 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); 446 | background-repeat: repeat-x; 447 | border-color: #dca7a7; 448 | } 449 | .progress { 450 | background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 451 | background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 452 | background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); 453 | background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); 454 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); 455 | background-repeat: repeat-x; 456 | } 457 | .progress-bar { 458 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); 459 | background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); 460 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); 461 | background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); 462 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); 463 | background-repeat: repeat-x; 464 | } 465 | .progress-bar-success { 466 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); 467 | background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); 468 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); 469 | background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); 470 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); 471 | background-repeat: repeat-x; 472 | } 473 | .progress-bar-info { 474 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 475 | background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 476 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); 477 | background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); 478 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); 479 | background-repeat: repeat-x; 480 | } 481 | .progress-bar-warning { 482 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 483 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 484 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); 485 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); 486 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); 487 | background-repeat: repeat-x; 488 | } 489 | .progress-bar-danger { 490 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); 491 | background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); 492 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); 493 | background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); 494 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); 495 | background-repeat: repeat-x; 496 | } 497 | .progress-bar-striped { 498 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 499 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 500 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 501 | } 502 | .list-group { 503 | border-radius: 4px; 504 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 505 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 506 | } 507 | .list-group-item.active, 508 | .list-group-item.active:hover, 509 | .list-group-item.active:focus { 510 | text-shadow: 0 -1px 0 #286090; 511 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); 512 | background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); 513 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); 514 | background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); 515 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); 516 | background-repeat: repeat-x; 517 | border-color: #2b669a; 518 | } 519 | .list-group-item.active .badge, 520 | .list-group-item.active:hover .badge, 521 | .list-group-item.active:focus .badge { 522 | text-shadow: none; 523 | } 524 | .panel { 525 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 526 | box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 527 | } 528 | .panel-default > .panel-heading { 529 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 530 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 531 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 532 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 533 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 534 | background-repeat: repeat-x; 535 | } 536 | .panel-primary > .panel-heading { 537 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 538 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 539 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 540 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 541 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 542 | background-repeat: repeat-x; 543 | } 544 | .panel-success > .panel-heading { 545 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 546 | background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 547 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); 548 | background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); 549 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); 550 | background-repeat: repeat-x; 551 | } 552 | .panel-info > .panel-heading { 553 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 554 | background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 555 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); 556 | background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); 557 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); 558 | background-repeat: repeat-x; 559 | } 560 | .panel-warning > .panel-heading { 561 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 562 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 563 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); 564 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); 565 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); 566 | background-repeat: repeat-x; 567 | } 568 | .panel-danger > .panel-heading { 569 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 570 | background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 571 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); 572 | background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); 573 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); 574 | background-repeat: repeat-x; 575 | } 576 | .well { 577 | background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 578 | background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 579 | background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); 580 | background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); 581 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); 582 | background-repeat: repeat-x; 583 | border-color: #dcdcdc; 584 | -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 585 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 586 | } 587 | /*# sourceMappingURL=bootstrap-theme.css.map */ 588 | -------------------------------------------------------------------------------- /templates/default2016/bs/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} 6 | /*# sourceMappingURL=bootstrap-theme.min.css.map */ -------------------------------------------------------------------------------- /templates/default2016/bs/css/bootstrap-theme.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":[],"mappings":";;;;AAmBA,YAAA,aAAA,UAAA,aAAA,aAAA,aAME,YAAA,EAAA,KAAA,EAAA,eC2CA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBDvCR,mBAAA,mBAAA,oBAAA,oBAAA,iBAAA,iBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBAAA,oBCsCA,mBAAA,MAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,iBDlCR,qBAAA,sBAAA,sBAAA,uBAAA,mBAAA,oBAAA,sBAAA,uBAAA,sBAAA,uBAAA,sBAAA,uBAAA,+BAAA,gCAAA,6BAAA,gCAAA,gCAAA,gCCiCA,mBAAA,KACQ,WAAA,KDlDV,mBAAA,oBAAA,iBAAA,oBAAA,oBAAA,oBAuBI,YAAA,KAyCF,YAAA,YAEE,iBAAA,KAKJ,aErEI,YAAA,EAAA,IAAA,EAAA,KACA,iBAAA,iDACA,iBAAA,4CAAA,iBAAA,qEAEA,iBAAA,+CCnBF,OAAA,+GH4CA,OAAA,0DACA,kBAAA,SAuC2C,aAAA,QAA2B,aAAA,KArCtE,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAgBN,aEtEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAiBN,aEvEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAkBN,UExEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,gBAAA,gBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,iBAAA,iBAEE,iBAAA,QACA,aAAA,QAMA,mBAAA,0BAAA,yBAAA,0BAAA,yBAAA,yBAAA,oBAAA,2BAAA,0BAAA,2BAAA,0BAAA,0BAAA,6BAAA,oCAAA,mCAAA,oCAAA,mCAAA,mCAME,iBAAA,QACA,iBAAA,KAmBN,aEzEI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,mBAAA,mBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,oBAAA,oBAEE,iBAAA,QACA,aAAA,QAMA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,uBAAA,8BAAA,6BAAA,8BAAA,6BAAA,6BAAA,gCAAA,uCAAA,sCAAA,uCAAA,sCAAA,sCAME,iBAAA,QACA,iBAAA,KAoBN,YE1EI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDAEA,OAAA,+GCnBF,OAAA,0DH4CA,kBAAA,SACA,aAAA,QAEA,kBAAA,kBAEE,iBAAA,QACA,oBAAA,EAAA,MAGF,mBAAA,mBAEE,iBAAA,QACA,aAAA,QAMA,qBAAA,4BAAA,2BAAA,4BAAA,2BAAA,2BAAA,sBAAA,6BAAA,4BAAA,6BAAA,4BAAA,4BAAA,+BAAA,sCAAA,qCAAA,sCAAA,qCAAA,qCAME,iBAAA,QACA,iBAAA,KA2BN,eAAA,WClCE,mBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,EAAA,IAAA,IAAA,iBD2CV,0BAAA,0BE3FI,iBAAA,QACA,iBAAA,oDACA,iBAAA,+CAAA,iBAAA,wEACA,iBAAA,kDACA,OAAA,+GF0FF,kBAAA,SAEF,yBAAA,+BAAA,+BEhGI,iBAAA,QACA,iBAAA,oDACA,iBAAA,+CAAA,iBAAA,wEACA,iBAAA,kDACA,OAAA,+GFgGF,kBAAA,SASF,gBE7GI,iBAAA,iDACA,iBAAA,4CACA,iBAAA,qEAAA,iBAAA,+CACA,OAAA,+GACA,OAAA,0DCnBF,kBAAA,SH+HA,cAAA,ICjEA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,iBD6DV,sCAAA,oCE7GI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SD2CF,mBAAA,MAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,iBD0EV,cAAA,iBAEE,YAAA,EAAA,IAAA,EAAA,sBAIF,gBEhII,iBAAA,iDACA,iBAAA,4CACA,iBAAA,qEAAA,iBAAA,+CACA,OAAA,+GACA,OAAA,0DCnBF,kBAAA,SHkJA,cAAA,IAHF,sCAAA,oCEhII,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SD2CF,mBAAA,MAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBDgFV,8BAAA,iCAYI,YAAA,EAAA,KAAA,EAAA,gBAKJ,qBAAA,kBAAA,mBAGE,cAAA,EAqBF,yBAfI,mDAAA,yDAAA,yDAGE,MAAA,KE7JF,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,UFqKJ,OACE,YAAA,EAAA,IAAA,EAAA,qBC3HA,mBAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,MAAA,EAAA,IAAA,EAAA,sBAAA,EAAA,IAAA,IAAA,gBDsIV,eEtLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAKF,YEvLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAMF,eExLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAOF,cEzLI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF8KF,aAAA,QAeF,UEjMI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFuMJ,cE3MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFwMJ,sBE5MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFyMJ,mBE7MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF0MJ,sBE9MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF2MJ,qBE/MI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF+MJ,sBElLI,iBAAA,yKACA,iBAAA,oKACA,iBAAA,iKFyLJ,YACE,cAAA,IC9KA,mBAAA,EAAA,IAAA,IAAA,iBACQ,WAAA,EAAA,IAAA,IAAA,iBDgLV,wBAAA,8BAAA,8BAGE,YAAA,EAAA,KAAA,EAAA,QEnOE,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFiOF,aAAA,QALF,+BAAA,qCAAA,qCAQI,YAAA,KAUJ,OCnME,mBAAA,EAAA,IAAA,IAAA,gBACQ,WAAA,EAAA,IAAA,IAAA,gBD4MV,8BE5PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFyPJ,8BE7PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF0PJ,8BE9PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF2PJ,2BE/PI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF4PJ,8BEhQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SF6PJ,6BEjQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFoQJ,MExQI,iBAAA,oDACA,iBAAA,+CACA,iBAAA,wEAAA,iBAAA,kDACA,OAAA,+GACA,kBAAA,SFsQF,aAAA,QC3NA,mBAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA,qBACQ,WAAA,MAAA,EAAA,IAAA,IAAA,gBAAA,EAAA,IAAA,EAAA"} -------------------------------------------------------------------------------- /templates/default2016/bs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default2016/bs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /templates/default2016/bs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default2016/bs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /templates/default2016/bs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default2016/bs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /templates/default2016/bs/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default2016/bs/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /templates/default2016/bs/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.6 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); -------------------------------------------------------------------------------- /templates/default2016/bs/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /templates/default2016/css/custom.css: -------------------------------------------------------------------------------- 1 | body { background: #ebebeb url('../img/bg.png'); } 2 | .content { background: #ffffff; padding: 20px; border-radius: 5px; border: 1px #cecece solid; -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); box-shadow: 0 1px 10px rgba(0, 0, 0, .1); margin-bottom: 20px; } 3 | .table { background: #ffffff; margin-bottom: 0; border-collapse: collapse; border-radius: 3px; } 4 | .table th, .table td { text-align: center; } 5 | .progress { margin-bottom: 0; } 6 | #ram, #hdd { min-width: 35px; max-width: 100px; } 7 | @media only screen and (max-width: 768px) { 8 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 9 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 10 | } 11 | @media only screen and (max-width: 420px) { 12 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 13 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 14 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 15 | } 16 | @media only screen and (max-width: 320px) { 17 | body { font-size: 10px; } 18 | .content { padding: 0; } 19 | #name, tr td:nth-child(2) { min-width: 10px; max-width: 25px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } 20 | #type, tr td:nth-child(3) { display:none; visibility:hidden; } 21 | #host, tr td:nth-child(4) { display:none; visibility:hidden; } 22 | #location, tr td:nth-child(5) { display:none; visibility:hidden; } 23 | #uptime, tr td:nth-child(6) { display:none; visibility:hidden; } 24 | } 25 | .bar { 26 | float: left; 27 | width: 0; 28 | height: 100%; 29 | font-size: 12px; 30 | line-height: 20px; 31 | color: #fff; 32 | text-align: center; 33 | background-color: #337ab7; 34 | -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); 35 | box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); 36 | -webkit-transition: width .6s ease; 37 | -o-transition: width .6s ease; 38 | transition: width .6s ease; 39 | } 40 | .bar-success { 41 | background-color: #5cb85c; 42 | } 43 | .progress-striped .bar-success { 44 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 45 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 46 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 47 | } 48 | .bar-info { 49 | background-color: #5bc0de; 50 | } 51 | .progress-striped .bar-info { 52 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 53 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 54 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 55 | } 56 | .bar-warning { 57 | background-color: #f0ad4e; 58 | } 59 | .progress-striped .bar-warning { 60 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 61 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 62 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 63 | } 64 | .bar-danger { 65 | background-color: #d9534f; 66 | } 67 | .progress-striped .bar-danger { 68 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 69 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 70 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 71 | } 72 | .special-header { 73 | border-bottom:1px solid #ebebeb; 74 | background-color: white; 75 | } -------------------------------------------------------------------------------- /templates/default2016/img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Munzy/ServerStatus/a56b6cfec90912811d16ab849bd93bbc81fb0164/templates/default2016/img/bg.png -------------------------------------------------------------------------------- /templates/default2016/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Uptime | <?php echo $title?> 5 | 6 | 7 | 8 | 14 | 15 | 16 | 23 | 24 |
25 | 26 | 27 |
28 |
29 | 30 |
31 |

We are showing resources.
ServerStatus by Michael Ojeda and Cameron Munroe
32 | Like this app, then please donate.

33 |
34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /uptime.php: -------------------------------------------------------------------------------- 1 |
Up
'; 105 | // YES WE ARE! 106 | 107 | if(isset($apiKey)){ 108 | $post['apiKey'] = 'Valid'; 109 | } 110 | 111 | // ======================================================================================================================================== 112 | // Post Data 113 | // ======================================================================================================================================== 114 | 115 | echo json_encode($post); // Time to show the world what we are made of! 116 | // ======================================================================================================================================== 117 | // Functions 118 | // ======================================================================================================================================== 119 | 120 | // This function determines what color bars we should be using! 121 | function levels($perc, $dl, $wl){ 122 | 123 | if($perc < $dl){ 124 | $return = '
' . $perc . '%
'; 125 | } 126 | elseif($perc < $wl) { 127 | $return = '
' . $perc . '%
'; 128 | } 129 | else { 130 | $return = '
' . $perc . '%
'; 131 | } 132 | return $return; 133 | 134 | } 135 | 136 | 137 | // Sec2Human is from the original Script 138 | function sec2human($time) { 139 | $seconds = $time%60; 140 | $mins = floor($time/60)%60; 141 | $hours = floor($time/60/60)%24; 142 | $days = floor($time/60/60/24); 143 | return $days > 0 ? $days . ' day'.($days > 1 ? 's' : '') : $hours.':'.$mins.':'.$seconds; 144 | } 145 | 146 | // ======================================================================================================================================== 147 | // Done 148 | // ======================================================================================================================================== 149 | 150 | 151 | ?> -------------------------------------------------------------------------------- /uptime_used.php: -------------------------------------------------------------------------------- 1 |
Up
'; 104 | // YES WE ARE! 105 | 106 | if(isset($apiKey)){ 107 | $post['apiKey'] = 'Valid'; 108 | } 109 | 110 | // ======================================================================================================================================== 111 | // Post Data 112 | // ======================================================================================================================================== 113 | 114 | echo json_encode($post); // Time to show the world what we are made of! 115 | // ======================================================================================================================================== 116 | // Functions 117 | // ======================================================================================================================================== 118 | 119 | // This function determines what color bars we should be using! 120 | function levels($perc, $dl, $wl){ 121 | 122 | if($perc > $dl) { 123 | $return = '
' . $perc . '%
'; 124 | } 125 | elseif($perc > $wl) { 126 | $return = '
' . $perc . '%
'; 127 | } 128 | else { 129 | $return = '
' . $perc . '%
'; 130 | } 131 | return $return; 132 | 133 | } 134 | 135 | 136 | 137 | // Sec2Human is from the original Script 138 | function sec2human($time) { 139 | $seconds = $time%60; 140 | $mins = floor($time/60)%60; 141 | $hours = floor($time/60/60)%24; 142 | $days = floor($time/60/60/24); 143 | return $days > 0 ? $days . ' day'.($days > 1 ? 's' : '') : $hours.':'.$mins.':'.$seconds; 144 | } 145 | 146 | // ======================================================================================================================================== 147 | // Done 148 | // ======================================================================================================================================== 149 | 150 | 151 | ?> --------------------------------------------------------------------------------