Compare commits
	
		
			1484 Commits
		
	
	
		
			v0.2.1
			...
			feature-ta
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | da18629d16 | ||
|   | 41c3d9ad21 | ||
|   | 2afe0c1185 | ||
|   | 6334f3f4fa | ||
|   | fe7ad61abe | ||
|   | e23a749e4c | ||
|   | ab5e4eff76 | ||
|   | fdd3bfd105 | ||
|   | 93ad347571 | ||
|   | 7d4aafda4f | ||
|   | 87e8c9eb4d | ||
|   | d61197b6a1 | ||
|   | dfba8bc60b | ||
|   | d2d497d82c | ||
|   | 4204e0a419 | ||
|   | e8e093cc1f | ||
|   | 2b39a1e406 | ||
|   | cac592e63a | ||
|   | 0255d0bef2 | ||
|   | a59f0e9244 | ||
|   | 9f3231fff6 | ||
|   | 647eae08b4 | ||
|   | e2487f97e3 | ||
|   | 235e69b8da | ||
|   | 649e37ab0f | ||
|   | dff4a98ef5 | ||
|   | b754374585 | ||
|   | ad789c50ff | ||
|   | ccfd2b4f55 | ||
|   | 3f5744964a | ||
|   | b22dc0014a | ||
|   | 00cbce20b0 | ||
|   | bbe922a65d | ||
|   | 8f23c62708 | ||
|   | 58bb6093b0 | ||
|   | 2faaa037ab | ||
|   | cc9057324a | ||
|   | f7971a21d8 | ||
|   | 08e7cf05b5 | ||
|   | 2e482fdc2a | ||
|   | a2c8e2b2ae | ||
|   | cc3e66cacb | ||
|   | bd86454fea | ||
|   | 1bb6e61583 | ||
|   | 13a2570ad0 | ||
|   | e961f2efcf | ||
|   | 54609bf90e | ||
|   | 6494bd2c0c | ||
|   | 670812772d | ||
|   | ae8a9fc44c | ||
|   | f80c5fd8ed | ||
|   | 6bac02bd35 | ||
|   | ac67555f28 | ||
|   | 6c4fd4ed27 | ||
|   | a8a896e0f5 | ||
|   | b517a12f8a | ||
|   | 5d741944f7 | ||
|   | a3056f5f48 | ||
|   | 8518f21987 | ||
|   | a3a2f05783 | ||
|   | 9f3c980ed2 | ||
|   | 31f8c99745 | ||
|   | 25c0bac7a3 | ||
|   | 9a749afc46 | ||
|   | 87df817eae | ||
|   | 3a58c8a6f9 | ||
|   | 2ba03e0c99 | ||
|   | f7f46bae00 | ||
|   | ccc91a473c | ||
|   | 7e347e950f | ||
|   | 535ae2047d | ||
|   | 12bc6a0333 | ||
|   | 3a86738983 | ||
|   | 3b3e9b0e70 | ||
|   | 54b9cc5402 | ||
|   | 6d23b285c1 | ||
|   | 76256a7ee6 | ||
|   | 07dafc5118 | ||
|   | b5c1b431d5 | ||
|   | 3a3e434d4e | ||
|   | d71bab648d | ||
|   | 3554b41172 | ||
|   | 41022727bd | ||
|   | 9b781d09a9 | ||
|   | c8d4e7d186 | ||
|   | 6cd8b7697d | ||
|   | 19c4cb810b | ||
|   | ba6119e6d0 | ||
|   | 1ce816040a | ||
|   | aa8e26f6a3 | ||
|   | f0eb113bc2 | ||
|   | 6ed8f18115 | ||
|   | 2262c4e882 | ||
|   | 69b02fa977 | ||
|   | 6baf49bba8 | ||
|   | bb02328b5a | ||
|   | 5a4854c205 | ||
|   | c661ae36ef | ||
|   | df8fb68d5e | ||
|   | fb0afdcea1 | ||
|   | e3775fed86 | ||
|   | 93b0d3829d | ||
|   | b6f98ffdee | ||
|   | 511e10e78b | ||
|   | cfdbc2a8b2 | ||
|   | 1a6fb8bee2 | ||
|   | 410d75c882 | ||
|   | c59bacea93 | ||
|   | f719c02050 | ||
|   | 0698e7b5f5 | ||
|   | c594dfd14b | ||
|   | 514c4a037a | ||
|   | b894f75e74 | ||
|   | d2a3a9a8da | ||
|   | 3f4c02a327 | ||
|   | 199672e0c8 | ||
|   | 02adb87fac | ||
|   | b4448f7279 | ||
|   | 687c9a6690 | ||
|   | 2b86ba94fe | ||
|   | a9fb5dffa3 | ||
|   | da77ec20ef | ||
|   | 6fd141eca6 | ||
|   | e17dde0dca | ||
|   | d1046ba21d | ||
|   | 98332f1483 | ||
|   | 1423046039 | ||
|   | 9c60beeed0 | ||
|   | 336b6ac530 | ||
|   | c71722fc52 | ||
|   | 4d8d574089 | ||
|   | e74fbe5bfd | ||
|   | 48e9a1ed51 | ||
|   | 56631bdf27 | ||
|   | b1224d9d1a | ||
|   | e18ada3d9d | ||
|   | c8218f69a5 | ||
|   | f991a8c817 | ||
|   | 36ec2e1e56 | ||
|   | 19c06df300 | ||
|   | b2d5d6f115 | ||
|   | 5769ac8bb4 | ||
|   | 41c9f54e4b | ||
|   | 8ef238c96c | ||
|   | 9ffb7f5fa9 | ||
|   | 8b5464f8f8 | ||
|   | f008591580 | ||
|   | 1d5b751fe1 | ||
|   | 37bde7df22 | ||
|   | 89deca1adb | ||
|   | c996f25d8d | ||
|   | d291f694d2 | ||
|   | cee1e67d3d | ||
|   | c81861d8c8 | ||
|   | c3c1a6b2a6 | ||
|   | d0590d2747 | ||
|   | c79a1d5f3a | ||
|   | ada1e391d4 | ||
|   | 193e18523d | ||
|   | 3fb9b1ae2f | ||
|   | 561bdcd766 | ||
|   | 556ef47d59 | ||
|   | 130ad25c4d | ||
|   | 08bea2c541 | ||
|   | 8974830621 | ||
|   | d582120fac | ||
|   | 8227303b89 | ||
|   | 7a402ec0e0 | ||
|   | 790d85a88a | ||
|   | a04fbde607 | ||
|   | 9d119b6279 | ||
|   | 7dd9b7764a | ||
|   | 3297a7c51a | ||
|   | 4a430ae9db | ||
|   | 26a80e0741 | ||
|   | 3b9feaf3bd | ||
|   | 21bff97137 | ||
|   | a2a273cde2 | ||
|   | fc5635bad3 | ||
|   | e01a44f352 | ||
|   | 855b05b15f | ||
|   | b3991a8e78 | ||
|   | 0ac0f4e7a8 | ||
|   | e9f155fb49 | ||
|   | 55b5e3b600 | ||
|   | 08339fe8b6 | ||
|   | 89c2e84bff | ||
|   | f76615e59b | ||
|   | 4c4089a155 | ||
|   | 2d02d8d8b3 | ||
|   | 95b1460b13 | ||
|   | 673e40350a | ||
|   | f7cbe5170d | ||
|   | 619b8ba4a0 | ||
|   | 8c3b73ca9e | ||
|   | d90810cf84 | ||
|   | fd25e6e881 | ||
|   | 63e69c97b7 | ||
|   | 574e35ba35 | ||
|   | 09627bdb1e | ||
|   | 5f10773189 | ||
|   | 8a3986932d | ||
|   | 9e2a87f448 | ||
|   | 0746708743 | ||
|   | 3ef53aff6c | ||
|   | f43a5d1221 | ||
|   | 43353b4f53 | ||
|   | a692607c5e | ||
|   | b72e7a3d96 | ||
|   | e15b57f967 | ||
|   | c3a161e2ee | ||
|   | 30fe42939d | ||
|   | 627369bbde | ||
|   | 7cea023965 | ||
|   | eb416e18cc | ||
|   | fc0d13437a | ||
|   | 14c8160020 | ||
|   | 1f95a415aa | ||
|   | 370cc554ad | ||
|   | 2991696a60 | ||
|   | a1ecdd228d | ||
|   | 6c8961638e | ||
|   | 3dd493b790 | ||
|   | b49c247162 | ||
|   | cfbcabbfdb | ||
|   | 0f38a677b1 | ||
|   | 0835b69a93 | ||
|   | 538723c405 | ||
|   | 4f2e410a71 | ||
|   | a70daa8830 | ||
|   | ae600da28b | ||
|   | d8f1bf0a50 | ||
|   | cfc4f3601b | ||
|   | 1a533388e7 | ||
|   | 98335b8cc0 | ||
|   | 16ebc1f577 | ||
|   | 7bab8f033c | ||
|   | 42d97721bf | ||
|   | 23266e05ed | ||
|   | a72d1a3c9f | ||
|   | c802d427eb | ||
|   | aacc120360 | ||
|   | 757ec28028 | ||
|   | 41fa695d8b | ||
|   | b12c30982d | ||
|   | fcb2fc3002 | ||
|   | bb0e621308 | ||
|   | 53221a9fd1 | ||
|   | d3b15a0a3e | ||
|   | 23047aa608 | ||
|   | beff3e3aa6 | ||
|   | 4a629b4418 | ||
|   | 3c3ddc4578 | ||
|   | 0788dc8848 | ||
|   | 5791d1e7f9 | ||
|   | a9cb017def | ||
|   | eaa9d6be43 | ||
|   | 7588904372 | ||
|   | 712ca30293 | ||
|   | 5fa4890b70 | ||
|   | ca56b4f101 | ||
|   | 707aea18db | ||
|   | 848c5c0887 | ||
|   | e14df529c0 | ||
|   | 9f67cab503 | ||
|   | 99c53c75f2 | ||
|   | df7c82c571 | ||
|   | ddb093ec48 | ||
|   | 714476bf29 | ||
|   | e49690b52b | ||
|   | f9d35b719b | ||
|   | a61cd43c3c | ||
|   | 6d1b3235d2 | ||
|   | e7e9d8e3b9 | ||
|   | 8cf0e80019 | ||
|   | c392fa7272 | ||
|   | 082884baa0 | ||
|   | 3a31a0326c | ||
|   | 2d561f267d | ||
|   | 5eafff737a | ||
|   | 8cf4d0cb0f | ||
|   | d1953470d9 | ||
|   | 3a52f2c403 | ||
|   | ac40922957 | ||
|   | 5aed9ee1a4 | ||
|   | 8318169c39 | ||
|   | ad00cf3fc3 | ||
|   | 3ff7b21287 | ||
|   | 36fbae850d | ||
|   | 24ff5684cd | ||
|   | aab62fb724 | ||
|   | a810890614 | ||
|   | a3bfdc1ec8 | ||
|   | a7dc719934 | ||
|   | 74433303fb | ||
|   | 30d62bda3b | ||
|   | cc7703766e | ||
|   | 9d664d3577 | ||
|   | 76bfab1303 | ||
|   | 7d2fc48437 | ||
|   | 171c114b0f | ||
|   | b1d2ac34a2 | ||
|   | c7ce87c4b6 | ||
|   | 4e22c42b10 | ||
|   | eabe789bbb | ||
|   | aa1403480c | ||
|   | 91c8f1f5bc | ||
|   | b421bf3931 | ||
|   | 6e6f4679f4 | ||
|   | 5bb3e57b7b | ||
|   | 17221f5369 | ||
|   | 98d4d3fcf0 | ||
|   | 82092338d6 | ||
|   | 9868b41a61 | ||
|   | c247789adf | ||
|   | 48822b6561 | ||
|   | cd22f8def5 | ||
|   | 0f30ebbcea | ||
|   | 1a2e46f09b | ||
|   | 52ac011556 | ||
|   | f34e5f2ac0 | ||
|   | ca8db22639 | ||
|   | 1846bf5255 | ||
|   | dce0ac2f8f | ||
|   | 9cc60983d0 | ||
|   | 7c2c88f780 | ||
|   | 7690811da3 | ||
|   | 7dc2e404ed | ||
|   | 080ab56ea9 | ||
|   | 83915f080c | ||
|   | 2841f17729 | ||
|   | 0187ba4938 | ||
|   | bedfc0a2e0 | ||
|   | ea08c04963 | ||
|   | 067f2af3e5 | ||
|   | 8d98306f8e | ||
|   | 09a045334c | ||
|   | bc8e5fc144 | ||
|   | 77e0d28a9d | ||
|   | 480a054f0c | ||
|   | 26c895d475 | ||
|   | 5cbb55cfb1 | ||
|   | dcb9506a1b | ||
|   | 2acec4df12 | ||
|   | 4bd761c726 | ||
|   | 2f732b8411 | ||
|   | 5aa02055bf | ||
|   | 6ed15565c8 | ||
|   | 77a2c55c87 | ||
|   | 4a9fa01eb7 | ||
|   | bd031d8980 | ||
|   | b76a037a94 | ||
|   | e71daa2520 | ||
|   | f372aeb067 | ||
|   | ef37bbcb81 | ||
|   | 944457463e | ||
|   | 6f7f25bb46 | ||
|   | d60d7f2250 | ||
|   | 2b8c4b3eca | ||
|   | 7039bda359 | ||
|   | d346a8f73f | ||
|   | 523f2dee7c | ||
|   | b33e39491b | ||
|   | 317ebf4387 | ||
|   | 31ba780099 | ||
|   | d1b30619e2 | ||
|   | 3fab52296a | ||
|   | a6e109799a | ||
|   | 80af2cd691 | ||
|   | d911b55e25 | ||
|   | eb73fc4538 | ||
|   | 75f77ec7a3 | ||
|   | a1d969bbfd | ||
|   | 11f1ad6d76 | ||
|   | 7facf0adad | ||
|   | 2b739c2b40 | ||
|   | 269ae323e0 | ||
|   | 0d0e5812dd | ||
|   | 61c2661377 | ||
|   | de710dff94 | ||
|   | 8c524171fb | ||
|   | 946d24690c | ||
|   | bf137189c5 | ||
|   | da4e18cb69 | ||
|   | 85769c1439 | ||
|   | 4d3ad4b6b9 | ||
|   | e900a62e75 | ||
|   | c3969364aa | ||
|   | e9df9f10dc | ||
|   | f78f5b5361 | ||
|   | c061438a35 | ||
|   | 8441dbe007 | ||
|   | e21a741a78 | ||
|   | 955f437e6c | ||
|   | fd419076c2 | ||
|   | 7569536d56 | ||
|   | 3a6102900f | ||
|   | 6dbc694409 | ||
|   | 7a3dcc4dc6 | ||
|   | 23393b5d3e | ||
|   | 863f3ad510 | ||
|   | e6d86ca280 | ||
|   | c22e25e3d2 | ||
|   | 52ffb195ec | ||
|   | 92a51af638 | ||
|   | d7a9158cf2 | ||
|   | f0f84090d2 | ||
|   | 9d78a3b5cf | ||
|   | 2fc163af5a | ||
|   | 10be98e371 | ||
|   | e0eb083e44 | ||
|   | e17cd78153 | ||
|   | 0015f511f8 | ||
|   | f0f71c9f85 | ||
|   | 0002543cca | ||
|   | c1096415aa | ||
|   | 6625768228 | ||
|   | a27f601fe8 | ||
|   | 72a877d9ca | ||
|   | b7ba09a551 | ||
|   | a98cb66c53 | ||
|   | 6785ecad1d | ||
|   | 937af536b6 | ||
|   | 5487314230 | ||
|   | 51e9bb2a7f | ||
|   | 376bb981ae | ||
|   | ed9d78d2f3 | ||
|   | 3c4e50dbda | ||
|   | 523f9dd95a | ||
|   | a43742c8b1 | ||
|   | c49e4fd63d | ||
|   | 905cce7021 | ||
|   | 7a49b5dedc | ||
|   | 3a2870a6bb | ||
|   | 9a475f2c57 | ||
|   | 58598742e8 | ||
|   | d04e44f52f | ||
|   | c7ec1f44e9 | ||
|   | 3ed9a5d3d8 | ||
|   | 61285b6b8c | ||
|   | d17c547bca | ||
|   | 7bc20b0993 | ||
|   | 6c4b3dea96 | ||
|   | 6ae1bf5814 | ||
|   | 8503135ce0 | ||
|   | 590fe0762d | ||
|   | d565b90736 | ||
|   | c88156802a | ||
|   | 7d8dbcbde7 | ||
|   | 66ec66b291 | ||
|   | fc0eb0e793 | ||
|   | ed7e9e1eae | ||
|   | 8985917a96 | ||
|   | 3a3411c117 | ||
|   | 1166ddfe87 | ||
|   | 574e361f90 | ||
|   | f3745a2752 | ||
|   | a2fb9a183b | ||
|   | 295c5de0d6 | ||
|   | d4650afa0e | ||
|   | 07da4ca028 | ||
|   | feffdd1837 | ||
|   | 979532d3df | ||
|   | 3c77c54c8e | ||
|   | 74d013049d | ||
|   | 708aa2d72f | ||
|   | dd6581f7f7 | ||
|   | 8c801dddec | ||
|   | 9de8145f82 | ||
|   | 77460b0832 | ||
|   | 1fb1fb3ae9 | ||
|   | 1d1e927d56 | ||
|   | 036abf83e5 | ||
|   | e737cf612c | ||
|   | 78622fb47a | ||
|   | 9560494ab0 | ||
|   | 8aac3ec2e5 | ||
|   | 269ca501f1 | ||
|   | 20638f430a | ||
|   | acb551c5b0 | ||
|   | 44a6400fcf | ||
|   | 847c3db625 | ||
|   | f30181d485 | ||
|   | 118e8c487e | ||
|   | c73e476e88 | ||
|   | ac5b864ea9 | ||
|   | 42d531838c | ||
|   | 2321cf84b0 | ||
|   | a570363fe0 | ||
|   | 616b8eb61a | ||
|   | e1d486c8c8 | ||
|   | b841c9f631 | ||
|   | e6c72efd18 | ||
|   | 9693fd260c | ||
|   | 717b5fdd15 | ||
|   | 32cf487128 | ||
|   | a9941dea8a | ||
|   | 5c9737f281 | ||
|   | 87a98531d9 | ||
|   | 6d142dcbfe | ||
|   | 90f00e9960 | ||
|   | 8711e178e9 | ||
|   | eb28b38709 | ||
|   | afea618867 | ||
|   | 0abb9384a6 | ||
|   | 2563583f84 | ||
|   | 6acbbe3fa1 | ||
|   | 6c157f3f6c | ||
|   | c4737eca72 | ||
|   | 5428f5e2cf | ||
|   | 7d6d77cfbc | ||
|   | 87eacd17c5 | ||
|   | dd4420dcfd | ||
|   | b8843a29eb | ||
|   | a12262df55 | ||
|   | 091828e8f1 | ||
|   | 8bca099037 | ||
|   | a43d641b5f | ||
|   | 46c058df25 | ||
|   | fa7c6497e6 | ||
|   | 82b41d4df5 | ||
|   | fd2c2d552a | ||
|   | 78ae456b45 | ||
|   | 7e5528b7e1 | ||
|   | a97f55e189 | ||
|   | 50dd65c6de | ||
|   | 16aeb12111 | ||
|   | 96a7c43cb5 | ||
|   | ee20ee2ecd | ||
|   | efdd156d5e | ||
|   | be41023005 | ||
|   | d143f05bb1 | ||
|   | fdc229b196 | ||
|   | f6a5552296 | ||
|   | 62a4b4d3ec | ||
|   | ef24d6739a | ||
|   | 1831198349 | ||
|   | ddf764e308 | ||
|   | 988c757ca6 | ||
|   | cedcd14550 | ||
|   | 0ff290f868 | ||
|   | 1764ce0519 | ||
|   | f3b49d7cba | ||
|   | 6d19d69d20 | ||
|   | 9ad367370a | ||
|   | eb091e487d | ||
|   | a5ccc794bc | ||
|   | 1427dc3ede | ||
|   | e47bb11883 | ||
|   | 6f3ba9c34b | ||
|   | 0f3d2424ce | ||
|   | 8ecd8a10c0 | ||
|   | 3cc3e3a8e9 | ||
|   | be1086bcba | ||
|   | f9abe9a8e3 | ||
|   | 632ecb6d20 | ||
|   | db554df041 | ||
|   | 7300e4f1ad | ||
|   | 9b84532e57 | ||
|   | 14870d74df | ||
|   | 9c7794fe13 | ||
|   | d9526d4021 | ||
|   | 454e09ec3d | ||
|   | c687f64ced | ||
|   | 80623580f2 | ||
|   | 135f393fc4 | ||
|   | e03da2876c | ||
|   | 44fff9dcd1 | ||
|   | 02f993baea | ||
|   | f9302d4f9d | ||
|   | 780f8d193f | ||
|   | 4e85f857a4 | ||
|   | ea035136e1 | ||
|   | 9d8f398d9f | ||
|   | 31f0050f4e | ||
|   | 7ce005341e | ||
|   | 84447ef178 | ||
|   | b99d3b4960 | ||
|   | 0fc64478e0 | ||
|   | e7a3d563aa | ||
|   | bda020ef93 | ||
|   | f0c136c421 | ||
|   | 5fa1321619 | ||
|   | 792ec17d18 | ||
|   | 19ffd57b34 | ||
|   | ebda456862 | ||
|   | 5bd5aa0edf | ||
|   | 6b07d56627 | ||
|   | 15d381adfd | ||
|   | 23b44d6c8a | ||
|   | e3f2abc06e | ||
|   | 3d73de13d8 | ||
|   | 71f7bb2e75 | ||
|   | ebe900fca8 | ||
|   | 5a8bcec014 | ||
|   | a1c7c2768c | ||
|   | 565e6e3a3d | ||
|   | 855e9aa3b9 | ||
|   | a271edec47 | ||
|   | 81b293a5a6 | ||
|   | 8b41e144f8 | ||
|   | a41f653e05 | ||
|   | f24ff295e8 | ||
|   | b399bee3ac | ||
|   | 8f88c82a13 | ||
|   | d8ac88b7d9 | ||
|   | 443c5a80b4 | ||
|   | ba56ef5e33 | ||
|   | b24370e7ed | ||
|   | b2b0b31168 | ||
|   | 1e969f8d8a | ||
|   | bca098e074 | ||
|   | 98bd51436b | ||
|   | 1fa4b1e660 | ||
|   | 04a36b1d11 | ||
|   | 611d6f505d | ||
|   | 62b485abf9 | ||
|   | 61eae7d7c4 | ||
|   | af161b5143 | ||
|   | d5880eac8c | ||
|   | 02d6ab5fe7 | ||
|   | 5547ccffd6 | ||
|   | 8c06bd1738 | ||
|   | 469a8c1017 | ||
|   | bb3602073c | ||
|   | 6c6af59b22 | ||
|   | a8a36c73e6 | ||
|   | 98b1d854f9 | ||
|   | 1ada2317fd | ||
|   | 40722c8c30 | ||
|   | ff9e255f1b | ||
|   | fbe9c31d10 | ||
|   | 0aed705a6a | ||
|   | 06e864c954 | ||
|   | 1d68d013df | ||
|   | 8e6bc73ca6 | ||
|   | 7e0fded595 | ||
|   | c8443228fb | ||
|   | 64fe0062ee | ||
|   | 3b78516ef2 | ||
|   | 8f345126f7 | ||
|   | daaa472dfe | ||
|   | 87f35da3b6 | ||
|   | 6f42a60e59 | ||
|   | 3beedc1747 | ||
|   | 6603815a81 | ||
|   | c1027d3663 | ||
|   | 6cec5ba5bf | ||
|   | d70b70b63c | ||
|   | 7d73e3cd98 | ||
|   | 5087fc4a00 | ||
|   | 30cdb1ba73 | ||
|   | 0f6612904e | ||
|   | e5b5b4d3ef | ||
|   | 9bc63bb55c | ||
|   | dcf83d5608 | ||
|   | 8fe82bb5c0 | ||
|   | 6f74029d76 | ||
|   | 01e3d366ba | ||
|   | 41d5b4a22f | ||
|   | 7814636caf | ||
|   | cf2c5e36bc | ||
|   | 5d5875d540 | ||
|   | 95c2adc02e | ||
|   | 73f1ba10f9 | ||
|   | 9fe419cfe7 | ||
|   | 41e24ca535 | ||
|   | 42a628731d | ||
|   | 2ba702df21 | ||
|   | 0171962306 | ||
|   | 2daa42e124 | ||
|   | abfd2c94f5 | ||
|   | fd51fa7779 | ||
|   | 1a36aa8904 | ||
|   | 881a28138a | ||
|   | 26fb1698b8 | ||
|   | 13d7dd98bd | ||
|   | 672a9f1712 | ||
|   | 2e560ac081 | ||
|   | 39d1127cf1 | ||
|   | 13586e664f | ||
|   | 6e6db543f7 | ||
|   | ea8ae2372e | ||
|   | 928de13459 | ||
|   | e213c3e7d8 | ||
|   | 65b4b2d183 | ||
|   | 94b145b215 | ||
|   | 6c9e6af154 | ||
|   | b5736ad559 | ||
|   | ab3912b378 | ||
|   | 3090989dea | ||
|   | 92314b8dac | ||
|   | a52396008d | ||
|   | ae7350e3a0 | ||
|   | c30300c368 | ||
|   | ed3d415c05 | ||
|   | bb353d617a | ||
|   | d7f41748ad | ||
|   | 915ae47971 | ||
|   | 40b151b4c5 | ||
|   | 1992410a7b | ||
|   | 48874f5b07 | ||
|   | 2144a4eb7c | ||
|   | cbdbf11edc | ||
|   | 515db04023 | ||
|   | d3811f1bf1 | ||
|   | 815fedf8e7 | ||
|   | 929a7b9cfa | ||
|   | f85361dbc5 | ||
|   | cb6509d09d | ||
|   | f09c129c6d | ||
|   | 602a4aa835 | ||
|   | 14d5c6311b | ||
|   | 289dd3c170 | ||
|   | 60eac97945 | ||
|   | de1d6b9629 | ||
|   | 722264a083 | ||
|   | 357d487af7 | ||
|   | 1b802b040d | ||
|   | 25afbd935c | ||
|   | e61bfd2722 | ||
|   | fe571cbef3 | ||
|   | a7c5cb8f5a | ||
|   | dedb96ef4a | ||
|   | ee49efd215 | ||
|   | 56a35eb864 | ||
|   | d478fe0c71 | ||
|   | 03467ea64e | ||
|   | 3368fbd058 | ||
|   | e84c6f7a24 | ||
|   | a0006bad73 | ||
|   | 2458393d22 | ||
|   | 787416e552 | ||
|   | 1c6b241239 | ||
|   | 7469d520c9 | ||
|   | 7e00e62427 | ||
|   | 0e39a969c3 | ||
|   | 0ad1647930 | ||
|   | d7fc45a72d | ||
|   | 54dfb642b1 | ||
|   | 40626d0f42 | ||
|   | 523afccb51 | ||
|   | 1087aefe0a | ||
|   | 9b66edc148 | ||
|   | 2c09b0ae86 | ||
|   | 8de8ad13bf | ||
|   | 70bd442bb0 | ||
|   | 5250b3189b | ||
|   | 2534651e20 | ||
|   | f46a42023f | ||
|   | e2ab301340 | ||
|   | 700f835243 | ||
|   | 9ce7162a04 | ||
|   | af85a8b711 | ||
|   | cd58008a0f | ||
|   | 1f6bd975d0 | ||
|   | b3556c008e | ||
|   | dbe83f8a74 | ||
|   | d1c50f00a0 | ||
|   | bd9d3154db | ||
|   | 1f0b4425a4 | ||
|   | 47bfea4c56 | ||
|   | 416de6b584 | ||
|   | 3d3d141b25 | ||
|   | 2ff56c17e3 | ||
|   | fb326d0354 | ||
|   | e84933cf26 | ||
|   | 8e04328482 | ||
|   | d148b71f0f | ||
|   | 4e68838172 | ||
|   | d281fc588b | ||
|   | 1799ef42a7 | ||
|   | a0d5a863e0 | ||
|   | df59b104db | ||
|   | e7e327c238 | ||
|   | ee6e68d0bf | ||
|   | d7333b3f21 | ||
|   | 375bd58a0c | ||
|   | cddd915adf | ||
|   | 9e0ad271f6 | ||
|   | a0afeb2a7a | ||
|   | 7c208b38ed | ||
|   | eaa11c68f3 | ||
|   | 92c0671da2 | ||
|   | 33d7a0436b | ||
|   | 0525295d7e | ||
|   | 87e54ac14f | ||
|   | e7fa5eb38a | ||
|   | 71b4f4a64a | ||
|   | 64de46943b | ||
|   | 90d691f251 | ||
|   | df2d83b8a0 | ||
|   | ab94d0e752 | ||
|   | b4645553f2 | ||
|   | 324ebcc997 | ||
|   | b7bb570420 | ||
|   | c991e085d4 | ||
|   | 4e935719d3 | ||
|   | 22b71ae477 | ||
|   | 305884b5ee | ||
|   | 9c143a3461 | ||
|   | d94499af86 | ||
|   | 91fd6cb4e6 | ||
|   | fcfad7cef9 | ||
|   | 7424901aca | ||
|   | 8c680608ff | ||
|   | f8ef1b3b61 | ||
|   | 2c114aa559 | ||
|   | daf8beaf26 | ||
|   | 959788cee8 | ||
|   | 7b75a61cdb | ||
|   | c071d65c67 | ||
|   | 044271ad00 | ||
|   | b8130d3fd3 | ||
|   | 4468f3dd37 | ||
|   | 0c9219f885 | ||
|   | 25ab4e187c | ||
|   | 83a51eebfb | ||
|   | 6e99c6d41f | ||
|   | ad570688c9 | ||
|   | 8378bc0d57 | ||
|   | c74bef475b | ||
|   | 3224dd9862 | ||
|   | adf47bb31c | ||
|   | 66cb0455fd | ||
|   | d56965552f | ||
|   | 07946cbeb2 | ||
|   | 33de478450 | ||
|   | bf867c522a | ||
|   | b3a4ffd4a7 | ||
|   | ff2b9c7988 | ||
|   | ad072ea83a | ||
|   | 9dae06b589 | ||
|   | 09db8e072e | ||
|   | 5ac6ff1405 | ||
|   | 9b3dbdc54f | ||
|   | e11d70de46 | ||
|   | f3ddf631c1 | ||
|   | f1c95b315c | ||
|   | 518ae4d97a | ||
|   | 2a9c28e63b | ||
|   | 900500ef28 | ||
|   | 27d76dfa42 | ||
|   | 51b848c43e | ||
|   | f005b7338f | ||
|   | 04a88c9cbd | ||
|   | 7c0c85f650 | ||
|   | ee9e939f88 | ||
|   | e5ca3daa54 | ||
|   | 8021308822 | ||
|   | d9e449b6cf | ||
|   | c94bb09123 | ||
|   | 1cd3ebf3bb | ||
|   | 2070f91a8f | ||
|   | 5b6b37a867 | ||
|   | 2dbf189f43 | ||
|   | 82e64559a8 | ||
|   | d0d77b8775 | ||
|   | 35c4988c98 | ||
|   | 10cad086f6 | ||
|   | 4d5ba90d38 | ||
|   | 3eb75708de | ||
|   | b95d333dc9 | ||
|   | 887a080198 | ||
|   | 8f3c3c6ba3 | ||
|   | f7c7552d5a | ||
|   | b61c6151eb | ||
|   | 37e2849a3a | ||
|   | a4eca93584 | ||
|   | 13d0718780 | ||
|   | 38693521b3 | ||
|   | 447ddeb6d3 | ||
|   | f11b2e9132 | ||
|   | 9d69b9d173 | ||
|   | 27a44bf9af | ||
|   | b68077d969 | ||
|   | f475c671f7 | ||
|   | 1ab32ca3ba | ||
|   | 8345b839e7 | ||
|   | 259cda150d | ||
|   | 8146c90efa | ||
|   | da3d078917 | ||
|   | 72c79e005a | ||
|   | d252138867 | ||
|   | c20183c547 | ||
|   | cd94abb7fd | ||
|   | f886245e3c | ||
|   | 4f413eec12 | ||
|   | 441bfe74c1 | ||
|   | 071289bc48 | ||
|   | 1ba2381437 | ||
|   | 1e5e576bd0 | ||
|   | 059b8824a2 | ||
|   | d7e6916d8f | ||
|   | c821f76f0f | ||
|   | e5ad1b45bd | ||
|   | 08f011eb33 | ||
|   | 1a6044090a | ||
|   | 697bf590ff | ||
|   | 4073da2431 | ||
|   | fbca43b239 | ||
|   | a03a8bf0d5 | ||
|   | 75d1ed6eea | ||
|   | dd1e604155 | ||
|   | c7f2cab56a | ||
|   | 2bd372dbaa | ||
|   | 45ecc29e12 | ||
|   | 69d068e73f | ||
|   | 0f55211dc9 | ||
|   | dbf09ef361 | ||
|   | e08557e5ae | ||
|   | aaaba5cc84 | ||
|   | 2cfd0242bd | ||
|   | 0711d555e1 | ||
|   | e8363d7310 | ||
|   | be9ce34dc8 | ||
|   | bb60d17ccc | ||
|   | 1aa8062310 | ||
|   | 711027e450 | ||
|   | 8115cc5ecc | ||
|   | 8bae67d9ef | ||
|   | bc3fd61bde | ||
|   | ba1d52d6dd | ||
|   | c02d0fc927 | ||
|   | 56738389f8 | ||
|   | d511679dbd | ||
|   | 6b931de37d | ||
|   | 56e9d85fc2 | ||
|   | 405f890dfc | ||
|   | 1145c26f2b | ||
|   | 3890222bbc | ||
|   | fba9f66a1f | ||
|   | 668387e372 | ||
|   | f85fad447e | ||
|   | 56616b805f | ||
|   | b9729ad763 | ||
|   | a26538c3f0 | ||
|   | a55ec208aa | ||
|   | 1970a00bb6 | ||
|   | 1e2267bd31 | ||
|   | 092a03e2cf | ||
|   | 065661e419 | ||
|   | 72d7dae7fa | ||
|   | 5624022064 | ||
|   | 944d532ad1 | ||
|   | 11727785c7 | ||
|   | 9b04dc0e44 | ||
|   | ca4f786aa8 | ||
|   | 152114b054 | ||
|   | 6aef5ecf4b | ||
|   | 645e7ee95f | ||
|   | 798d0948d1 | ||
|   | 008374748e | ||
|   | 3333ab4ade | ||
|   | f8c2f0f01b | ||
|   | 6dc62cca13 | ||
|   | f3e9f17b85 | ||
|   | ed14f9ada0 | ||
|   | 9250f20559 | ||
|   | 6157fdc007 | ||
|   | 5a97e53e21 | ||
|   | 901cb9eaf6 | ||
|   | 79de744936 | ||
|   | d8a70a3da6 | ||
|   | 813de7eb3c | ||
|   | 410c15c997 | ||
|   | fb9ead2690 | ||
|   | e7c381d651 | ||
|   | dca74d7b11 | ||
|   | 415b31e1b4 | ||
|   | af1a6cf5ff | ||
|   | d79ae8e927 | ||
|   | 49fe7a4b38 | ||
|   | f5374e8ce7 | ||
|   | 0c207ce12d | ||
|   | 3945c2ad52 | ||
|   | bc8f24afad | ||
|   | fd91d1fb06 | ||
|   | 6a81794bba | ||
|   | 6a89b12258 | ||
|   | 219f128cb7 | ||
|   | 89a24442c4 | ||
|   | 62eab175ab | ||
|   | e3af63bd93 | ||
|   | 78454657ca | ||
|   | 7b770e09f7 | ||
|   | 933b25194c | ||
|   | 1cbe452f9c | ||
|   | 920e9b915f | ||
|   | 99e38b1b60 | ||
|   | 2964089483 | ||
|   | 624a99b179 | ||
|   | 705277ceb5 | ||
|   | bf709786f3 | ||
|   | bda7982134 | ||
|   | abb2b36ae6 | ||
|   | 945442a842 | ||
|   | 30b231cfdf | ||
|   | cbdac66fd0 | ||
|   | 257d4dbdad | ||
|   | 69064839a7 | ||
|   | ed6a740eee | ||
|   | d594fa1a54 | ||
|   | 35e4cd4596 | ||
|   | 24319ddc7a | ||
|   | d3e3efd05e | ||
|   | 14cb37725e | ||
|   | fc3bd432ef | ||
|   | b0a5220159 | ||
|   | 9620ac7d25 | ||
|   | 7b1989cef2 | ||
|   | 601d2808a2 | ||
|   | 71b4963ed8 | ||
|   | f124c4844f | ||
|   | 7f9877b3da | ||
|   | 1526dde39d | ||
|   | 7dd6925049 | ||
|   | 6163d3fbed | ||
|   | 630d23141d | ||
|   | 0252006eb1 | ||
|   | 162777bb46 | ||
|   | 0d5b9c2f98 | ||
|   | 5f22ab0361 | ||
|   | b1fd1263f1 | ||
|   | 6226203b0e | ||
|   | 9f31f90146 | ||
|   | 5aaf15f81c | ||
|   | 5ad82a305e | ||
|   | 296e99772a | ||
|   | 1365f41b2d | ||
|   | 13199744ef | ||
|   | 4e937c32b4 | ||
|   | 559d13dfd9 | ||
|   | a94a9291e6 | ||
|   | 6ccaf316ab | ||
|   | 9fff996393 | ||
|   | 3febb340d4 | ||
|   | 5abc08ba9d | ||
|   | 2164e9a5a0 | ||
|   | c87100c0fe | ||
|   | 6a167e99dc | ||
|   | 052672402e | ||
|   | 4d566500e9 | ||
|   | 2dd51d0202 | ||
|   | 862b58c176 | ||
|   | 09b6f16a51 | ||
|   | ffebcee48b | ||
|   | 8c50a84516 | ||
|   | 7c8f87bd78 | ||
|   | ded5274be7 | ||
|   | d03989481b | ||
|   | dac59d3133 | ||
|   | 7a5333ba62 | ||
|   | f8e9fe376b | ||
|   | f9ea7af3ab | ||
|   | 622122562f | ||
|   | 3b96b21683 | ||
|   | 3fc8d01070 | ||
|   | b0603c6c7d | ||
|   | 276f3a5516 | ||
|   | 1859867039 | ||
|   | 8c83eb805b | ||
|   | 2667d2b41c | ||
|   | 1b539f82ac | ||
|   | 876b1b988a | ||
|   | e3bcbc4da9 | ||
|   | 1f9aa96486 | ||
|   | 2d17116119 | ||
|   | b592d02bb7 | ||
|   | 961d1acd51 | ||
|   | 138d22976a | ||
|   | 848507f7e8 | ||
|   | 82fed8abfe | ||
|   | 7941bdc55e | ||
|   | d1e6061541 | ||
|   | 96e55b17b1 | ||
|   | 6dab50cbd8 | ||
|   | 89f24c631c | ||
|   | 5d0a0d352b | ||
|   | 63bc0a9620 | ||
|   | 0791ccbcf5 | ||
|   | d03ab6c79f | ||
|   | 72e2a762da | ||
|   | cd0b1f10cc | ||
|   | a81824a7eb | ||
|   | 589d07ed40 | ||
|   | 9a86f1ebed | ||
|   | 2695995211 | ||
|   | ff8105f809 | ||
|   | 98a05f53d2 | ||
|   | 549b1a2f13 | ||
|   | b50d0cd710 | ||
|   | ff135c034c | ||
|   | eb93b08342 | ||
|   | 048c40c16c | ||
|   | 33b871efa6 | ||
|   | 2010094f83 | ||
|   | 693e201900 | ||
|   | 2333180c50 | ||
|   | 915e9409dc | ||
|   | b6be3226c5 | ||
|   | b83cad36b6 | ||
|   | fb1b9fea09 | ||
|   | 45a387000d | ||
|   | e6b052f8e9 | ||
|   | 6365105515 | ||
|   | 550b664a61 | ||
|   | 510459b046 | ||
|   | adbec47fad | ||
|   | ae24a4ea4c | ||
|   | db67bb0b98 | ||
|   | 857ce1324c | ||
|   | 82d6467cee | ||
|   | 887c792a76 | ||
|   | b3625dffbc | ||
|   | 90cd5dfae7 | ||
|   | 8ce791368c | ||
|   | 05e15ce9ad | ||
|   | 1926c5ec5b | ||
|   | 0bb1d869af | ||
|   | c654ea329c | ||
|   | 68d74a490b | ||
|   | 857aa110c8 | ||
|   | 6ba24eebb0 | ||
|   | 023eb3b0ff | ||
|   | bf361238cb | ||
|   | 42d23e9b37 | ||
|   | e1ddf58119 | ||
|   | 4023fda5b6 | ||
|   | f34f2da9b9 | ||
|   | 050f596429 | ||
|   | de36cfd2eb | ||
|   | b828b8e44a | ||
|   | 15da31d3eb | ||
|   | 6158d81b5e | ||
|   | b714bf4abe | ||
|   | 46ca6262b5 | ||
|   | cfef209cb7 | ||
|   | 654c038eab | ||
|   | a6beb0d2d5 | ||
|   | 515b42cd51 | ||
|   | 6668c47368 | ||
|   | b801fdc14f | ||
|   | 15dcc7b802 | ||
|   | 3ec6d5e905 | ||
|   | 92cd64c8e8 | ||
|   | 955396e575 | ||
|   | 52efadd442 | ||
|   | 09234e65fe | ||
|   | 4d0d601127 | ||
|   | bce3756e83 | ||
|   | 0cf21671a4 | ||
|   | 5d3fbb4bff | ||
|   | 68bbf4182f | ||
|   | eab416c0b4 | ||
|   | c48452b37d | ||
|   | a636a87c2b | ||
|   | ba8e1c5647 | ||
|   | fc30e28e84 | ||
|   | cfca37b09c | ||
|   | 31a3f594f1 | ||
|   | 9c536bd845 | ||
|   | 808612cd10 | ||
|   | f2c3e558cc | ||
|   | 3324154208 | ||
|   | 9c0068d470 | ||
|   | 5079027978 | ||
|   | 04dca2f274 | ||
|   | 168df5d4e2 | ||
|   | 6cf6f0460e | ||
|   | 57d8e0b06f | ||
|   | 55ab90a481 | ||
|   | 0a8fb40bd7 | ||
|   | fb026ec07f | ||
|   | 79697e9030 | ||
|   | 873e05538e | ||
|   | 9dd18a97e8 | ||
|   | 51acb739e9 | ||
|   | 7e2be69749 | ||
|   | 8e0ec47229 | ||
|   | ca4b243daa | ||
|   | 755adb0863 | ||
|   | fc6cd29e84 | ||
|   | ab73c602c3 | ||
|   | 862533fd7f | ||
|   | ffa3bed620 | ||
|   | ba8d56f6ab | ||
|   | 4bfc804d85 | ||
|   | 40981daf33 | ||
|   | 16bcb70863 | ||
|   | b1c72df333 | ||
|   | 39ced581b8 | ||
|   | 18a325cad8 | ||
|   | 7b0e891ab3 | ||
|   | fc243466da | ||
|   | 9738c1896d | ||
|   | d0976cead9 | ||
|   | 2e46d80bce | ||
|   | 283806369a | ||
|   | 500cb23ab9 | ||
|   | 88cabf88b2 | ||
|   | 9dc3d6d8d6 | ||
|   | cb8d8c4173 | ||
|   | 1949c197d6 | ||
|   | 16dab3a2cc | ||
|   | 497a073162 | ||
|   | 22e245ecff | ||
|   | b03433d8a8 | ||
|   | 4f0fca021c | ||
|   | 5aa1ae003e | ||
|   | f29758939c | ||
|   | 3703c2b431 | ||
|   | d289d9a8ff | ||
|   | a083dd048d | ||
|   | f09c30d370 | ||
|   | 9e28d46ee7 | ||
|   | c133482659 | ||
|   | bf71c1aee8 | ||
|   | 4102b44352 | ||
|   | acf2e2fb4a | ||
|   | f9de0b5eb9 | ||
|   | 85083f5979 | ||
|   | 087988dde3 | ||
|   | 2dddb853f2 | ||
|   | a92355181f | ||
|   | 2085f7e128 | ||
|   | de7366e9a9 | ||
|   | 7ab1c1170f | ||
|   | 792770e5e2 | ||
|   | dece42c155 | ||
|   | 1025fad0e6 | ||
|   | 31537687c1 | ||
|   | 9c281511fa | ||
|   | 544375378f | ||
|   | c2574235ea | ||
|   | 0533b8c946 | ||
|   | 5475bd6b5f | ||
|   | 2e4321872a | ||
|   | 515790b1a0 | ||
|   | 35c9ffcdca | ||
|   | 920c8a936f | ||
|   | 6863ba4883 | ||
|   | 2f49413867 | ||
|   | 854560b2f5 | ||
|   | 4a948b8ba2 | ||
|   | 01c0d021b2 | ||
|   | 3e49ef42a2 | ||
|   | efb1775aff | ||
|   | 2a1f1c3cd9 | ||
|   | 3c4ab10b36 | ||
|   | 1c94169182 | ||
|   | 53ab7af8dc | ||
|   | 8d173d369d | ||
|   | 4535687b48 | ||
|   | c415cf5ffb | ||
|   | a95c93cd5b | ||
|   | 62443257fc | ||
|   | 60a8317115 | ||
|   | 73ed384215 | ||
|   | c4a1f7df5f | ||
|   | 8b4eccc064 | ||
|   | 6528a4a60c | ||
|   | 4d690992ac | ||
|   | b83fb05b82 | ||
|   | cf12265cd8 | ||
|   | e4110a6981 | ||
|   | 412908026d | ||
|   | 8a7887cf06 | ||
|   | 779dd003dd | ||
|   | 0b2895dc56 | ||
|   | fed5d08703 | ||
|   | f131f27ac3 | ||
|   | 19dbbdcf4f | ||
|   | d650035980 | ||
|   | fbc803d09f | ||
|   | df4c594d4f | ||
|   | 482445cb98 | ||
|   | 1c002c63a3 | ||
|   | cd366b6087 | ||
|   | 83dc5b7650 | ||
|   | d9675b1bc6 | ||
|   | 036520566c | ||
|   | 8b302749ff | ||
|   | 68b3e2cfee | ||
|   | 9ee6906e4d | ||
|   | be38f51cc7 | ||
|   | aaed21f752 | ||
|   | a1dddd7df8 | ||
|   | f26795ca7a | ||
|   | 7d6bbb3385 | ||
|   | 37f792d9ce | ||
|   | 867c86d702 | ||
|   | 05f8756a12 | ||
|   | c581c35a73 | ||
|   | b37bd5f0ae | ||
|   | 56a01e1e64 | ||
|   | 6aa58bddd8 | ||
|   | 0515f2825a | ||
|   | 0d37e07a0d | ||
|   | ab69b182e6 | ||
|   | 7b84614a79 | ||
|   | 361e536243 | ||
|   | 39fee6e57d | ||
|   | 56a0c6e6bf | ||
|   | eb8993e746 | ||
|   | edeb781600 | ||
|   | 9aa4e308c1 | ||
|   | 05abf41b64 | ||
|   | ac9c43e280 | ||
|   | c05e7f29c5 | ||
|   | 583f3394fc | ||
|   | 5e414ebda8 | ||
|   | 21b1383c9a | ||
|   | 6c9e09ea73 | ||
|   | 195ec4b11e | ||
|   | bf988a7f6e | ||
|   | 25f8028ae3 | ||
|   | 28299744c4 | ||
|   | 72212f8256 | ||
|   | 1610a4ab91 | ||
|   | 87a3d1e5d1 | ||
|   | 2b6d65e955 | ||
|   | cd44d28674 | ||
|   | 2edeb1b3e2 | ||
|   | 9f946d4bc4 | ||
|   | 5266f33af5 | ||
|   | 85c9a1e84d | ||
|   | 5951fe21ec | ||
|   | c6b6638705 | ||
|   | 8ab7be9fb8 | ||
|   | 762fa31c28 | ||
|   | c2678aa91f | ||
|   | d4900eac84 | ||
|   | f9b6e9fa2e | ||
|   | cfb460c137 | ||
|   | f9e6966687 | ||
|   | 913b4297cf | ||
|   | 23c1df72aa | ||
|   | cde42ec3fa | ||
|   | 0104d2fd36 | ||
|   | 85d1f3419a | ||
|   | e45d27b5c7 | ||
|   | a3d94db6eb | ||
|   | ef904c854b | ||
|   | 7a7eb4e553 | ||
|   | c7f549742d | ||
|   | 1850ef70d8 | ||
|   | 0b693a02bd | ||
|   | 508db95cba | ||
|   | bbae0c3ade | ||
|   | 0239f940a0 | ||
|   | 1df0c2b313 | ||
|   | a9d9ace532 | ||
|   | cb83e17710 | ||
|   | 1727df7082 | ||
|   | 3d585a3d02 | ||
|   | 69f822b69c | ||
|   | abfe3b08af | ||
|   | 66a3c46aaf | ||
|   | c914a73352 | ||
|   | 5041ed1564 | ||
|   | 4daaa67710 | ||
|   | dd572b00d0 | ||
|   | 3fef1a6eec | ||
|   | 6d81a29bb6 | ||
|   | 3f1c638a14 | ||
|   | 7caca74d57 | ||
|   | d95aea319e | ||
|   | 9aed09d250 | ||
|   | 3ebcd788fb | ||
|   | 816751f464 | ||
|   | f84ae88aa4 | ||
|   | 315e0400ff | ||
|   | 22cf7f5d4f | ||
|   | 6ec829e47f | ||
|   | a119d75589 | ||
|   | 92028a2492 | ||
|   | 42ef8487c8 | ||
|   | e92e5d1040 | ||
|   | a1950cf27e | ||
|   | 27fb0ffb06 | ||
|   | 6c3439acf9 | ||
|   | 005356ebb3 | ||
|   | f0adabf567 | ||
|   | 739782109e | ||
|   | 87ba018ab8 | ||
|   | 041702615f | ||
|   | 0a82f306f6 | ||
|   | 856e72150c | ||
|   | e2857f8ca5 | ||
|   | 04d9ec9c94 | ||
|   | e984a467ef | ||
|   | 8342a7b8a8 | ||
|   | 269af1930c | ||
|   | b7bb950abc | ||
|   | 4a19458c15 | ||
|   | b6db420465 | ||
|   | 7b234ad41f | ||
|   | 35b0795b51 | ||
|   | 04a7796665 | ||
|   | 755deae717 | ||
|   | 6d66dc9043 | ||
|   | bbd9cd2101 | ||
|   | b6ccde075d | ||
|   | e94b9006e6 | ||
|   | e9c8159bf3 | ||
|   | 919f69ef46 | ||
|   | 4ac2fe27d5 | ||
|   | be2daeb4ab | ||
|   | 7b96ce9b8c | ||
|   | 801188f957 | ||
|   | c546a46847 | ||
|   | 6527d21794 | ||
|   | 7fad722927 | ||
|   | ab249eb95f | ||
|   | bdbd215aad | ||
|   | 68212a36bb | ||
|   | ac3691dc08 | ||
|   | 3a6aab67d5 | ||
|   | 2c5b3f4da3 | ||
|   | 73eca63c4f | ||
|   | c504588993 | ||
|   | 5b14c6d4d4 | ||
|   | 4685c7b868 | ||
|   | 0e185c8bcf | ||
|   | e230949edd | ||
|   | a897b5e98c | ||
|   | 186d3dbd38 | ||
|   | 127c04070b | ||
|   | 6ff65050f5 | ||
|   | d605ef4b28 | ||
|   | 9466b7ce75 | ||
|   | 7f6eff666e | ||
|   | e878b4df48 | ||
|   | 2c3c1529a7 | ||
|   | ecce524c7b | ||
|   | 5af617b869 | ||
|   | 3f886c9f7c | ||
|   | d50fb7a291 | ||
|   | 37502c5562 | ||
|   | 7620ec896b | ||
|   | 8a87186833 | ||
|   | b0f8013762 | ||
|   | 3a6a1c448a | ||
|   | 2cd9f80b34 | ||
|   | d88de8e072 | ||
|   | 6e6ce55a7b | ||
|   | 26b88d9d42 | ||
|   | 27e490912b | ||
|   | fe8b0cd944 | ||
|   | 61bc3a616a | ||
|   | 430351aee3 | ||
|   | eecdcfbabe | ||
|   | 97776d8f01 | ||
|   | 48e864dead | ||
|   | 91c3b343e7 | ||
|   | b62ce7ec6f | ||
|   | 7890eb14d1 | ||
|   | 15961f0c17 | ||
|   | c8c1ba5682 | ||
|   | 603c2175e3 | ||
|   | 45aa2c2f23 | ||
|   | 45f988c420 | ||
|   | 55e8507cac | ||
|   | ec6584555f | ||
|   | 649facc5ab | ||
|   | 57c2547098 | ||
|   | 4fa32e79ce | ||
|   | f393e525a6 | ||
|   | 45b61e5f78 | ||
|   | 0219cc7a1f | ||
|   | b212e9fb0f | ||
|   | ecef4de2d2 | ||
|   | e69ff12966 | ||
|   | 6f10ee1965 | ||
|   | d9bd1f6e99 | ||
|   | 35c8b65be7 | ||
|   | 753fb60e75 | ||
|   | 45e390c9d4 | ||
|   | 7df5d18105 | ||
|   | 0bc43d38e3 | ||
|   | 94dd462b71 | ||
|   | 266a1704ed | ||
|   | 2bf41655cb | 
							
								
								
									
										19
									
								
								.editorconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,19 @@ | ||||
| # EditorConfig is awesome: https://EditorConfig.org | ||||
|  | ||||
| # top-most EditorConfig file | ||||
| root = true | ||||
|  | ||||
| # with a newline ending every file | ||||
| [*] | ||||
| indent_style = tab | ||||
| indent_size = 4 | ||||
| insert_final_newline = true | ||||
|  | ||||
| [*.md] | ||||
| trim_trailing_whitespace = false | ||||
|  | ||||
| [{composer.json,package.json}] | ||||
| indent_style = space | ||||
|  | ||||
| [{package.json, *.yml}] | ||||
| indent_size = 2 | ||||
							
								
								
									
										13
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,13 @@ | ||||
| * text=auto | ||||
| .gitattributes export-ignore | ||||
| .gitignore export-ignore | ||||
| .github export-ignore | ||||
| .editorconfig export-ignore | ||||
| _config.yml export-ignore | ||||
| release.sh export-ignore | ||||
|  | ||||
| # cypress | ||||
| cypress export-ignore | ||||
| cypress.config.js export-ignore | ||||
|  | ||||
| *.sh text eol=lf | ||||
							
								
								
									
										12
									
								
								.github/FUNDING.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,12 @@ | ||||
| # These are supported funding model platforms | ||||
|  | ||||
| github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||||
| patreon: # Replace with a single Patreon username | ||||
| open_collective: # Replace with a single Open Collective username | ||||
| ko_fi: # Replace with a single Ko-fi username | ||||
| tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||||
| community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||||
| liberapay: # Replace with a single Liberapay username | ||||
| issuehunt: # Replace with a single IssueHunt username | ||||
| otechie: # Replace with a single Otechie username | ||||
| custom: paypal.me/slawkens # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] | ||||
							
								
								
									
										29
									
								
								.github/ISSUE_TEMPLATE.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,29 @@ | ||||
| <!-- | ||||
| Please use this issue tracker only for reporting MyAAC bugs. | ||||
|  | ||||
| If you need support, please use the discord server: | ||||
|  | ||||
| - https://discord.gg/2J39Wus (we have an own channel named #my-aac there) | ||||
|  | ||||
| or use otland support boards: | ||||
|  | ||||
| - https://otland.net/forums/support.16/ | ||||
|  | ||||
| --> | ||||
|  | ||||
| ### Server configuration | ||||
| - Operating System:  | ||||
| - Web Server (+ version):  | ||||
| - PHP Version:  | ||||
| - Server name and version (for example: TFS 0.3):  | ||||
| - MyAAC Version:  | ||||
|  | ||||
| ### Client configuration (Your Computer) | ||||
|  | ||||
| - Browser:  | ||||
| - Operating System:  | ||||
|  | ||||
| ### Description: | ||||
|  | ||||
|  | ||||
| ### Steps To Reproduce: | ||||
							
								
								
									
										162
									
								
								.github/workflows/cypress.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,162 @@ | ||||
| name: Cypress | ||||
| on: | ||||
|   pull_request: | ||||
|     branches: [develop] | ||||
|   push: | ||||
|     branches: [develop] | ||||
|  | ||||
| jobs: | ||||
|   cypress: | ||||
|     runs-on: ubuntu-latest | ||||
|     services: | ||||
|       mysql: | ||||
|         image: mysql:8.0 | ||||
|         env: | ||||
|           MYSQL_ROOT_PASSWORD: root | ||||
|           MYSQL_DATABASE: myaac | ||||
|           MYSQL_USER: myaac | ||||
|           MYSQL_PASSWORD: myaac | ||||
|         ports: | ||||
|           - 3306/tcp | ||||
|         options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         php-versions: [ '8.1', '8.2', '8.3' ] | ||||
|         ots: ['tfs-1.4', 'canary-3.1.2'] # TODO: add 'tfs-master' (actually doesn't work cause AAC doesn't support reading .env configuration) | ||||
|     name: Cypress (PHP ${{ matrix.php-versions }}, ${{ matrix.ots }}) | ||||
|     steps: | ||||
|         - name: 📌 MySQL Start & init & show db | ||||
|           run: | | ||||
|             sudo /etc/init.d/mysql start | ||||
|             mysql -e 'CREATE DATABASE myaac;' -uroot -proot | ||||
|             mysql -e "SHOW DATABASES" -uroot -proot | ||||
|  | ||||
|         - name: Checkout MyAAC | ||||
|           uses: actions/checkout@v4 | ||||
|           with: | ||||
|             ref: develop | ||||
|  | ||||
|         - uses: actions/setup-node@v4 | ||||
|           with: | ||||
|             node-version: 18 | ||||
|         - run: npm ci | ||||
|  | ||||
|         - name: Checkout TFS | ||||
|           uses: actions/checkout@v4 | ||||
|           if: matrix.ots == 'tfs-1.4' | ||||
|           with: | ||||
|             repository: otland/forgottenserver | ||||
|             ref: 1.4 | ||||
|             path: ots | ||||
|  | ||||
|         - name: Checkout TFS | ||||
|           uses: actions/checkout@v4 | ||||
|           if: matrix.ots == 'tfs-master' | ||||
|           with: | ||||
|             repository: otland/forgottenserver | ||||
|             ref: master | ||||
|             path: ots | ||||
|  | ||||
|         - name: Checkout Canary | ||||
|           uses: actions/checkout@v4 | ||||
|           if: matrix.ots == 'canary-3.1.2' | ||||
|           with: | ||||
|             repository: opentibiabr/canary | ||||
|             ref: v3.1.2 | ||||
|             path: ots | ||||
|  | ||||
|         - name: Import OTS Schema | ||||
|           run: | | ||||
|               mysql -uroot -proot myaac < ots/schema.sql | ||||
|  | ||||
|         - name: Rename config.lua | ||||
|           run: mv ots/config.lua.dist ots/config.lua | ||||
|  | ||||
|         - name: Replace mysqlUser (TFS 1.4) | ||||
|           uses: jacobtomlinson/gha-find-replace@v3 | ||||
|           if: matrix.ots == 'tfs-1.4' | ||||
|           with: | ||||
|             find: 'mysqlUser = "forgottenserver"' | ||||
|             replace: 'mysqlUser = "root"' | ||||
|             regex: false | ||||
|             include: 'ots/config.lua' | ||||
|  | ||||
|         - name: Replace mysqlPass (TFS 1.4) | ||||
|           uses: jacobtomlinson/gha-find-replace@v3 | ||||
|           if: matrix.ots == 'tfs-1.4' | ||||
|           with: | ||||
|               find: 'mysqlPass = ""' | ||||
|               replace: 'mysqlPass = "root"' | ||||
|               regex: false | ||||
|               include: 'ots/config.lua' | ||||
|  | ||||
|         - name: Replace mysqlDatabase (TFS 1.4) | ||||
|           uses: jacobtomlinson/gha-find-replace@v3 | ||||
|           if: matrix.ots == 'tfs-1.4' | ||||
|           with: | ||||
|               find: 'mysqlDatabase = "forgottenserver"' | ||||
|               replace: 'mysqlDatabase = "myaac"' | ||||
|               regex: false | ||||
|               include: 'ots/config.lua' | ||||
|  | ||||
|         - name: Replace mysqlDatabase (Canary) | ||||
|           uses: jacobtomlinson/gha-find-replace@v3 | ||||
|           if: matrix.ots == 'canary-3.1.2' | ||||
|           with: | ||||
|               find: 'mysqlDatabase = "otservbr-global"' | ||||
|               replace: 'mysqlDatabase = "myaac"' | ||||
|               regex: false | ||||
|               include: 'ots/config.lua' | ||||
|  | ||||
|         - name: Setup PHP | ||||
|           uses: shivammathur/setup-php@v2 | ||||
|           with: | ||||
|             php-version: ${{ matrix.php-versions }} | ||||
|             extensions: mbstring, dom, fileinfo, mysql, json, xml, pdo, pdo_mysql | ||||
|  | ||||
|         - name: Get composer cache directory | ||||
|           id: composer-cache | ||||
|           run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||||
|  | ||||
|         - name: Cache composer dependencies | ||||
|           uses: actions/cache@v4 | ||||
|           with: | ||||
|             path: ${{ steps.composer-cache.outputs.dir }} | ||||
|             # Use composer.json for key, if composer.lock is not committed. | ||||
|             key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||||
|             #key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||||
|             restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||||
|  | ||||
|         - name: Install Composer dependencies | ||||
|           run: composer install --no-progress --prefer-dist --optimize-autoloader | ||||
|  | ||||
|         - name: Run PHP server | ||||
|           run: nohup php -S localhost:8080 > php.log 2>&1 & | ||||
|  | ||||
|         - name: Cypress Run | ||||
|           uses: cypress-io/github-action@v6 | ||||
|           env: | ||||
|             CYPRESS_URL: http://localhost:8080 | ||||
|             CYPRESS_SERVER_PATH: /home/runner/work/myaac/myaac/ots | ||||
|  | ||||
|         - name: Save screenshots | ||||
|           uses: actions/upload-artifact@v4 | ||||
|           if: always() | ||||
|           with: | ||||
|             name: cypress-screenshots-${{ matrix.php-versions }}-${{ matrix.ots }} | ||||
|             path: cypress/screenshots | ||||
|  | ||||
|         - name: Upload Cypress Videos | ||||
|           uses: actions/upload-artifact@v4 | ||||
|           if: always() | ||||
|           with: | ||||
|             name: cypress-videos-${{ matrix.php-versions }}-${{ matrix.ots }} | ||||
|             path: cypress/videos | ||||
|  | ||||
|         - name: Upload PHP Logs | ||||
|           uses: actions/upload-artifact@v4 | ||||
|           if: always() | ||||
|           with: | ||||
|             name: php-log-${{ matrix.php-versions }}-${{ matrix.ots }} | ||||
|             path: php.log | ||||
							
								
								
									
										16
									
								
								.github/workflows/phplint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | ||||
| name: PHP Linting | ||||
| on: | ||||
|   pull_request: | ||||
|     branches: [develop] | ||||
|   push: | ||||
|     branches: [develop] | ||||
|  | ||||
| jobs: | ||||
|   phplint: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: overtrue/phplint@8.2 | ||||
|         with: | ||||
|           path: . | ||||
|           options: --exclude=*.log | ||||
							
								
								
									
										47
									
								
								.github/workflows/phpstan.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,47 @@ | ||||
| name: "PHPStan" | ||||
|  | ||||
| on: | ||||
|   pull_request: | ||||
|     branches: [develop] | ||||
|   push: | ||||
|     branches: [develop] | ||||
|  | ||||
| jobs: | ||||
|   tests: | ||||
|     name: PhpStan on PHP ${{ matrix.php-versions }} | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         php-versions: [ '8.1', '8.2', '8.3' ] | ||||
|     steps: | ||||
|       - name: "Checkout" | ||||
|         uses: "actions/checkout@v4" | ||||
|  | ||||
|       - name: "Install PHP" | ||||
|         uses: "shivammathur/setup-php@v2" | ||||
|         with: | ||||
|           coverage: "none" | ||||
|           extensions: "intl, zip" | ||||
|           ini-values: "memory_limit=-1" | ||||
|           php-version: "${{ matrix.php-version }}" | ||||
|  | ||||
|       - name: Get composer cache directory | ||||
|         id: composer-cache | ||||
|         run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||||
|  | ||||
|       - name: Cache composer dependencies | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: ${{ steps.composer-cache.outputs.dir }} | ||||
|           # Use composer.json for key, if composer.lock is not committed. | ||||
|           key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||||
|           #key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||||
|           restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||||
|  | ||||
|       - name: "Install composer dependencies" | ||||
|         run: "composer install" | ||||
|  | ||||
|       - name: "Run PHPStan" | ||||
|         run: "/usr/bin/php vendor/bin/phpstan analyse" | ||||
							
								
								
									
										81
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,81 @@ | ||||
| Thumbs.db | ||||
| .DS_Store | ||||
| .idea | ||||
|  | ||||
| # | ||||
| /.htaccess | ||||
|  | ||||
| # composer | ||||
| composer.phar | ||||
| composer.lock | ||||
| vendor | ||||
|  | ||||
| # npm | ||||
| node_modules | ||||
| tools/ext | ||||
|  | ||||
| # cypress | ||||
| cypress.env.json | ||||
| cypress/e2e/2-advanced-examples | ||||
| cypress/screenshots | ||||
|  | ||||
| # created by release.sh | ||||
| releases | ||||
| tmp | ||||
|  | ||||
| config.local.php | ||||
|  | ||||
| # all custom templates | ||||
| templates/* | ||||
| !templates/tibiacom | ||||
| !templates/kathrine | ||||
|  | ||||
| # guild images | ||||
| images/guilds/* | ||||
| !images/guilds/default.gif | ||||
|  | ||||
| # editor images | ||||
| images/editor/* | ||||
| !images/editor/index.html | ||||
|  | ||||
| # gallery images | ||||
| images/gallery/* | ||||
| !images/gallery/index.html | ||||
| !images/gallery/demon.jpg | ||||
| !images/gallery/demon_thumb.gif | ||||
|  | ||||
| # cache | ||||
| system/cache/* | ||||
| !system/cache/index.html | ||||
| !system/cache/twig/index.html | ||||
| !system/cache/signatures/index.html | ||||
| !system/cache/plugins/index.html | ||||
| !system/cache/persistent/index.html | ||||
|  | ||||
| # logs | ||||
| system/logs/* | ||||
| !system/logs/index.html | ||||
|  | ||||
| # data | ||||
| system/data/* | ||||
| !system/data/index.html | ||||
|  | ||||
| # php sessions | ||||
| system/php_sessions/* | ||||
| !system/php_sessions/index.html | ||||
|  | ||||
| # plugins | ||||
| plugins/* | ||||
| !plugins/.htaccess | ||||
| !plugins/example.json | ||||
| !plugins/account-create-hint.json | ||||
| !plugins/account-create-hint | ||||
| !plugins/email-confirmed-reward.json | ||||
| !plugins/email-confirmed-reward | ||||
| landing | ||||
|  | ||||
| # system | ||||
| system/functions_custom.php | ||||
|  | ||||
| # others/rest | ||||
| system/pages/downloads.php | ||||
| @@ -1,33 +1,21 @@ | ||||
| Options -Indexes -MultiViews | ||||
| <IfModule mod_autoindex.c> | ||||
| 	Options -Indexes | ||||
| </IfModule> | ||||
|  | ||||
| <IfModule mod_negotiation.c> | ||||
| 	Options -MultiViews | ||||
| </IfModule> | ||||
|  | ||||
| <FilesMatch "^(CHANGELOG\.md|README\.md|composer\.json|composer\.lock|package\.json|package-lock\.json|cypress\.env\.json)$"> | ||||
| 	Require all denied | ||||
| </FilesMatch> | ||||
|  | ||||
| <IfModule mod_rewrite.c> | ||||
| 	RewriteEngine On | ||||
| #RewriteBase / | ||||
|  | ||||
| # Page parser | ||||
| 	#RewriteBase /myaac/ | ||||
|  | ||||
| 	RewriteCond %{REQUEST_FILENAME} !-f | ||||
| 	RewriteCond %{REQUEST_FILENAME} !-d | ||||
| RewriteRule ^([A-Za-z0-9-_+']+)\.png/?$ tools/signature/index.php?name=$1 [L] | ||||
| RewriteRule ^characters/([A-Za-z0-9-_+']+)$ index.php?subtopic=characters&name=$1 | ||||
| RewriteRule ^guilds/([A-Za-z0-9-_+']+)$ index.php?subtopic=guilds&action=show&guild=$1 | ||||
| RewriteRule ^forum/board/([0-9]+)$ index.php?subtopic=forum&action=show_board&id=$1 | ||||
| RewriteRule ^forum/board/([0-9]+)/([0-9]+)$ index.php?subtopic=forum&action=show_board&id=$1&page=$2 | ||||
| RewriteRule ^forum/thread/([0-9]+)$ index.php?subtopic=forum&action=show_thread&id=$1 | ||||
| RewriteRule ^forum/thread/([0-9]+)/([0-9]+)$ index.php?subtopic=forum&action=show_thread&id=$1&page=$2 | ||||
| RewriteRule ^forum/board/([0-9]+)/([0-9]+)$ index.php?subtopic=forum&action=show_thread&id=$1&page=$2 | ||||
| RewriteRule ^account/manage$ index.php?subtopic=accountmanagement | ||||
| RewriteRule ^account/create$ index.php?subtopic=createaccount | ||||
| RewriteRule ^account/lost$ index.php?subtopic=lostaccount | ||||
| RewriteRule ^account/logout$ index.php?subtopic=accountmanagement&action=logout | ||||
| RewriteRule ^news/archive/([0-9]+)$ index.php?subtopic=newsarchive&id=$1 | ||||
| RewriteRule ^news/archive$ index.php?subtopic=newsarchive | ||||
| RewriteRule ^highscores/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)?$ index.php?subtopic=highscores&list=$1&vocation=$2 | ||||
| RewriteRule ^highscores/([A-Za-z0-9-_']+)$ index.php?subtopic=highscores&list=$1 | ||||
| RewriteRule ^polls/([0-9]+)$ index.php?subtopic=polls&id=$1 | ||||
| RewriteRule ^admin/$ admin/index.php | ||||
| RewriteRule ^install/$ install/index.php | ||||
|  | ||||
| # temp solution >.> | ||||
| RewriteCond %{REQUEST_FILENAME} !-f | ||||
| RewriteCond %{REQUEST_FILENAME} !-d | ||||
| RewriteRule ^([A-Za-z0-9-_]+)/?$ index.php?p=$1  [L] | ||||
| RewriteRule ^([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)?$ index.php?p=$1&action=$2  [L] | ||||
| 	RewriteRule ^.*$ index.php [L] | ||||
| </IfModule> | ||||
|   | ||||
							
								
								
									
										116
									
								
								CHANGELOG
									
									
									
									
									
								
							
							
						
						| @@ -1,116 +0,0 @@ | ||||
| [0.2.1 - 21.05.2017] | ||||
| 	- added Swedish translation by Sizaro | ||||
| 	- fixed some bugs with installlation & characters & houses | ||||
|  | ||||
| [0.2.0 - 21.05.2017] | ||||
| 	- added option to change character sex for premium points | ||||
| 	- moved site_closed to database, now you can close your site through admin panel | ||||
| 	- added option to admin panel: clear cache | ||||
| 	- added experiencetable_rows configurable | ||||
| 	- optimized OTS_Account->getGroupId(), now its using like 20 queries less | ||||
| 	- optimized OTS_Player->load($id) function, should be much faster now | ||||
| 	- fixed displaying on highscores special outfits | ||||
| 	- fixed skull images displaying | ||||
| 	- fixed displaying unlimited premium account | ||||
| 	- fixed bug where players.lookaddons doesn't exist (OTHire etc.) (https://otland.net/threads/myaac-v0-0-1.251454/page-6#post-2442407) | ||||
| 	- fixed signature tibian for OTHire and other servers that doesnt use accounts.premdays field | ||||
| 	- fixed when player name in signature containst space | ||||
| 	- don't show "Create forum thread" when editing | ||||
| 	- fixed red color table after create account | ||||
| 	- updated download links, as clients.halfaway.net isn't working anymore | ||||
| 	- fixed some bugs while installing when field `email_next` or `hidden` already exist | ||||
| 	- fixed movies unexpected comment | ||||
| 	- added template_place_holder('center_top') to kathrine template | ||||
|  | ||||
| [0.1.5 - 13.05.2017] | ||||
| 	- fixed bug with "Integrity constraint violation: 1048 Column 'ip' cannot be null" | ||||
|  | ||||
| [0.1.4 - 13.05.2017] | ||||
| 	- added outfit shower, in characters, online, and highscores | ||||
| 	- updated database to version 2 | ||||
| 	- fixed item images (now using item-images.ots.me host by default) | ||||
| 	- fixed news ticket and posting long newses (https://otland.net/threads/myaac-v0-0-1.251454/page-5#post-2442026) | ||||
| 	- news body limit increased to 65535 (mysql text field) | ||||
| 	- removed some unused code from my old server | ||||
| 	- added spells & monsters to kathrine template | ||||
|  | ||||
| [0.1.3 - 11.05.2017] | ||||
| 	- this is just release to update version number | ||||
|  | ||||
| [0.1.2 - 11.05.2017] | ||||
| 	- forgot to update CHANGELOG and MYAAC_VERSION | ||||
|  | ||||
| [0.1.1 - 11.05.2017] | ||||
| 	- fixed updating myaac_config with database_version to 1 | ||||
| 	- fixed database updater | ||||
|  | ||||
| [0.1.0 - 11.05.2017] | ||||
| 	- added new feature: change character name for premium points (disabled by default, you can enable it in config under account_change_character_name in config.php) | ||||
| 	- added automatic database updater (data migrations) | ||||
| 	- renamed events to hooks | ||||
| 	- moved hooks to database | ||||
| 	- now you can use hooks in plugins | ||||
| 	- set account.type field to 5 on install, if TFS 1.0+ | ||||
| 	- added example plugin | ||||
| 	- new, latest google analytics code | ||||
| 	- fixed bug with loading account.name that has numbers in it | ||||
| 	- fixed many bugs in player editor in admin panel | ||||
| 	- added error handling to plugin manager and some more verification in | ||||
| 	- file has been correctly unpacked/uploaded | ||||
| 	- fixed Statistics page in admin panel when using account.number | ||||
| 	- fixed bug when creating/recovering account on servers with | ||||
| 	- account.salt field (TFS 0.3 for example) | ||||
| 	- fixed forum showing thread with html tags (added from news manager) | ||||
| 	- new, latest code for youtube videos in movies page | ||||
| 	- fixed showing vocation images when using $config['online_vocations_images'] | ||||
| 	- many fixes in polls (also importing proper schema) | ||||
| 	- fixed hovering on buttons in kathrine template (on accountmanagement page) | ||||
| 	- fixed signatures (many fixes) | ||||
| 	- added missing gesior signature system | ||||
|  | ||||
| [0.0.6 - 06.05.2017] | ||||
| 	- fixed bug while installing (https://otland.net/threads/myaac-v0-0-1.251454/page-3#post-2440543) | ||||
| 	- fixed bug when creating character (not showing errors) (one more time) | ||||
| 	- fixed support for TFS 0.2 series | ||||
| 	- added FAQ link | ||||
| 	 | ||||
| [0.0.5 - 05.05.2017] | ||||
| 	- fixed bug when creating character (not showing errors) | ||||
| 	- Fixed characters loading with names that has been created with other AAC | ||||
| 	- fixed links to shop in default template | ||||
| 	- fixed some weird PHP 7.1 warnings/notices | ||||
| 	- Fixed config loading with some weird comments | ||||
| 	- fixed bug with status info utf8 encoding (https://otland.net/threads/myaac-v0-0-1.251454/page-2#post-2440259) | ||||
| 	- fixed when ip in log_action is NULL (https://otland.net/threads/myaac-v0-0-1.251454/page-2#post-2440357) | ||||
| 	- fixed bug when guild doesn't exist on characters page (https://otland.net/threads/myaac-v0-0-1.251454/page-2#post-2440320) | ||||
| 	- disabled friendly_urls by default | ||||
| 	- fixes when $config['database_*'] is set | ||||
| 	- added CHANGELOG | ||||
|  | ||||
| [0.0.3 - 03.05.2017] | ||||
| 	- Full support for OTHire 0.0.3 | ||||
| 	- added support for otservers that doesn't use account.name field, instead just account number will be used | ||||
| 	- fixed encryption detection on TFS 0.3 | ||||
| 	- fixed bug when server_config table doesn't exist | ||||
| 	- (install) moved admin account creation to new step | ||||
| 	- fixed news comment link | ||||
| 	- by default, the installer creates now the Admin player, for admin account | ||||
| 	- fixed installation errors | ||||
| 	- fixed config.lua loading with some weird comments | ||||
|  | ||||
| [0.0.2 - 02.05.2017] | ||||
| 	- updated forum links to use friendly_urls | ||||
| 	- some more info will be shown when cannot connect to database | ||||
| 	- show more error infos when creating character | ||||
| 	- fixed forum link on newses | ||||
| 	- fixed spells loading when there's vocation name instead of id | ||||
| 	- fixed bug when you have changed template but it doesn't exist anymore | ||||
| 	- fixed vocations with promotion loading | ||||
| 	- fixed support for gesior pages and templates | ||||
| 	- added function OTS_Acount:getGroupId() | ||||
|  | ||||
| [0.0.1 - 01.05.2017] | ||||
| 	This is first official release of MyAAC. | ||||
| 	Features are listed here | ||||
|  | ||||
| 	For more information, see the release announcement on OTLand: https://otland.net/threads/myaac-v0-0-1.251454/ | ||||
							
								
								
									
										67
									
								
								CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,67 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## [1.0-beta - 02.02.2024] | ||||
|  | ||||
| Minimum PHP version for this release is 8.1. | ||||
|  | ||||
| ### Added | ||||
| * reworked Admin Panel (@Leesneaks, @gpedro, @slawkens) | ||||
|   * updated to Bootstrap v4 | ||||
|   * new Menu | ||||
|   * new Dashboard: statistics, server status | ||||
|   * new Admin Bar showed on top when admin logged in | ||||
|   * new page: Server Data, to reload server data | ||||
|     * Towns, NPCs & Items are stored in permanent cache | ||||
|   * new pages: mass account & teleport tools | ||||
|   * changelogs editor | ||||
|   * revised Accounts & Players editors | ||||
|   * option to add/modify admin menus with plugins | ||||
|   * option to enable/disable plugins | ||||
|   * better, updated TinyMCE editor (v6.x) | ||||
|     * with option to upload images | ||||
|   * list of open source libraries used in project page | ||||
| * auto-loading of themes, commands & pages from plugins/ folder. You need just to place them in correct folder and they will be loaded automatically - this allows better customization, without interfering with core AAC folders. This will allow in the future automatic updates for plugins as well the AAC as whole. | ||||
| * config.php moved to Admin Panel -> Settings page | ||||
| * new console script: aac (comes from MyAAC) - using symfony/console | ||||
|   * usage: `php aac` (will list all commands by default) | ||||
|   * example: `php aac cache:clear` | ||||
|   * example: `php aac plugin:install theme-example.zip` | ||||
| * replace POT Query Builder to Eloquent ORM. Not 100% yet - in some places there is still old $db approach used (@gpedro) (https://github.com/slawkens/myaac/pull/230) | ||||
| * brand new charming installation page (by @fernandomatos) | ||||
|   * using Bootstrap | ||||
| * new pages router: nikic/fast-route, allowing for better customisation | ||||
| * Plugin cronjobs: central control of the cronjobs | ||||
| * Guild Wars support (available as plugin) | ||||
| * support for login and create account only by email (configurable) | ||||
|   * with no need for account name | ||||
| * Google ReCAPTCHA v3 support (available as plugin) | ||||
| * automatically load towns names from .OTBM file | ||||
| * support for Account Number | ||||
|   * suggest account number option | ||||
| * many new functions, hooks and configurables | ||||
| * better Exception Handler (Whoops - https://github.com/filp/whoops) | ||||
| * automated website tests (using Cypress) | ||||
| * csrf protection (https://github.com/slawkens/myaac/pull/235) | ||||
| * option to restrict Page view to specified group of users (Not-Logged in, logged-in players, tutors, gamemasters etc.) | ||||
| * phpdebug bar (http://phpdebugbar.com/). Activated if env == 'dev', can be also activated in production by enabling "enable_debugbar" in local config | ||||
|  | ||||
| ### Changed | ||||
| * Composer is now used for external libraries like: Twig, PHPMailer, fast-route etc. | ||||
| * mail support is disabled on fresh install, can be manually enabled by user | ||||
| * disable add php pages in admin panel for security. Option to disable plugins upload | ||||
| * visitors counter shows now user browser, and also if its bot | ||||
| * changes in required and optional PHP extensions | ||||
| * reworked Pages: | ||||
| 	* Bans | ||||
| 		* works now for TFS 1.x | ||||
| 	* Highscores | ||||
| 		* frags works for TFS 1.x | ||||
| 		* cached | ||||
| 	* Monsters | ||||
| * moved pages to Twig: | ||||
|   * experience stages | ||||
| * update player_deaths entries on name change | ||||
| * change_password email to be more informal | ||||
|  | ||||
| ### Fixed | ||||
| * hundrets of bug fixes, mostly patched from 0.8, so it makes no sense writing them again here | ||||
							
								
								
									
										18
									
								
								CONTRIBUTORS.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,18 @@ | ||||
| # automatically exported using this script: | ||||
| # git log --all --format='%cN <%cE>' | sort -u > contributors | ||||
| # in no particular order | ||||
| # cleaned for readability | ||||
|  | ||||
| Evil Puncker <EPuncker@users.noreply.github.com> | ||||
| Fernando Matos <fernando@pixele.com.br> | ||||
| Lee <42119604+Leesneaks@users.noreply.github.com> | ||||
| caio <caio.zucoli@gmail.com> | ||||
| slawkens <slawkens@gmail.com> | ||||
| tobi132 <tobi132@gmx.net> | ||||
| vankk <nwtr.otland@hotmail.com> | ||||
| whiteblXK <krzys16001@gmail.com> | ||||
| xitobuh <jonas.hockert92@gmail.com> | ||||
| Danilo Pucci <dnlps@hotmail.com> | ||||
| gpedro <gpedro831@gmail.com> | ||||
| Matheus Collier <matheuscollier@gmail.com> | ||||
| SRNT-GG <95472530+SRNT-GG@users.noreply.github.com> | ||||
							
								
								
									
										3
									
								
								CREDITS
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,3 @@ | ||||
| * Gesior.pl (2007 - 2008) | ||||
| * Slawkens (2009 - 2023) | ||||
| * Contributors listed in CONTRIBUTORS.txt | ||||
							
								
								
									
										80
									
								
								README.md
									
									
									
									
									
								
							
							
						
						| @@ -1,18 +1,31 @@ | ||||
| # myaac | ||||
| # [MyAAC](https://my-aac.org) | ||||
|  | ||||
| MyAAC is a free and open-source Automatic Account Creator (AAC) written in PHP. It is a fork of the [Gesior](https://github.com/gesior/Gesior2012) project. It supports only MySQL databases. | ||||
|  | ||||
| Official website: http://my-aac.org | ||||
| Official website: https://my-aac.org | ||||
|  | ||||
| ### REQUIREMENTS | ||||
| [](https://github.com/slawkens/myaac/actions) | ||||
| [](https://opensource.org/licenses/gpl-license) | ||||
| [](https://github.com/slawkens/myaac/releases) | ||||
| [](https://discord.gg/2J39Wus) | ||||
| [](https://github.com/slawkens/myaac/issues?q=is%3Aissue+is%3Aclosed) | ||||
|  | ||||
| | Version | Status                 | Branch  | Requirements   | | ||||
| |:--------|:-----------------------|:--------|:---------------| | ||||
| | **1.x** | **Active development** | develop | **PHP >= 8.1** | | ||||
| | 0.9.x   | Not developed anymore  | 0.9     | PHP >= 7.2.5   | | ||||
| | 0.8.x   | Active support         | master  | PHP >= 7.2.5   | | ||||
| | 0.7.x   | End Of Life            | 0.7     | PHP >= 5.3.3   | | ||||
|  | ||||
| ### Requirements | ||||
|  | ||||
| 	- PHP 5.1.0 or later | ||||
| 	- MySQL database | ||||
| 	- PDO PHP Extension | ||||
| 	- XML PHP Extension | ||||
| 	- ZIP PHP Extension | ||||
| 	- (optional) mod_rewrite to use friendly_urls | ||||
| 	- PHP Extensions: pdo, xml, json | ||||
| 	- (optional) apache2 mod_rewrite (to use friendly_urls) | ||||
| 	- (optional) zip PHP Extension (to install plugins) | ||||
| 	- (optional) gd PHP Extension (for generating signature images) | ||||
|  | ||||
| ### INSTALLATION AND CONFIGURATION | ||||
| ### Installation | ||||
|  | ||||
| 	Just decompress and untar the source (which you should have done by now, | ||||
| 	if you're reading this), into your webserver's document root. | ||||
| @@ -27,19 +40,52 @@ Official website: http://my-aac.org | ||||
| 			chmod 660 config.local.php | ||||
| 			chmod 660 images/guilds | ||||
| 			chmod 660 images/houses | ||||
| 			chmod 660 images/screenshots | ||||
| 			chmod 660 images/gallery | ||||
| 			chmod -R 760 system/cache | ||||
|  | ||||
| 	Visit http://your_domain/install (http://localhost/install) and follow instructions in the browser. | ||||
|  | ||||
| ### KNOWN PROBLEMS | ||||
| ### Configuration | ||||
|  | ||||
| 	- none - | ||||
| Check *config.php* to get more informations. (Notice: MyAAC 1.0+ doesn't use config.php anymore, it has been moved to Admin Panel - Settings page). | ||||
|  | ||||
| ### OTHER NOTES | ||||
| Use *config.local.php* for your local configuration changes. | ||||
|  | ||||
| 	If you have a great idea or want contribute to the project - visit our website at http://www.my-aac.org | ||||
| ### Branches | ||||
|  | ||||
| ### LICENSING | ||||
| This repository follows the Git Flow Workflow. | ||||
| Cheatsheet: [Git-Flow-Cheetsheet](https://danielkummer.github.io/git-flow-cheatsheet) | ||||
|  | ||||
| 	This program and all associated files are released under the GNU Public | ||||
| 	License, see LICENSE for details. | ||||
| That means, we use: | ||||
| * master branch, for current stable release | ||||
| * develop branch, for development version (next release) | ||||
| * feature branches, for features etc. | ||||
|  | ||||
| ### Known Problems | ||||
|  | ||||
| - Some compatibility issues with some exotical distibutions. | ||||
|  | ||||
| ### Contributing | ||||
|  | ||||
| Contributions are more than welcome.  | ||||
|  | ||||
| Pull requests should be made to the *develop* branch as that is the working branch, master is for release code.   | ||||
|  | ||||
| Bug fixes to current release should be done to master branch. | ||||
|  | ||||
| Look: [Contributing](https://github.com/otsoft/myaac/wiki/Contributing) in our wiki. | ||||
|  | ||||
| ### Other Notes | ||||
|  | ||||
| If you have a great idea or want contribute to the project - visit our website at https://www.my-aac.org | ||||
|  | ||||
| ## Project supported by JetBrains | ||||
|  | ||||
| Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects. | ||||
|  | ||||
| [](https://www.jetbrains.com/?from=https://github.com/slawkens) | ||||
|  | ||||
| ### License | ||||
|  | ||||
| This program and all associated files are released under the GNU Public License.   | ||||
| See [LICENSE](https://github.com/slawkens/myaac/blob/master/LICENSE) for details. | ||||
|   | ||||
							
								
								
									
										1
									
								
								_config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1 @@ | ||||
| theme: jekyll-theme-slate | ||||
							
								
								
									
										40
									
								
								aac
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,40 @@ | ||||
| #!/usr/bin/env php | ||||
| <?php | ||||
|  | ||||
| require_once __DIR__ . '/common.php'; | ||||
|  | ||||
| if(!IS_CLI) { | ||||
| 	echo 'This script can be run only in command line mode.'; | ||||
| 	exit(1); | ||||
| } | ||||
|  | ||||
| require_once SYSTEM . 'functions.php'; | ||||
| require_once SYSTEM . 'init.php'; | ||||
|  | ||||
| define('SELF_NAME', basename(__FILE__)); | ||||
|  | ||||
| use MyAAC\Plugins; | ||||
| use Symfony\Component\Console\Application; | ||||
|  | ||||
| $application = new Application(); | ||||
|  | ||||
| $commandsGlob = glob(SYSTEM . 'src/Commands/*.php'); | ||||
| foreach ($commandsGlob as $item) { | ||||
| 	$name = pathinfo($item, PATHINFO_FILENAME); | ||||
| 	if ($name == 'Command') { // ignore base Command class | ||||
| 		continue; | ||||
| 	} | ||||
|  | ||||
| 	$commandPre = '\\MyAAC\Commands\\'; | ||||
| 	$application->add(new ($commandPre . $name)); | ||||
| } | ||||
|  | ||||
| $pluginCommands = Plugins::getCommands(); | ||||
| foreach ($pluginCommands as $item) { | ||||
| 	$application->add(require $item); | ||||
| } | ||||
|  | ||||
| $application->setName('MyAAC'); | ||||
| $application->setVersion(MYAAC_VERSION); | ||||
|  | ||||
| $application->run(); | ||||
							
								
								
									
										
											BIN
										
									
								
								admin/images/logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.3 KiB | 
							
								
								
									
										22
									
								
								admin/includes/debugbar.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,22 @@ | ||||
| <?php | ||||
|  | ||||
| $hooks->register('debugbar_admin_head_end', HOOK_ADMIN_HEAD_END, function ($params) { | ||||
| 	global $debugBar; | ||||
|  | ||||
| 	if (!isset($debugBar)) { | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	$debugBarRenderer = $debugBar->getJavascriptRenderer(); | ||||
| 	echo $debugBarRenderer->renderHead(); | ||||
| }); | ||||
| $hooks->register('debugbar_admin_body_end', HOOK_ADMIN_BODY_END, function ($params) { | ||||
| 	global $debugBar; | ||||
|  | ||||
| 	if (!isset($debugBar)) { | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	$debugBarRenderer = $debugBar->getJavascriptRenderer(); | ||||
| 	echo $debugBarRenderer->render(); | ||||
| }); | ||||
| @@ -1 +1,2 @@ | ||||
| <?php | ||||
| <?php | ||||
| // nothing yet here | ||||
							
								
								
									
										37
									
								
								admin/includes/settings_menus.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,37 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Plugins; | ||||
|  | ||||
| $order = 10; | ||||
|  | ||||
| $settingsMenu = []; | ||||
|  | ||||
| $settingsMenu[] = [ | ||||
| 	'name' => 'MyAAC', | ||||
| 	'link' => 'settings&plugin=core', | ||||
| 	'icon' => 'list', | ||||
| 	'order' => $order, | ||||
| ]; | ||||
|  | ||||
| foreach (Plugins::getAllPluginsSettings() as $setting) { | ||||
| 	$file = BASE . $setting['settingsFilename']; | ||||
| 	if (!file_exists($file)) { | ||||
| 		warning('Plugin setting: ' . $file . ' - cannot be loaded.'); | ||||
| 		continue; | ||||
| 	} | ||||
|  | ||||
| 	$order += 10; | ||||
|  | ||||
| 	$settings = require $file; | ||||
|  | ||||
| 	$settingsMenu[] = [ | ||||
| 		'name' => $settings['name'], | ||||
| 		'link' => 'settings&plugin=' . $setting['pluginFilename'], | ||||
| 		'icon' => 'list', | ||||
| 		'order' => $order, | ||||
| 	]; | ||||
| } | ||||
|  | ||||
| unset($settings, $file, $order); | ||||
|  | ||||
| return $settingsMenu; | ||||
| @@ -1 +1,67 @@ | ||||
| <?php | ||||
| <?php | ||||
|  | ||||
| // few things we'll need | ||||
| require '../common.php'; | ||||
|  | ||||
| const ADMIN_PANEL = true; | ||||
| const MYAAC_ADMIN = true; | ||||
|  | ||||
| if(file_exists(BASE . 'install') && (!isset($config['installed']) || !$config['installed'])) | ||||
| { | ||||
| 	header('Location: ' . BASE_URL . 'install/'); | ||||
| 	throw new RuntimeException('Setup detected that <b>install/</b> directory exists. Please visit <a href="' . BASE_URL . 'install">this</a> url to start MyAAC Installation.<br/>Delete <b>install/</b> directory if you already installed MyAAC.<br/>Remember to REFRESH this page when you\'re done!'); | ||||
| } | ||||
|  | ||||
| $content = ''; | ||||
|  | ||||
| // validate page | ||||
| $page = $_GET['p'] ?? ''; | ||||
| if(empty($page) || preg_match("/[^a-zA-Z0-9_\-\/.]/", $page)) | ||||
| 	$page = 'dashboard'; | ||||
|  | ||||
| $page = strtolower($page); | ||||
| define('PAGE', $page); | ||||
|  | ||||
| require SYSTEM . 'functions.php'; | ||||
| require SYSTEM . 'init.php'; | ||||
|  | ||||
| require __DIR__ . '/includes/debugbar.php'; | ||||
| require SYSTEM . 'status.php'; | ||||
| require SYSTEM . 'login.php'; | ||||
| require __DIR__ . '/includes/functions.php'; | ||||
|  | ||||
| $twig->addGlobal('config', $config); | ||||
| $twig->addGlobal('status', $status); | ||||
|  | ||||
| if (ACTION == 'logout') { | ||||
| 	require SYSTEM . 'logout.php'; | ||||
| } | ||||
|  | ||||
| // if we're not logged in - show login box | ||||
| if(!$logged || !admin()) { | ||||
| 	$page = 'login'; | ||||
| } | ||||
|  | ||||
| // include our page | ||||
| $file = __DIR__ . '/pages/' . $page . '.php'; | ||||
| if(!@file_exists($file)) { | ||||
| 	if (str_contains($page, 'plugins/')) { | ||||
| 		$file = BASE . $page; | ||||
| 	} | ||||
| 	else { | ||||
| 		$page = '404'; | ||||
| 		$file = SYSTEM . 'pages/404.php'; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ob_start(); | ||||
| if($hooks->trigger(HOOK_ADMIN_BEFORE_PAGE)) { | ||||
| 	require $file; | ||||
| } | ||||
|  | ||||
| $content .= ob_get_contents(); | ||||
| ob_end_clean(); | ||||
|  | ||||
| // template | ||||
| $template_path = 'template/'; | ||||
| require __DIR__ . '/' . $template_path . 'template.php'; | ||||
|   | ||||
							
								
								
									
										626
									
								
								admin/pages/accounts.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,626 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Account editor | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Account editor'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| $admin_base = ADMIN_URL . '?p=accounts'; | ||||
| $use_datatable = true; | ||||
|  | ||||
| if (setting('core.account_country')) | ||||
| 	require SYSTEM . 'countries.conf.php'; | ||||
|  | ||||
| $nameOrNumberColumn = 'name'; | ||||
| if (USE_ACCOUNT_NUMBER) { | ||||
| 	$nameOrNumberColumn = 'number'; | ||||
| } | ||||
|  | ||||
| $hasSecretColumn = $db->hasColumn('accounts', 'secret'); | ||||
| $hasCoinsColumn = $db->hasColumn('accounts', 'coins'); | ||||
| $hasPointsColumn = $db->hasColumn('accounts', 'premium_points'); | ||||
| $hasTypeColumn = $db->hasColumn('accounts', 'type'); | ||||
| $hasGroupColumn = $db->hasColumn('accounts', 'group_id'); | ||||
|  | ||||
| if (setting('core.account_country')) { | ||||
| 	$countries = array(); | ||||
| 	foreach (array('pl', 'se', 'br', 'us', 'gb') as $c) | ||||
| 		$countries[$c] = $config['countries'][$c]; | ||||
|  | ||||
| 	$countries['--'] = '----------'; | ||||
| 	foreach ($config['countries'] as $code => $c) | ||||
| 		$countries[$code] = $c; | ||||
| } | ||||
| $web_acc = ACCOUNT_WEB_FLAGS; | ||||
| $acc_type = setting('core.account_types'); | ||||
| ?> | ||||
|  | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>tools/css/jquery.datetimepicker.css"/ > | ||||
| <script src="<?php echo BASE_URL; ?>tools/js/jquery.datetimepicker.js"></script> | ||||
|  | ||||
| <?php | ||||
| $id = 0; | ||||
| $search_account = ''; | ||||
| if (isset($_REQUEST['id'])) | ||||
| 	$id = (int)$_REQUEST['id']; | ||||
| else if (isset($_REQUEST['search'])) { | ||||
| 	$search_account = $_REQUEST['search']; | ||||
| 	if (strlen($search_account) < 3 && !Validator::number($search_account)) { | ||||
| 		echo_error('Player name is too short.'); | ||||
| 	} else { | ||||
| 		$query = $db->query('SELECT `id` FROM `accounts` WHERE `' . $nameOrNumberColumn . '` = ' . $db->quote($search_account)); | ||||
| 		if ($query->rowCount() == 1) { | ||||
| 			$query = $query->fetch(); | ||||
| 			$id = (int)$query['id']; | ||||
| 		} else { | ||||
| 			$query = $db->query('SELECT `id`, `' . $nameOrNumberColumn . '` FROM `accounts` WHERE `' . $nameOrNumberColumn . '` LIKE ' . $db->quote('%' . $search_account . '%')); | ||||
| 			if ($query->rowCount() > 0 && $query->rowCount() <= 10) { | ||||
| 				$str_construct = 'Do you mean?<ul class="mb-0">'; | ||||
| 				foreach ($query as $row) | ||||
| 					$str_construct .= '<li><a href="' . $admin_base . '&id=' . $row['id'] . '">' . $row[$nameOrNumberColumn] . '</a></li>'; | ||||
| 				$str_construct .= '</ul>'; | ||||
| 				echo_error($str_construct); | ||||
| 			} else if ($query->rowCount() > 10) | ||||
| 				echo_error('Specified name resulted with too many accounts.'); | ||||
| 			else | ||||
| 				echo_error('No entries found.'); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| ?> | ||||
| <div class="row"> | ||||
| 	<?php | ||||
| 	if ($id > 0) { | ||||
| 		$account = new OTS_Account(); | ||||
| 		$account->load($id); | ||||
|  | ||||
| 		if (isset($_POST['save']) && $account->isLoaded()) { | ||||
| 			$error = false; | ||||
|  | ||||
| 			$_error = ''; | ||||
| 			$account_db = new OTS_Account(); | ||||
| 			if (USE_ACCOUNT_NAME) { | ||||
| 				$name = $_POST['name']; | ||||
|  | ||||
| 				$account_db->find($name); | ||||
| 				if ($account_db->isLoaded() && $account->getName() != $name) | ||||
| 					echo_error('This name is already used. Please choose another name!'); | ||||
| 			} | ||||
|  | ||||
| 			$account_db->load($id); | ||||
| 			if (!$account_db->isLoaded()) | ||||
| 				echo_error('Account with this id doesn\'t exist.'); | ||||
|  | ||||
| 			//type/group | ||||
| 			if ($hasTypeColumn || $hasGroupColumn) { | ||||
| 				$group = $_POST['group']; | ||||
| 			} | ||||
|  | ||||
| 			$password = ((!empty($_POST["pass"]) ? $_POST['pass'] : null)); | ||||
| 			if (!Validator::password($password)) { | ||||
| 				$errors['password'] = Validator::getLastError(); | ||||
| 			} | ||||
|  | ||||
| 			//secret | ||||
| 			if ($hasSecretColumn) { | ||||
| 				$secret = $_POST['secret']; | ||||
| 			} | ||||
|  | ||||
| 			//key | ||||
| 			$key = $_POST['key']; | ||||
| 			$email = $_POST['email']; | ||||
| 			if (!Validator::email($email)) | ||||
| 				$errors['email'] = Validator::getLastError(); | ||||
|  | ||||
| 			//tibia coins | ||||
| 			if ($hasCoinsColumn) { | ||||
| 				$t_coins = $_POST['t_coins']; | ||||
| 				verify_number($t_coins, 'Tibia coins', 12); | ||||
| 			} | ||||
| 			// prem days | ||||
| 			$p_days = (int)$_POST['p_days']; | ||||
| 			verify_number($p_days, 'Prem days', 11); | ||||
|  | ||||
| 			//prem points | ||||
| 			$p_points = $_POST['p_points']; | ||||
| 			verify_number($p_points, 'Prem Points', 11); | ||||
|  | ||||
| 			//rl name | ||||
| 			$rl_name = $_POST['rl_name']; | ||||
|  | ||||
| 			//location | ||||
| 			$rl_loca = $_POST['rl_loca']; | ||||
|  | ||||
| 			//country | ||||
| 			$rl_country = $_POST['rl_country']; | ||||
|  | ||||
| 			$web_flags = $_POST['web_flags']; | ||||
| 			verify_number($web_flags, 'Web Flags', 1); | ||||
|  | ||||
| 			//created | ||||
| 			$created = strtotime($_POST['created']); | ||||
| 			verify_number($created, 'Created', 11); | ||||
|  | ||||
| 			//web last login | ||||
| 			$web_lastlogin = strtotime($_POST['web_lastlogin']); | ||||
| 			verify_number($web_lastlogin, 'Web Last login', 11); | ||||
|  | ||||
| 			if (!$error && $hooks->trigger(HOOK_ADMIN_ACCOUNTS_SAVE_POST, ['account_id' => $account->getId(), 'account_email' =>  $account->getEMail()])) { | ||||
| 				if (USE_ACCOUNT_NAME) { | ||||
| 					$account->setName($name); | ||||
| 				} | ||||
|  | ||||
| 				if ($hasTypeColumn) { | ||||
| 					$account->setCustomField('type', $group); | ||||
| 				} elseif ($hasGroupColumn) { | ||||
| 					$account->setCustomField('group_id', $group); | ||||
| 				} | ||||
|  | ||||
| 				if ($hasSecretColumn) { | ||||
| 					$account->setCustomField('secret', $secret); | ||||
| 				} | ||||
| 				$account->setCustomField('key', $key); | ||||
| 				$account->setEMail($email); | ||||
| 				if ($hasCoinsColumn) { | ||||
| 					$account->setCustomField('coins', $t_coins); | ||||
| 				} | ||||
|  | ||||
| 				$lastDay = 0; | ||||
| 				if($p_days != 0 && $p_days != OTS_Account::GRATIS_PREMIUM_DAYS) { | ||||
| 					$lastDay = time(); | ||||
| 				} else if ($lastDay != 0) { | ||||
| 					$lastDay = 0; | ||||
| 				} | ||||
|  | ||||
| 				$account->setPremDays($p_days); | ||||
| 				$account->setLastLogin($lastDay); | ||||
| 				if ($hasPointsColumn) { | ||||
| 					$account->setCustomField('premium_points', $p_points); | ||||
| 				} | ||||
| 				$account->setRLName($rl_name); | ||||
| 				$account->setLocation($rl_loca); | ||||
| 				$account->setCountry($rl_country); | ||||
| 				$account->setCustomField('created', $created); | ||||
| 				$account->setWebFlags($web_flags); | ||||
| 				$account->setCustomField('web_lastlogin', $web_lastlogin); | ||||
|  | ||||
| 				if (isset($password)) { | ||||
| 					if (USE_ACCOUNT_SALT) { | ||||
| 						$salt = generateRandomString(10, false, true, true); | ||||
| 						$password = $salt . $password; | ||||
| 						$account->setCustomField('salt', $salt); | ||||
| 					} | ||||
|  | ||||
| 					$password = encrypt($password); | ||||
| 					$account->setPassword($password); | ||||
|  | ||||
| 					if (USE_ACCOUNT_SALT) | ||||
| 						$account->setCustomField('salt', $salt); | ||||
| 				} | ||||
|  | ||||
| 				$account->save(); | ||||
| 				echo_success('Account saved at: ' . date('G:i')); | ||||
| 			} | ||||
| 		} | ||||
| 	} else if ($id == 0) { | ||||
| 		$accounts_db = $db->query('SELECT `id`, `' . $nameOrNumberColumn . '`' . ($hasTypeColumn ? ',type' : ($hasGroupColumn ? ',group_id' : '')) . ' FROM `accounts` ORDER BY `id` ASC'); | ||||
| 		?> | ||||
| 		<div class="col-12 col-sm-12 col-lg-10"> | ||||
| 			<div class="card card-info card-outline"> | ||||
| 				<div class="card-header"> | ||||
| 					<h5 class="m-0">Accounts</h5> | ||||
| 				</div> | ||||
| 				<div class="card-body"> | ||||
| 					<table class="acc_datatable table table-striped table-bordered table-responsive d-md-table"> | ||||
| 						<thead> | ||||
| 						<tr> | ||||
| 							<th>ID</th> | ||||
| 							<th><?= ($nameOrNumberColumn == 'number' ? 'Number' : 'Name'); ?></th> | ||||
| 							<?php if($hasTypeColumn || $hasGroupColumn): ?> | ||||
| 							<th>Position</th> | ||||
| 							<?php endif; ?> | ||||
| 							<th style="width: 40px">Edit</th> | ||||
| 						</tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 						<?php foreach ($accounts_db as $account_lst): ?> | ||||
| 							<tr> | ||||
| 								<th><?php echo $account_lst['id']; ?></th> | ||||
| 								<td><?php echo $account_lst[$nameOrNumberColumn]; ?></a></td> | ||||
| 								<?php if($hasTypeColumn || $hasGroupColumn): ?> | ||||
| 								<td> | ||||
| 									<?php if ($hasTypeColumn) { | ||||
| 										echo $acc_type[$account_lst['type']]; | ||||
| 									} elseif ($hasGroupColumn) { | ||||
| 										$group = $groups->getGroups(); | ||||
| 										echo $group[$account_lst['group_id']]; | ||||
| 									} ?> | ||||
| 								</td> | ||||
| 								<?php endif; ?> | ||||
| 								<td><a href="?p=accounts&id=<?php echo $account_lst['id']; ?>" class="btn btn-success btn-sm" title="Edit"> | ||||
| 										<i class="fas fa-pencil-alt"></i> | ||||
| 									</a> | ||||
| 								</td> | ||||
| 							</tr> | ||||
| 						<?php endforeach; ?> | ||||
| 						</tbody> | ||||
| 					</table> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	<?php } ?> | ||||
|  | ||||
| 	<?php if (isset($account) && $account->isLoaded()) { ?> | ||||
| 		<div class="col-12 col-sm-12 col-lg-10"> | ||||
| 			<div class="card card-primary card-outline card-outline-tabs"> | ||||
| 				<div class="card-header p-0 border-bottom-0"> | ||||
| 					<ul class="nav nav-tabs" id="accounts-tab" role="tablist"> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link active" id="accounts-acc-tab" data-toggle="pill" href="#accounts-acc">Account</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="accounts-logs-tab" data-toggle="pill" href="#accounts-logs">Logs</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="accounts-chars-tab" data-toggle="pill" href="#accounts-chars">Characters</a> | ||||
| 						</li> | ||||
| 						<?php if ($db->hasTable('bans')) : ?> | ||||
| 							<li class="nav-item"> | ||||
| 								<a class="nav-link" id="accounts-bans-tab" data-toggle="pill" href="#accounts-bans">Bans</a> | ||||
| 							</li> | ||||
| 						<?php endif; | ||||
|  | ||||
| 						if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) : ?> | ||||
| 							<li class="nav-item"> | ||||
| 								<a class="nav-link" id="accounts-store-tab" data-toggle="pill" href="#accounts-store">Store History</a> | ||||
| 							</li> | ||||
| 						<?php endif; ?> | ||||
| 					</ul> | ||||
| 				</div> | ||||
| 				<div class="card-body"> | ||||
| 					<div class="tab-content" id="accounts-tabContent"> | ||||
| 						<div class="tab-pane fade active show" id="accounts-acc"> | ||||
| 							<form action="<?php echo $admin_base . ($id > 0 ? '&id=' . $id : ''); ?>" method="post"> | ||||
| 								<?php csrf(); ?> | ||||
| 								<div class="form-group row"> | ||||
| 									<?php if (USE_ACCOUNT_NAME): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 											<label for="name">Account Name:</label> | ||||
| 											<input type="text" class="form-control" id="name" name="name" autocomplete="off" value="<?php echo $account->getName(); ?>"/> | ||||
| 										</div> | ||||
| 									<?php elseif (USE_ACCOUNT_NUMBER): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 											<label for="name">Account Number:</label> | ||||
| 											<input type="text" class="form-control" id="name" name="name" autocomplete="off" value="<?php echo $account->getNumber(); ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<div class="col-12 col-sm-12 col-lg-5"> | ||||
| 										<div class="form-check"> | ||||
| 											<input type="checkbox" | ||||
| 												   name="c_pass" | ||||
| 												   id="c_pass" | ||||
| 												   value="false" | ||||
| 												   class="form-check-input"/> | ||||
| 											<label for="c_pass">Password: (check to change)</label> | ||||
| 										</div> | ||||
| 										<div class="input-group"> | ||||
| 											<input type="text" class="form-control" id="pass" name="pass" autocomplete="off" maxlength="20" value=""/> | ||||
| 										</div> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-3"> | ||||
| 										<label for="account_id" class="control-label">Account ID:</label> | ||||
| 										<input type="text" class="form-control" id="account_id" name="account_id" autocomplete="off" size="8" maxlength="11" disabled value="<?php echo $account->getId(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<?php | ||||
| 									$acc_group = $account->getAccGroupId(); | ||||
| 									if ($hasTypeColumn) { | ||||
| 										?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="group">Account Type:</label> | ||||
| 											<select name="group" id="group" class="form-control"> | ||||
| 												<?php foreach ($acc_type as $_id => $a_type): ?> | ||||
| 													<option value="<?php echo($_id); ?>" <?php echo($acc_group == ($_id) ? 'selected' : ''); ?>><?php echo $a_type; ?></option> | ||||
| 												<?php endforeach; ?> | ||||
| 											</select> | ||||
| 										</div> | ||||
| 										<?php | ||||
| 									} elseif ($hasGroupColumn) { | ||||
| 										?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="group">Account Type:</label> | ||||
| 											<select name="group" id="group" class="form-control"> | ||||
| 												<?php foreach ($groups->getGroups() as $_id => $group): ?> | ||||
| 													<option value="<?php echo $_id; ?>" <?php echo($acc_group == $_id ? 'selected' : ''); ?>><?php echo $group->getName(); ?></option> | ||||
| 												<?php endforeach; ?> | ||||
| 											</select> | ||||
| 										</div> | ||||
| 									<?php } ?> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="web_flags">Website Access:</label> | ||||
| 										<select name="web_flags" id="web_flags" class="form-control"> | ||||
| 											<?php foreach ($web_acc as $_id => $a_type): ?> | ||||
| 												<option value="<?php echo($_id); ?>" <?php echo($account->getWebFlags() == ($_id) ? 'selected' : ''); ?>><?php echo $a_type; ?></option> | ||||
| 											<?php endforeach; ?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<?php if ($hasSecretColumn): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="secret">Secret:</label> | ||||
| 											<input type="text" class="form-control" id="secret" name="secret" autocomplete="off" value="<?php echo $account->getCustomField('secret'); ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="key">Recovery Key:</label> | ||||
| 										<input type="text" class="form-control" id="key" name="key" autocomplete="off" value="<?php echo $account->getCustomField('key'); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="email">Email:</label><?php echo (setting('core.mail_enabled') ? ' (<a href="' . ADMIN_URL . '?p=mailer&mail_to=' . $account->getEMail() . '">Send Mail</a>)' : ''); ?> | ||||
| 										<input type="text" class="form-control" id="email" name="email" autocomplete="off" value="<?php echo $account->getEMail(); ?>"/> | ||||
| 									</div> | ||||
| 									<?php if ($hasCoinsColumn): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="t_coins">Tibia Coins:</label> | ||||
| 											<input type="text" class="form-control" id="t_coins" name="t_coins" autocomplete="off" maxlength="11" value="<?php echo $account->getCustomField('coins') ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="p_days">Premium Days:</label> | ||||
| 										<input type="text" class="form-control" id="p_days" name="p_days" autocomplete="off" maxlength="11" value="<?php echo $account->getPremDays(); ?>"/> | ||||
| 									</div> | ||||
| 									<?php if ($hasPointsColumn): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="p_points" class="control-label">Premium Points:</label> | ||||
| 											<input type="text" class="form-control" id="p_points" name="p_points" autocomplete="off" maxlength="8" value="<?php echo $account->getCustomField('premium_points') ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="rl_name">RL Name:</label> | ||||
| 										<input type="text" class="form-control" id="rl_name" name="rl_name" | ||||
| 											   autocomplete="off" maxlength="20" | ||||
| 											   value="<?php echo $account->getRLName(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="rl_loca">Location:</label> | ||||
| 										<input type="text" class="form-control" id="rl_loca" name="rl_loca" | ||||
| 											   autocomplete="off" maxlength="20" | ||||
| 											   value="<?php echo $account->getLocation(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="rl_country">Country:</label> | ||||
| 										<select name="rl_country" id="rl_country" class="form-control"> | ||||
| 											<?php foreach ($countries as $_id => $a_type): ?> | ||||
| 												<option value="<?php echo($_id); ?>" <?php echo($account->getCountry() == ($_id) ? 'selected' : ''); ?>><?php echo $a_type; ?></option> | ||||
| 											<?php endforeach; ?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="created" class="control-label">Created:</label> | ||||
| 										<input type="text" class="form-control" id="created" name="created" autocomplete="off" maxlength="20" value="<?php echo date("M d Y, H:i:s", $account->getCustomField('created')); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="web_lastlogin" class="control-label">Web Last Login:</label> | ||||
| 										<input type="text" class="form-control" id="web_lastlogin" name="web_lastlogin" autocomplete="off" maxlength="20" value="<?php echo date("M d Y, H:i:s", $account->getCustomField('web_lastlogin')); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
|  | ||||
| 								<input type="hidden" name="save" value="yes"/> | ||||
|  | ||||
| 								<button type="submit" class="btn btn-info"><i class="fas fa-update"></i> Update</button> | ||||
| 								<a href="<?php echo ADMIN_URL; ?>?p=accounts" class="btn btn-danger float-right"><i class="fas fa-cancel"></i> Cancel</a> | ||||
| 							</form> | ||||
| 						</div> | ||||
| 						<div class="tab-pane fade" id="accounts-logs"> | ||||
| 							<div class="row"> | ||||
| 								<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 									<thead> | ||||
| 										<tr> | ||||
| 											<th>#</th> | ||||
| 											<th>Date</th> | ||||
| 											<th>Action</th> | ||||
| 											<th>IP</th> | ||||
| 										</tr> | ||||
| 									</thead> | ||||
| 									<tbody> | ||||
| 										<?php | ||||
| 											$accountActions = \MyAAC\Models\AccountAction::where('account_id', $account->getId())->orderByDesc('date')->get(); | ||||
| 											foreach ($accountActions as $i => $log): | ||||
| 												$log->ip = ($log->ip != 0 ? long2ip($log->ip) : inet_ntop($log->ipv6)); | ||||
| 												?> | ||||
| 											<tr> | ||||
| 												<td><?php echo $i + 1; ?></td> | ||||
| 												<td><?= date("M d Y, H:i:s", $log->date); ?></td> | ||||
| 												<td><?= $log->action; ?></td> | ||||
| 												<td><?= $log->ip; ?></td> | ||||
| 											</tr> | ||||
| 											<?php endforeach; ?> | ||||
| 									</tbody> | ||||
| 								</table> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 						<div class="tab-pane fade" id="accounts-chars"> | ||||
| 							<div class="row"> | ||||
| 								<?php | ||||
| 								if (isset($account) && $account->isLoaded()) { | ||||
| 									$account_players = Player::where('account_id', $account->getId())->orderBy('id')->get(); | ||||
| 									if (isset($account_players)) { ?> | ||||
| 										<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 											<thead> | ||||
| 											<tr> | ||||
| 												<th>#</th> | ||||
| 												<th>Name</th> | ||||
| 												<th>Level</th> | ||||
| 												<th>Vocation</th> | ||||
| 												<th style="width: 40px">Edit</th> | ||||
| 											</tr> | ||||
| 											</thead> | ||||
| 											<tbody> | ||||
| 											<?php foreach ($account_players as $i => $player): ?> | ||||
| 												<tr> | ||||
| 													<th><?php echo $i + 1; ?></th> | ||||
| 													<td><?php echo $player->name; ?></td> | ||||
| 													<td><?php echo $player->level; ?></td> | ||||
| 													<td><?php echo $player->vocation_name; ?></td> | ||||
| 													<td><a href="?p=players&id=<?php echo $player->getKey() ?>" class=" btn btn-success btn-sm" title="Edit"><i class="fas fa-pencil-alt"></i></a></td> | ||||
| 												</tr> | ||||
| 											<?php endforeach ?> | ||||
| 											</tbody> | ||||
| 										</table> | ||||
| 										<?php | ||||
| 									} | ||||
| 								} ?> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 						<?php if ($db->hasTable('bans')) : ?> | ||||
| 							<div class="tab-pane fade" id="accounts-bans"> | ||||
| 								<?php | ||||
| 								$bans = $db->query('SELECT * FROM ' . $db->tableName('bans') . ' WHERE ' . $db->fieldName('active') . ' = 1 AND ' . $db->fieldName('id') . ' = ' . $account->getId() . ' ORDER BY ' . $db->fieldName('added') . ' DESC LIMIT 10'); | ||||
| 								if ($bans->rowCount()) { | ||||
| 									?> | ||||
| 									<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 										<thead> | ||||
| 										<tr> | ||||
| 											<th>Nick</th> | ||||
| 											<th>Type</th> | ||||
| 											<th>Expires</th> | ||||
| 											<th>Reason</th> | ||||
| 											<th>Comment</th> | ||||
| 											<th>Added by:</th> | ||||
| 										</tr> | ||||
| 										</thead> | ||||
| 										<tbody> | ||||
| 										<?php | ||||
| 										foreach ($bans as $ban) { | ||||
| 											?> | ||||
| 											<tr> | ||||
| 												<td><?php | ||||
| 													$pName = getPlayerNameByAccount($ban['value']); | ||||
| 													echo '<a href="?p=players&search=' . $pName . '">' . $pName . '</a>'; ?> | ||||
| 												</td> | ||||
| 												<td><?php echo getBanType($ban['type']); ?></td> | ||||
| 												<td> | ||||
| 													<?php | ||||
| 													if ($ban['expires'] == "-1") | ||||
| 														echo 'Never'; | ||||
| 													else | ||||
| 														echo date("H:i:s", $ban['expires']) . '<br/>' . date("d M Y", $ban['expires']); | ||||
| 													?> | ||||
| 												</td> | ||||
| 												<td><?php echo getBanReason($ban['reason']); ?></td> | ||||
| 												<td><?php echo $ban['comment']; ?></td> | ||||
| 												<td> | ||||
| 													<?php | ||||
| 													if ($ban['admin_id'] == "0") | ||||
| 														echo 'Autoban'; | ||||
| 													else | ||||
| 														$aName = getPlayerNameByAccount($ban['admin_id']); | ||||
| 													echo '<a href="?p=players&search=' . $aName . '">' . $aName . '</a>'; | ||||
| 													echo '<br/>' . date("d.m.Y", $ban['added']); | ||||
| 													?> | ||||
| 												</td> | ||||
| 											</tr> | ||||
| 										<?php } ?> | ||||
| 										</tbody> | ||||
| 									</table> | ||||
| 									<?php | ||||
| 								} else { | ||||
| 									echo 'No Account bans.'; | ||||
| 								} ?> | ||||
| 							</div> | ||||
| 						<?php endif; | ||||
| 						if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) { ?> | ||||
| 							<div class="tab-pane fade" id="accounts-store"> | ||||
| 								<?php $store_history = $db->query('SELECT * FROM `store_history` WHERE `account_id` = "' . $account->getId() . '" ORDER BY `time` DESC')->fetchAll(); ?> | ||||
| 								<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 									<thead> | ||||
| 									<tr> | ||||
| 										<th>Description</th> | ||||
| 										<th>Coins</th> | ||||
| 										<th>Date</th> | ||||
| 									</tr> | ||||
| 									</thead> | ||||
| 									<tbody> | ||||
| 									<?php foreach ($store_history as $p): ?> | ||||
| 										<tr> | ||||
| 											<td><?php echo $p['description']; ?></td> | ||||
| 											<td><?php echo $p['coin_amount']; ?></td> | ||||
| 											<td><?php echo date('d M y H:i:s', $p['time']); ?></td> | ||||
| 										</tr> | ||||
| 									<?php endforeach; ?> | ||||
| 									</tbody> | ||||
| 								</table> | ||||
| 							</div> | ||||
| 						<?php } ?> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	<?php } ?> | ||||
| 	<div class="col-12 col-sm-12 col-lg-2"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Search Accounts</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body"> | ||||
| 				<div class="row"> | ||||
| 					<div class="col-6 col-lg-12"> | ||||
| 						<form action="<?php echo $admin_base; ?>" method="post"> | ||||
| 							<?php csrf(); ?> | ||||
| 							<label for="search">Account Name:</label> | ||||
| 							<div class="input-group input-group-sm"> | ||||
| 								<input type="text" class="form-control" id="search" name="search" value="<?= escapeHtml($search_account); ?>" maxlength="32" size="32"> | ||||
| 								<span class="input-group-append"><button type="submit" class="btn btn-info btn-flat">Search</button></span> | ||||
| 							</div> | ||||
| 						</form> | ||||
| 					</div> | ||||
| 					<div class="col-6 col-lg-12"> | ||||
| 						<form action="<?php echo $admin_base; ?>" method="post"> | ||||
| 							<?php csrf(); ?> | ||||
| 							<label for="id">Account ID:</label> | ||||
| 							<div class="input-group input-group-sm"> | ||||
| 								<input type="text" class="form-control" id="id" name="id" value="<?= $id; ?>" maxlength="32" size="32"> | ||||
| 								<span class="input-group-append"><button type="submit" class="btn btn-info btn-flat">Search</button></span> | ||||
| 							</div> | ||||
| 						</form> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
| <script> | ||||
| 	$(document).ready(function () { | ||||
| 		$('#created').datetimepicker({format: "M d Y, H:i:s",}); | ||||
| 		$('#web_lastlogin').datetimepicker({format: 'M d Y, H:i:s'}); | ||||
|  | ||||
| 		$('#c_pass').change(function () { | ||||
| 			const ipass = $('input[name=pass]'); | ||||
| 			ipass[0].disabled = !this.checked; | ||||
| 			ipass[0].value = ''; | ||||
| 		}).change(); | ||||
|  | ||||
| 		$('.acc_datatable').DataTable({ | ||||
| 			"order": [[0, "asc"]] | ||||
| 		}); | ||||
| 	}); | ||||
| </script> | ||||
							
								
								
									
										131
									
								
								admin/pages/changelog.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,131 @@ | ||||
| <?php | ||||
| /** | ||||
|  * CHANGELOG modifier | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Changelog; | ||||
| use MyAAC\Models\Changelog as ModelsChangelog; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Changelog'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| if (!hasFlag(FLAG_CONTENT_PAGES) && !superAdmin()) { | ||||
| 	echo 'Access denied.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $use_datatable = true; | ||||
| const CL_LIMIT = 600; // maximum changelog body length | ||||
|  | ||||
| $id = $_GET['id'] ?? 0; | ||||
|  | ||||
| if(!empty($action) && isRequestMethod('post')) | ||||
| { | ||||
| 	$id = $_POST['id'] ?? null; | ||||
| 	$body = isset($_POST['body']) ? stripslashes($_POST['body']) : null; | ||||
| 	$create_date = isset($_POST['createdate']) ? (int)strtotime($_POST['createdate'] ): null; | ||||
| 	$player_id = isset($_POST['player_id']) ? (int)$_POST['player_id'] : null; | ||||
| 	$type = isset($_POST['type']) ? (int)$_POST['type'] : null; | ||||
| 	$where = isset($_POST['where']) ? (int)$_POST['where'] : null; | ||||
|  | ||||
| 	$errors = array(); | ||||
|  | ||||
| 	if($action == 'new') { | ||||
|  | ||||
| 		if(isset($body) && Changelog::add($body, $type, $where, $player_id, $create_date, $errors)) { | ||||
| 			$body = ''; | ||||
| 			$type = $where = $player_id = $create_date = 0; | ||||
|  | ||||
| 			success('Added successful.'); | ||||
| 		} | ||||
| 	} | ||||
| 	else if($action == 'delete') { | ||||
| 		if (Changelog::delete($id, $errors)) { | ||||
| 			success('Deleted successful.'); | ||||
| 		} | ||||
| 	} | ||||
| 	else if($action == 'edit') | ||||
| 	{ | ||||
| 		if(isset($id) && !isset($body)) { | ||||
| 			$cl = Changelog::get($id); | ||||
| 			$body = $cl['body']; | ||||
| 			$type = $cl['type']; | ||||
| 			$where = $cl['where']; | ||||
| 			$create_date = $cl['date']; | ||||
| 			$player_id = $cl['player_id']; | ||||
| 		} | ||||
| 		else { | ||||
| 			if(Changelog::update($id, $body, $type, $where, $player_id, $create_date,$errors)) { | ||||
| 				$action = $body = ''; | ||||
| 				$type = $where = $player_id = $create_date = 0; | ||||
|  | ||||
| 				success('Updated successful.'); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	else if($action == 'hide') { | ||||
| 		if (Changelog::toggleHide($id, $errors, $status)) { | ||||
| 			success(($status == 1 ? 'Hide' : 'Show') . ' successful.'); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if(!empty($errors)) | ||||
| 		error(implode(", ", $errors)); | ||||
| } | ||||
|  | ||||
| $changelogs = ModelsChangelog::orderBy('id')->get()->toArray(); | ||||
|  | ||||
| $i = 0; | ||||
|  | ||||
| $log_type = [ | ||||
| 	['id' => 1, 'icon' => 'added'], | ||||
| 	['id' => 2, 'icon' => 'removed'], | ||||
| 	['id' => 3, 'icon' => 'changed'], | ||||
| 	['id' => 4, 'icon' => 'fixed'], | ||||
| ]; | ||||
|  | ||||
| $log_where = [ | ||||
| 	['id' => 1, 'icon' => 'server'], | ||||
| 	['id' => 2, 'icon' => 'website'], | ||||
| ]; | ||||
|  | ||||
| foreach($changelogs as $key => &$log) | ||||
| { | ||||
| 	$log['type'] = getChangelogType($log['type']); | ||||
| 	$log['where'] = getChangelogWhere($log['where']); | ||||
| } | ||||
|  | ||||
| if($action == 'edit' || $action == 'new') { | ||||
| 	if($action == 'edit') { | ||||
| 		$player = new OTS_Player(); | ||||
| 		$player->load($player_id); | ||||
| 	} | ||||
|  | ||||
| 	$account_players = $account_logged->getPlayersList(); | ||||
| 	$account_players->orderBy('group_id', POT::ORDER_DESC); | ||||
| 	$twig->display('admin.changelog.form.html.twig', array( | ||||
| 		'action' => $action, | ||||
| 		'cl_link_form' => constant('ADMIN_URL').'?p=changelog', | ||||
| 		'cl_id' => $id ?? null, | ||||
| 		'body' => isset($body) ? escapeHtml($body) : '', | ||||
| 		'create_date' => $create_date ?? '', | ||||
| 		'player_id' => $player_id ?? null, | ||||
| 		'account_players' => $account_players, | ||||
| 		'type' => $type ?? 0, | ||||
| 		'where' => $where ?? 0, | ||||
| 		'log_type' => $log_type, | ||||
| 		'log_where' => $log_where, | ||||
| 	)); | ||||
| } | ||||
| $twig->display('admin.changelog.html.twig', array( | ||||
| 	'changelogs' => $changelogs, | ||||
| )); | ||||
							
								
								
									
										25
									
								
								admin/pages/clmd.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,25 @@ | ||||
| <?php | ||||
| /** | ||||
|  * CHANGELOG viewer | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'MyAAC Changelog'; | ||||
|  | ||||
| if (!file_exists(BASE . 'CHANGELOG.md')) { | ||||
| 	echo 'File CHANGELOG.md doesn\'t exist.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $changelog = file_get_contents(BASE . 'CHANGELOG.md'); | ||||
|  | ||||
| $Parsedown = new Parsedown(); | ||||
|  | ||||
| $changelog = $Parsedown->text($changelog); # prints: <p>Hello <em>Parsedown</em>!</p> | ||||
|  | ||||
| echo '<div>' . $changelog . '</div>'; | ||||
							
								
								
									
										63
									
								
								admin/pages/dashboard.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,63 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Dashboard | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Dashboard'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| if (isset($_POST['clear_cache'])) { | ||||
| 	if (clearCache()) { | ||||
| 		success('Cache cleared.'); | ||||
| 	} else { | ||||
| 		error('Error while clearing cache.'); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| if (isset($_POST['maintenance'])) { | ||||
| 	$message = (!empty($_POST['message']) ? $_POST['message'] : null); | ||||
| 	$_status = (isset($_POST['status']) && $_POST['status'] == 'true'); | ||||
| 	$_status = ($_status ? '0' : '1'); | ||||
|  | ||||
| 	if (empty($message)) { | ||||
| 		error('Message cannot be empty.'); | ||||
| 	} else if (strlen($message) > 255) { | ||||
| 		error('Message is too long. Maximum length allowed is 255 chars.'); | ||||
| 	} else { | ||||
| 		$tmp = ''; | ||||
| 		if (fetchDatabaseConfig('site_closed', $tmp)) | ||||
| 			updateDatabaseConfig('site_closed', $_status); | ||||
| 		else | ||||
| 			registerDatabaseConfig('site_closed', $_status); | ||||
|  | ||||
| 		if (fetchDatabaseConfig('site_closed_message', $tmp)) | ||||
| 			updateDatabaseConfig('site_closed_message', $message); | ||||
| 		else | ||||
| 			registerDatabaseConfig('site_closed_message', $message); | ||||
| 	} | ||||
| } | ||||
| $is_closed = getDatabaseConfig('site_closed') == '1'; | ||||
|  | ||||
| $closed_message = 'Server is under maintenance, please visit later.'; | ||||
| $tmp = ''; | ||||
| if (fetchDatabaseConfig('site_closed_message', $tmp)) | ||||
| 	$closed_message = $tmp; | ||||
|  | ||||
| $settingAdminPanelModules = setting('core.admin_panel_modules'); | ||||
| if (count($settingAdminPanelModules) > 0) { | ||||
| 	echo '<div class="row">'; | ||||
| 	$twig_loader->prependPath(__DIR__ . '/modules/templates'); | ||||
| 	foreach ($settingAdminPanelModules as $box) { | ||||
| 		$file = __DIR__ . '/modules/' . $box . '.php'; | ||||
| 		if (file_exists($file)) { | ||||
| 			include($file); | ||||
| 		} | ||||
| 	} | ||||
| echo '</div>'; | ||||
| } | ||||
							
								
								
									
										13
									
								
								admin/pages/data.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,13 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Load items.xml | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Server Data'; | ||||
|  | ||||
| $twig->display('admin.data.html.twig'); | ||||
							
								
								
									
										26
									
								
								admin/pages/login.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,26 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Login | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Login'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| require PAGES . 'account/login.php'; | ||||
| if ($logged) { | ||||
| 	header('Location: ' . (admin() ? ADMIN_URL : BASE_URL)); | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $twig->display('admin.login.html.twig', [ | ||||
| 	'logout' => (ACTION == 'logout' ? 'You have  been logged out!'  : ''), | ||||
| 	'account' => USE_ACCOUNT_NAME ? 'Name' : 'Number', | ||||
| 	'account_login_by' => getAccountLoginByLabel(), | ||||
| 	'errors' => $errors ?? '' | ||||
| ]); | ||||
							
								
								
									
										83
									
								
								admin/pages/logs.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,83 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Logs | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Logs Viewer'; | ||||
| $use_datatable = true; | ||||
|  | ||||
| $files = array(); | ||||
| $aac_path_logs = BASE . 'system/logs/'; | ||||
| foreach (scandir($aac_path_logs, SCANDIR_SORT_ASCENDING) as $f) { | ||||
| 	if ($f[0] === '.' || is_dir($aac_path_logs . $f) || $f === 'index.html') { | ||||
| 		continue; | ||||
| 	} | ||||
|  | ||||
| 	$files[] = array($f, $aac_path_logs); | ||||
| } | ||||
|  | ||||
| $server_path_logs = $config['server_path'] . 'logs/'; | ||||
| if (!file_exists($server_path_logs)) { | ||||
| 	$server_path_logs = $config['data_path'] . 'logs/'; | ||||
| } | ||||
|  | ||||
| if (file_exists($server_path_logs)) { | ||||
| 	foreach (scandir($server_path_logs, SCANDIR_SORT_ASCENDING) as $f) { | ||||
| 		if ($f[0] === '.') { | ||||
| 			continue; | ||||
| 		} | ||||
|  | ||||
| 		if (is_dir($server_path_logs . $f)) { | ||||
| 			foreach (scandir($server_path_logs . $f, SCANDIR_SORT_ASCENDING) as $f2) { | ||||
| 				if ($f2[0] === '.') { | ||||
| 					continue; | ||||
| 				} | ||||
|  | ||||
| 				$files[] = array($f . '/' . $f2, $server_path_logs); | ||||
| 			} | ||||
|  | ||||
| 			continue; | ||||
| 		} | ||||
|  | ||||
| 		$files[] = array($f, $server_path_logs); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| foreach ($files as &$f) { | ||||
| 	$f['mtime'] = filemtime($f[1] . $f[0]); | ||||
| 	$f['name'] = $f[0]; | ||||
| } | ||||
| unset($f); | ||||
|  | ||||
|  | ||||
| define('EXIST_NONE', 0); | ||||
| define('EXIST_SERVER_LOG', 1); | ||||
| define('EXIST_AAC_LOG', 2); | ||||
|  | ||||
| $exist = EXIST_NONE; | ||||
| $file = isset($_GET['file']) ? $_GET['file'] : null; | ||||
| if (!empty($file)) { | ||||
| 	if (!preg_match('/[^A-z0-9\' _\/\-\.]/', $file)) { | ||||
| 		if (file_exists($aac_path_logs . $file)) { | ||||
| 			$exist = EXIST_AAC_LOG; | ||||
| 		} else if (file_exists($server_path_logs . $file)) { | ||||
| 			$exist = EXIST_SERVER_LOG; | ||||
| 		} else { | ||||
| 			echo 'Specified file does not exist.'; | ||||
| 		} | ||||
|  | ||||
| 		if ($exist !== EXIST_NONE) { | ||||
| 			$file_content = nl2br(file_get_contents(($exist === EXIST_SERVER_LOG ? $server_path_logs : $aac_path_logs) . $file)); | ||||
| 			$twig->display('admin.logs.view.html.twig', array('file' => $file, 'content' => $file_content)); | ||||
| 		} | ||||
| 	} else { | ||||
| 		echo 'Invalid file name specified.'; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| $twig->display('admin.logs.html.twig', array('files' => $files)); | ||||
							
								
								
									
										85
									
								
								admin/pages/mailer.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,85 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Mailer | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Mailer'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| if (!hasFlag(FLAG_CONTENT_MAILER) && !superAdmin()) { | ||||
| 	echo 'Access denied.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| if (!setting('core.mail_enabled')) { | ||||
| 	echo 'Mail support disabled in config.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $mail_to = isset($_POST['mail_to']) ? stripslashes(trim($_POST['mail_to'])) : null; | ||||
| $mail_subject = isset($_POST['mail_subject']) ? stripslashes($_POST['mail_subject']) : null; | ||||
| $mail_content = isset($_POST['mail_content']) ? stripslashes($_POST['mail_content']) : null; | ||||
|  | ||||
| if (isset($_POST['submit'])) { | ||||
| 	if (empty($mail_subject)) { | ||||
| 		warning('Please enter subject of the message.'); | ||||
| 	} | ||||
|  | ||||
| 	if (empty($mail_content)) { | ||||
| 		warning('Please enter content of the message.'); | ||||
| 	} | ||||
| } | ||||
| if (!empty($mail_to)) { | ||||
| 	if(!Validator::email($mail_to)) { | ||||
| 		warning('E-Mail is invalid.'); | ||||
| 	} | ||||
| 	else { | ||||
| 		if (!empty($mail_content) && !empty($mail_subject)) { | ||||
| 			if (_mail($mail_to, $mail_subject, $mail_content)) { | ||||
| 				success("Successfully mailed <strong>$mail_to</strong>"); | ||||
| 			} | ||||
| 			else { | ||||
| 				error("Error while sending mail to <strong>$mail_to</strong>. More info can be found in system/logs/mailer-error.log"); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| if (!empty($mail_content) && !empty($mail_subject) && empty($mail_to)) { | ||||
| 	$success = 0; | ||||
| 	$failed = 0; | ||||
|  | ||||
| 	$add = ''; | ||||
| 	if (setting('core.account_mail_verify')) { | ||||
| 		note('Note: Sending only to users with verified E-Mail.'); | ||||
| 		$add = ' AND `email_verified` = 1'; | ||||
| 	} | ||||
|  | ||||
| 	$query = $db->query('SELECT `email` FROM `accounts` WHERE `email` != ""' . $add); | ||||
| 	foreach ($query as $email) { | ||||
| 		if (_mail($email['email'], $mail_subject, $mail_content)) { | ||||
| 			$success++; | ||||
| 		} | ||||
| 		else { | ||||
| 			$failed++; | ||||
| 			echo '<br />'; | ||||
| 			error('An error occorred while sending email to <b>' . $email['email'] . '</b>. For Admin: More info can be found in system/logs/mailer-error.log'); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	success('Mailing finished.'); | ||||
| 	success("$success emails delivered."); | ||||
| 	warning("$failed emails failed."); | ||||
| } | ||||
|  | ||||
| $twig->display('admin.mailer.html.twig', [ | ||||
| 	'mail_to' => $mail_to, | ||||
| 	'mail_subject' => $mail_subject, | ||||
| 	'mail_content' => $mail_content | ||||
| ]); | ||||
							
								
								
									
										211
									
								
								admin/pages/mass_account.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,211 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Account Admin Tool | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Mass Account Actions'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| $hasCoinsColumn = $db->hasColumn('accounts', 'coins'); | ||||
| $hasPointsColumn = $db->hasColumn('accounts', 'premium_points'); | ||||
| $freePremium = $config['lua']['freePremium']; | ||||
|  | ||||
| function admin_give_points($points) | ||||
| { | ||||
| 	global $db, $hasPointsColumn; | ||||
|  | ||||
| 	if (!$hasPointsColumn) { | ||||
| 		displayMessage('Points not supported.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
|  | ||||
| 	$statement = $db->prepare('UPDATE `accounts` SET `premium_points` = `premium_points` + :points'); | ||||
| 	if (!$statement) { | ||||
| 		displayMessage('Failed to prepare query statement.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (!Account::query()->increment('premium_points', $points)) { | ||||
| 		displayMessage('Failed to add points.'); | ||||
| 		return; | ||||
| 	} | ||||
| 	displayMessage($points . ' points added to all accounts.', true); | ||||
| } | ||||
|  | ||||
| function admin_give_coins($coins) | ||||
| { | ||||
| 	global $db, $hasCoinsColumn; | ||||
|  | ||||
| 	if (!$hasCoinsColumn) { | ||||
| 		displayMessage('Coins not supported.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (!Account::query()->increment('coins', $coins)) { | ||||
| 		displayMessage('Failed to add coins.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	displayMessage($coins . ' coins added to all accounts.', true); | ||||
| } | ||||
|  | ||||
| function query_add_premium($column, $value_query, $condition_query = '1=1', $params = []) | ||||
| { | ||||
| 	global $db; | ||||
|  | ||||
| 	$statement = $db->prepare("UPDATE `accounts` SET `{$column}` = $value_query WHERE $condition_query"); | ||||
| 	if (!$statement) { | ||||
| 		displayMessage('Failed to prepare query statement.'); | ||||
| 		return false; | ||||
| 	} | ||||
|  | ||||
| 	if (!$statement->execute($params)) { | ||||
| 		displayMessage('Failed to add premium days.'); | ||||
| 		return false; | ||||
| 	} | ||||
|  | ||||
| 	return true; | ||||
| } | ||||
|  | ||||
| function admin_give_premdays($days) | ||||
| { | ||||
| 	global $db, $freePremium; | ||||
|  | ||||
| 	if ($freePremium) { | ||||
| 		displayMessage('Premium days not supported. Free Premium enabled.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	$value = $days * 86400; | ||||
| 	$now = time(); | ||||
| 	// othire | ||||
| 	if ($db->hasColumn('accounts', 'premend')) { | ||||
| 		// append premend | ||||
| 		if (query_add_premium('premend', '`premend` + :value', '`premend` > :now', ['value' => $value, 'now' => $now])) { | ||||
| 			// set premend | ||||
| 			if (query_add_premium('premend', ':value', '`premend` <= :now', ['value' => $now + $value, 'now' => $now])) { | ||||
| 				displayMessage($days . ' premium days added to all accounts.', true); | ||||
| 				return; | ||||
| 			} else { | ||||
| 				displayMessage('Failed to execute set query.'); | ||||
| 				return; | ||||
| 			} | ||||
| 		} else { | ||||
| 			displayMessage('Failed to execute append query.'); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	// tfs 0.x | ||||
| 	if ($db->hasColumn('accounts', 'premdays')) { | ||||
| 		// append premdays | ||||
| 		if (query_add_premium('premdays', '`premdays` + :value', '1=1', ['value' => $days])) { | ||||
| 			// append lastday | ||||
| 			if (query_add_premium('lastday', '`lastday` + :value', '`lastday` > :now', ['value' => $value, 'now' => $now])) { | ||||
| 				// set lastday | ||||
| 				if (query_add_premium('lastday', ':value', '`lastday` <= :now', ['value' => $now + $value, 'now' => $now])) { | ||||
| 					displayMessage($days . ' premium days added to all accounts.', true); | ||||
| 					return; | ||||
| 				} else { | ||||
| 					displayMessage('Failed to execute set query.'); | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				return; | ||||
| 			} else { | ||||
| 				displayMessage('Failed to execute append query.'); | ||||
| 				return; | ||||
| 			} | ||||
| 		} else { | ||||
| 			displayMessage('Failed to execute set days query.'); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	// tfs 1.x | ||||
| 	if ($db->hasColumn('accounts', 'premium_ends_at')) { | ||||
| 		// append premium_ends_at | ||||
| 		if (query_add_premium('premium_ends_at', '`premium_ends_at` + :value', '`premium_ends_at` > :now', ['value' => $value, 'now' => $now])) { | ||||
| 			// set premium_ends_at | ||||
| 			if (query_add_premium('premium_ends_at', ':value', '`premium_ends_at` <= :now', ['value' => $now + $value, 'now' => $now])) { | ||||
| 				displayMessage($days . ' premium days added to all accounts.', true); | ||||
| 				return; | ||||
| 			} else { | ||||
| 				displayMessage('Failed to execute set query.'); | ||||
| 				return; | ||||
| 			} | ||||
| 		} else { | ||||
| 			displayMessage('Failed to execute append query.'); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	displayMessage('Premium Days not supported.'); | ||||
| } | ||||
|  | ||||
| if (!empty(ACTION) && isRequestMethod('post')) { | ||||
|  | ||||
| 	$action = ACTION; | ||||
|  | ||||
| 	if (preg_match("/[^A-z0-9_\-]/", $action)) { | ||||
| 		displayMessage('Invalid action.'); | ||||
| 	} else { | ||||
| 		$value = isset($_POST['value']) ? intval($_POST['value']) : 0; | ||||
|  | ||||
| 		if (!$value) { | ||||
| 			displayMessage('Please fill all inputs'); | ||||
| 		} else { | ||||
| 			switch ($action) { | ||||
| 				case 'give-points': | ||||
| 					admin_give_points($value); | ||||
| 					break; | ||||
| 				case 'give-coins': | ||||
| 					admin_give_coins($value); | ||||
| 					break; | ||||
| 				case 'give-premdays': | ||||
| 					admin_give_premdays($value); | ||||
| 					break; | ||||
| 				default: | ||||
| 					displayMessage('Action ' . $action . 'not found.'); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| else { | ||||
| 	$twig->display('admin.tools.account.html.twig', array( | ||||
| 		'hasCoinsColumn' => $hasCoinsColumn, | ||||
| 		'hasPointsColumn' => $hasPointsColumn, | ||||
| 		'freePremium' => $freePremium, | ||||
| 	)); | ||||
| } | ||||
|  | ||||
| function displayMessage($message, $success = false) { | ||||
| 	global $twig, $hasCoinsColumn, $hasPointsColumn, $freePremium; | ||||
|  | ||||
| 	$success ? success($message): error($message); | ||||
|  | ||||
| 	$twig->display('admin.tools.account.html.twig', array( | ||||
| 		'hasCoinsColumn' => $hasCoinsColumn, | ||||
| 		'hasPointsColumn' => $hasPointsColumn, | ||||
| 		'freePremium' => $freePremium, | ||||
| 	)); | ||||
| } | ||||
							
								
								
									
										107
									
								
								admin/pages/mass_teleport.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,107 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Teleport Admin Tool | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Player; | ||||
| use MyAAC\Models\PlayerOnline; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Mass Teleport Actions'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| function admin_teleport_position($x, $y, $z) { | ||||
| 	if (!Player::query()->update([ | ||||
| 		'posx' => $x, 'posy' => $y, 'posz' => $z | ||||
| 	])) { | ||||
| 		displayMessage('Failed to execute query. Probably already updated.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	displayMessage('Player\'s position updated.', true); | ||||
| } | ||||
|  | ||||
| function admin_teleport_town($town_id) { | ||||
| 	if (!Player::query()->update([ | ||||
| 		'town_id' => $town_id, | ||||
| 	])) { | ||||
| 		displayMessage('Failed to execute query. Probably already updated.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	displayMessage('Player\'s town updated.', true); | ||||
| } | ||||
|  | ||||
| if (!empty(ACTION) && isRequestMethod('post'))    { | ||||
|  | ||||
| 	$action = ACTION; | ||||
|  | ||||
| 	if (preg_match("/[^A-z0-9_\-]/", $action)) { | ||||
| 		displayMessage('Invalid action.'); | ||||
| 	} else { | ||||
|  | ||||
| 		$playersOnline = 0; | ||||
| 		if($db->hasTable('players_online')) {// tfs 1.0 | ||||
| 			$playersOnline = PlayerOnline::count(); | ||||
| 		} else { | ||||
| 			$playersOnline = Player::online()->count(); | ||||
| 		} | ||||
|  | ||||
| 		if ($playersOnline > 0) { | ||||
| 			displayMessage('Please, close the server before execute this action otherwise players will not be affected.'); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		$town_id = isset($_POST['town_id']) ? intval($_POST['town_id']) : null; | ||||
| 		$posx = isset($_POST['posx']) ? intval($_POST['posx']) : null; | ||||
| 		$posy = isset($_POST['posy']) ? intval($_POST['posy']) : null; | ||||
| 		$posz = isset($_POST['posz']) ? intval($_POST['posz']) : null; | ||||
| 		$to_temple = $_POST['to_temple'] ?? null; | ||||
|  | ||||
| 		switch ($action) { | ||||
| 			case 'set-town': | ||||
| 				if (!$town_id) { | ||||
| 					displayMessage('Please fill all inputs'); | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				if (!isset($config['towns'][$town_id])) { | ||||
| 					displayMessage('Specified town does not exist'); | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				admin_teleport_town($town_id); | ||||
| 				break; | ||||
| 			case 'set-position': | ||||
| 				if (!$to_temple &&  ($posx < 0 || $posx > 65535 || $posy < 0 || $posy > 65535|| $posz < 0 || $posz > 16)) { | ||||
| 					displayMessage('Invalid Position'); | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				admin_teleport_position($posx, $posy, $posz); | ||||
| 				break; | ||||
| 			default: | ||||
| 				displayMessage('Action ' . $action . 'not found.'); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| } | ||||
| else { | ||||
| 	$twig->display('admin.tools.teleport.html.twig', array()); | ||||
| } | ||||
|  | ||||
|  | ||||
| function displayMessage($message, $success = false) { | ||||
| 	global $twig; | ||||
|  | ||||
| 	$success ? success($message): error($message); | ||||
| 	$twig->display('admin.tools.teleport.html.twig', array()); | ||||
| } | ||||
							
								
								
									
										181
									
								
								admin/pages/menus.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,181 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Menus | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Cache\Cache; | ||||
| use MyAAC\Models\Menu; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Menus'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| if (!hasFlag(FLAG_CONTENT_MENUS) && !superAdmin()) { | ||||
| 	echo 'Access denied.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| if (isset($_POST['template'])) { | ||||
| 	$template = $_POST['template']; | ||||
|  | ||||
| 	if (isset($_POST['menu'])) { | ||||
| 		$post_menu = $_POST['menu']; | ||||
| 		$post_menu_link = $_POST['menu_link']; | ||||
| 		$post_menu_blank = $_POST['menu_blank']; | ||||
| 		$post_menu_color = $_POST['menu_color']; | ||||
| 		if (count($post_menu) != count($post_menu_link)) { | ||||
| 			echo 'Menu count is not equal menu links. Something went wrong when sending form.'; | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		Menu::where('template', $template)->delete(); | ||||
| 		foreach ($post_menu as $category => $menus) { | ||||
| 			foreach ($menus as $i => $menu) { | ||||
| 				if (empty($menu)) // don't save empty menu item | ||||
| 					continue; | ||||
|  | ||||
| 				try { | ||||
| 					Menu::create([ | ||||
| 						'template' => $template, | ||||
| 						'name' => $menu, | ||||
| 						'link' => $post_menu_link[$category][$i], | ||||
| 						'blank' => $post_menu_blank[$category][$i] == 'on' ? 1 : 0, | ||||
| 						'color' => str_replace('#', '', $post_menu_color[$category][$i]), | ||||
| 						'category' => $category, | ||||
| 						'ordering' => $i | ||||
| 					]); | ||||
| 				} catch (PDOException $error) { | ||||
| 					warning('Error while adding menu item (' . $menu . '): ' . $error->getMessage()); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		$cache = Cache::getInstance(); | ||||
| 		if ($cache->enabled()) { | ||||
| 			$cache->delete('template_menus'); | ||||
| 		} | ||||
|  | ||||
| 		success('Saved at ' . date('H:i')); | ||||
| 	} | ||||
|  | ||||
| 	$file = TEMPLATES . $template . '/config.php'; | ||||
| 	if (file_exists($file)) { | ||||
| 		require_once $file; | ||||
| 	} else { | ||||
| 		echo 'Cannot find template config.php file.'; | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (isset($_GET['reset_colors'])) { | ||||
| 		if (isset($config['menu_default_color'])) { | ||||
| 			Menu::where('template', $template)->update(['color' => str_replace('#', '', $config['menu_default_color'])]); | ||||
| 			success('Colors has been reset.'); | ||||
| 		} | ||||
| 		else { | ||||
| 			warning('There is no default color defined, cannot reset colors.'); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (!isset($config['menu_categories'])) { | ||||
| 		echo "No menu categories set in template config.php.<br/>This template doesn't support dynamic menus."; | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	$title = 'Menus - ' . $template; | ||||
| 	?> | ||||
| 	<div align="center" class="text-center"> | ||||
| 		<p class="note">You are editing: <?= $template ?><br/><br/> | ||||
| 			Hint: You can drag menu items.<br/> | ||||
| 			Hint: Add links to external sites using: <b>http://</b> or <b>https://</b> prefix.<br/> | ||||
| 			Not all templates support blank and colorful links. | ||||
| 		</p> | ||||
| 		<?php if (isset($config['menu_default_color'])) {?> | ||||
| 		<form method="post" action="?p=menus&reset_colors" onsubmit="return confirm('Do you really want to reset colors?');"> | ||||
| 			<?php csrf(); ?> | ||||
| 			<input type="hidden" name="template" value="<?php echo $template ?>"/> | ||||
| 			<button type="submit" class="btn btn-danger">Reset Colors to default</button> | ||||
| 		</form> | ||||
| 		<br/> | ||||
| 		<?php } ?> | ||||
| 	</div> | ||||
| 	<?php | ||||
| 	$menus = Menu::query() | ||||
| 		->select('name', 'link', 'blank', 'color', 'category', 'ordering') | ||||
| 		->where('enabled', 1) | ||||
| 		->where('template', $template) | ||||
| 		->orderBy('ordering') | ||||
| 		->get() | ||||
| 		->groupBy('category') | ||||
| 		->toArray(); | ||||
|  | ||||
| 	$last_id = array(); | ||||
| 	?> | ||||
| 	<form method="post" id="menus-form" action="?p=menus"> | ||||
| 		<?php csrf(); ?> | ||||
| 		<input type="hidden" name="template" value="<?php echo $template ?>"/> | ||||
| 		<button type="submit" class="btn btn-info">Save</button><br/><br/> | ||||
| 		<div class="row"> | ||||
| 			<?php foreach ($config['menu_categories'] as $id => $cat): ?> | ||||
| 				<div class="col-md-12 col-lg-6"> | ||||
| 					<div class="card card-info card-outline"> | ||||
| 						<div class="card-header"> | ||||
| 							<h5 class="m-0"><?php echo $cat['name'] ?> <i class="far fa-plus-square add-button" id="add-button-<?php echo $id ?>"></i></h5> | ||||
| 						</div> | ||||
| 						<div class="card-body"> | ||||
| 							<ul class="sortable" id="sortable-<?php echo $id ?>"> | ||||
| 								<?php | ||||
| 								if (isset($menus[$id])) { | ||||
| 									$i = 0; | ||||
| 									foreach ($menus[$id] as $menu): | ||||
| 										?> | ||||
| 										<li class="ui-state-default" id="list-<?php echo $id ?>-<?php echo $i ?>"><label>Name:</label> <input type="text" name="menu[<?php echo $id ?>][]" value="<?php echo escapeHtml($menu['name']); ?>"/> | ||||
| 											<label>Link:</label> <input type="text" name="menu_link[<?php echo $id ?>][]" value="<?php echo $menu['link'] ?>"/> | ||||
| 											<input type="hidden" name="menu_blank[<?php echo $id ?>][]" value="0"/> | ||||
| 											<label><input class="blank-checkbox" type="checkbox" <?php echo($menu['blank'] == 1 ? 'checked' : '') ?>/><span title="Open in New Window">New Window</span></label> | ||||
| 											<input class="color-picker" type="text" name="menu_color[<?php echo $id ?>][]" value="<?php echo (empty($menu['color']) ? ($config['menu_default_color'] ?? '#ffffff') : $menu['color']); ?>"/> | ||||
| 											<a class="remove-button" id="remove-button-<?php echo $id ?>-<?php echo $i ?>"><i class="fas fa-trash"></a></i></li> | ||||
| 										<?php $i++; $last_id[$id] = $i; | ||||
| 									endforeach; | ||||
| 								} ?> | ||||
| 							</ul> | ||||
| 						</div> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			<?php endforeach ?> | ||||
| 		</div> | ||||
| 		<div class="row pb-2"> | ||||
| 			<div class="col-md-12"> | ||||
| 				<button type="submit" class="btn btn-info">Save</button> | ||||
| 				<?php | ||||
| 				echo '<button type="button" class="btn btn-danger float-right" value="Cancel" onclick="window.location = \'' . ADMIN_URL . '?p=menus\';"><i class="fas fa-cancel"></i> Cancel</button>'; | ||||
| 				?> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</form> | ||||
| 	<?php | ||||
| 	$twig->display('admin.menus.js.html.twig', array( | ||||
| 		'menus' => $menus, | ||||
| 		'last_id' => $last_id, | ||||
| 		'menu_default_color' => $config['menu_default_color'] ?? '#ffffff' | ||||
| 	)); | ||||
| 	?> | ||||
| 	<?php | ||||
| } else { | ||||
| 	$templates = Menu::select('template')->distinct()->get()->toArray(); | ||||
| 	foreach ($templates as $key => $value) { | ||||
| 		$file = TEMPLATES . $value['template'] . '/config.php'; | ||||
| 		if (!file_exists($file)) { | ||||
| 			unset($templates[$key]); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	$twig->display('admin.menus.form.html.twig', array( | ||||
| 		'templates' => $templates | ||||
| 	)); | ||||
| } | ||||
							
								
								
									
										15
									
								
								admin/pages/modules/balance.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $balance = 0; | ||||
|  | ||||
| if ($db->hasColumn('players', 'balance')) { | ||||
| 	$balance = Player::orderByDesc('balance')->limit(10)->get(['balance', 'id','name', 'level'])->toArray(); | ||||
| } | ||||
|  | ||||
| $twig->display('balance.html.twig', array( | ||||
| 	'balance' => $balance | ||||
| )); | ||||
							
								
								
									
										15
									
								
								admin/pages/modules/coins.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $coins = 0; | ||||
|  | ||||
| if ($db->hasColumn('accounts', 'coins')) { | ||||
| 	$coins = Account::orderByDesc('coins')->limit(10)->get(['coins', (USE_ACCOUNT_NAME ? 'name' : 'id')])->toArray(); | ||||
| } | ||||
|  | ||||
| $twig->display('coins.html.twig', array( | ||||
| 	'coins' => $coins | ||||
| )); | ||||
							
								
								
									
										15
									
								
								admin/pages/modules/created.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $accounts = 0; | ||||
|  | ||||
| if ($db->hasColumn('accounts', 'created')) { | ||||
| 	$accounts = Account::orderByDesc('created')->limit(10)->get(['created', (USE_ACCOUNT_NAME ? 'name' : 'id')])->toArray(); | ||||
| } | ||||
|  | ||||
| $twig->display('created.html.twig', array( | ||||
| 	'accounts' => $accounts, | ||||
| )); | ||||
							
								
								
									
										15
									
								
								admin/pages/modules/lastlogin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $players = 0; | ||||
|  | ||||
| if ($db->hasColumn('players', 'lastlogin')) { | ||||
| 	$players = Player::orderByDesc('lastlogin')->limit(10)->get(['name', 'level', 'lastlogin'])->toArray(); | ||||
| } | ||||
|  | ||||
| $twig->display('lastlogin.html.twig', array( | ||||
| 	'players' => $players, | ||||
| )); | ||||
							
								
								
									
										15
									
								
								admin/pages/modules/points.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $points = 0; | ||||
|  | ||||
| if ($db->hasColumn('accounts', 'premium_points')) { | ||||
| 	$coins = Account::orderByDesc('premium_points')->limit(10)->get(['premium_points', (USE_ACCOUNT_NAME ? 'name' : 'id')])->toArray(); | ||||
| } | ||||
|  | ||||
| $twig->display('points.html.twig', array( | ||||
| 	'points' => $points, | ||||
| )); | ||||
							
								
								
									
										46
									
								
								admin/pages/modules/server_status.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,46 @@ | ||||
| <?php | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| if (isset($status)) { | ||||
|  | ||||
| 	$error_icon = '<i class="fas fa-exclamation-circle text-danger"></i>'; ?> | ||||
| 	<div class=" col-md-6 col-lg-6"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header border-bottom-0"> | ||||
| 				<span class="font-weight-bold m-0">Server Status</span> <span class="float-right small"><b>Last checked</b>: <?php echo(isset($status['lastCheck']) ? date("l, d.m.Y H:i:s", $status['lastCheck']) : $error_icon); ?></span> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0 "> | ||||
| 				<table class="table"> | ||||
| 					<tbody> | ||||
| 					<tr> | ||||
| 						<th width="30%">Server</th> | ||||
| 						<td><?php echo(isset($status['server']) & isset($status['serverVersion']) ? $status['server'] . ' x ' . $status['serverVersion'] : $error_icon) ?></td> | ||||
|  | ||||
| 					</tr> | ||||
| 					<tr> | ||||
| 						<th>Client</th> | ||||
| 						<td><?php echo(isset($status['clientVersion']) ? $status['clientVersion'] : $error_icon) ?></td> | ||||
| 					</tr> | ||||
| 					<tr> | ||||
| 						<th>Map</th> | ||||
| 						<td> | ||||
| 							<?php if (isset($status['mapName']) & isset($status['mapAuthor']) & isset($status['mapWidth']) & isset($status['mapHeight'])) { | ||||
| 								echo $status['mapName'] . ' by <b>' . $status['mapAuthor'] . '</b><br/>' . $status['mapWidth'] . ' x ' . $status['mapHeight']; | ||||
| 							} else { | ||||
| 								echo $error_icon; | ||||
| 							} ?> | ||||
| 						</td> | ||||
| 					</tr> | ||||
| 					<tr> | ||||
| 						<th>Monsters</th> | ||||
| 						<td><?php echo (isset($status['monsters']) ? $status['monsters'] : $error_icon); ?></td> | ||||
| 					</tr> | ||||
| 					<tr> | ||||
| 						<th>MOTD:</th> | ||||
| 						<td><?php echo(isset($status['motd']) ? $status['motd'] : $error_icon); ?></td> | ||||
| 					</tr> | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| <?php } ?> | ||||
							
								
								
									
										21
									
								
								admin/pages/modules/statistics.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,21 @@ | ||||
| <?php | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
| use MyAAC\Models\Guild; | ||||
| use MyAAC\Models\House; | ||||
| use MyAAC\Models\Monster; | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $count = $eloquentConnection->query() | ||||
| 	->select([ | ||||
| 		'total_accounts' => Account::selectRaw('COUNT(id)'), | ||||
| 		'total_players' => Player::selectRaw('COUNT(id)'), | ||||
| 		'total_guilds' => Guild::selectRaw('COUNT(id)'), | ||||
| 		'total_monsters' => Monster::selectRaw('COUNT(id)'), | ||||
| 		'total_houses' => House::selectRaw('COUNT(id)'), | ||||
| 	])->first(); | ||||
|  | ||||
| $twig->display('statistics.html.twig', array( | ||||
| 	'count' => $count, | ||||
| )); | ||||
							
								
								
									
										31
									
								
								admin/pages/modules/templates/balance.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,31 @@ | ||||
| {% if balance is iterable %} | ||||
| 	<div class=" col-md-6 col-lg-3"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Top 10 - Balance</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0"> | ||||
| 				<table class="table table-striped table-condensed"> | ||||
| 					<thead> | ||||
| 					<tr> | ||||
| 						<th>#</th> | ||||
| 						<th>Player</th> | ||||
| 						<th>Balance</th> | ||||
| 					</tr> | ||||
| 					</thead> | ||||
| 					<tbody> | ||||
| 					{% set i = 0 %} | ||||
| 					{% for result in balance %} | ||||
| 						{% set i = i + 1 %} | ||||
| 						<tr> | ||||
| 							<th>{{ i }}</th> | ||||
| 							<td><a href="?p=players&search_name={{ result.name }}">{{ result.name }}</a></td> | ||||
| 							<td>{{ result.balance }}</td> | ||||
| 						</tr> | ||||
| 					{% endfor %} | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| {% endif %} | ||||
							
								
								
									
										31
									
								
								admin/pages/modules/templates/coins.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,31 @@ | ||||
| {% if coins is iterable %} | ||||
| 	<div class=" col-md-6 col-lg-3"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Top 10 - Most coins</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0"> | ||||
| 				<table class="table table-striped table-condensed"> | ||||
| 					<thead> | ||||
| 					<tr> | ||||
| 						<th>#</th> | ||||
| 						<th>Account</th> | ||||
| 						<th>Tibia coins</th> | ||||
| 					</tr> | ||||
| 					</thead> | ||||
| 					<tbody> | ||||
| 					{% set i = 0 %} | ||||
| 					{% for result in coins %} | ||||
| 						{% set i = i + 1 %} | ||||
| 						<tr> | ||||
| 							<th>{{ i }}</th> | ||||
| 							<td><a href="?p=accounts&search_name={{ result.name }}">{{ result.name }}</a></td> | ||||
| 							<td>{{ result.coins }}</td> | ||||
| 						</tr> | ||||
| 					{% endfor %} | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| {% endif %} | ||||
							
								
								
									
										31
									
								
								admin/pages/modules/templates/created.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,31 @@ | ||||
| {% if accounts is iterable %} | ||||
| 	<div class=" col-md-6 col-lg-3"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Last 10 created</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0"> | ||||
| 				<table class="table table-striped table-condensed"> | ||||
| 					<thead> | ||||
| 					<tr> | ||||
| 						<th>#</th> | ||||
| 						<th>Account</th> | ||||
| 						<th>Creation Date</th> | ||||
| 					</tr> | ||||
| 					</thead> | ||||
| 					<tbody> | ||||
| 					{% set i = 0 %} | ||||
| 					{% for result in accounts %} | ||||
| 						{% set i = i + 1 %} | ||||
| 						<tr> | ||||
| 							<th>{{ i }}</th> | ||||
| 							<td><a href="?p=accounts&search_name={{ result.name }}">{{ result.name }}</a></td> | ||||
| 							<td>{{ result.created|date("M d Y, H:i:s") }}</td> | ||||
| 						</tr> | ||||
| 					{% endfor %} | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| {% endif %} | ||||
							
								
								
									
										31
									
								
								admin/pages/modules/templates/lastlogin.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,31 @@ | ||||
| {% if players is iterable %} | ||||
| 	<div class=" col-md-6 col-lg-3"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Last 10 logins</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0"> | ||||
| 				<table class="table table-striped table-condensed"> | ||||
| 					<thead> | ||||
| 					<tr> | ||||
| 						<th>#</th> | ||||
| 						<th>Player</th> | ||||
| 						<th>Login Date</th> | ||||
| 					</tr> | ||||
| 					</thead> | ||||
| 					<tbody> | ||||
| 					{% set i = 0 %} | ||||
| 					{% for result in players %} | ||||
| 						{% set i = i + 1 %} | ||||
| 						<tr> | ||||
| 							<th>{{ i }}</th> | ||||
| 							<td><a href="?p=players&search_name={{ result.name }}">{{ result.name }}</a></td> | ||||
| 							<td>{{ result.lastlogin|date("M d Y, H:i:s") }}</td> | ||||
| 						</tr> | ||||
| 					{% endfor %} | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| {% endif %} | ||||
							
								
								
									
										31
									
								
								admin/pages/modules/templates/points.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,31 @@ | ||||
| {% if points is iterable %} | ||||
| 	<div class=" col-md-6 col-lg-3"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Top 10 - Most premium points</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body p-0"> | ||||
| 				<table class="table table-striped table-condensed"> | ||||
| 					<thead> | ||||
| 					<tr> | ||||
| 						<th>#</th> | ||||
| 						<th>Account</th> | ||||
| 						<th>Premium points</th> | ||||
| 					</tr> | ||||
| 					</thead> | ||||
| 					<tbody> | ||||
| 					{% set i = 0 %} | ||||
| 					{% for result in points %} | ||||
| 						{% set i = i + 1 %} | ||||
| 						<tr> | ||||
| 							<th>{{ i }}</th> | ||||
| 							<td><a href="?p=accounts&search_name={{ result.name }}">{{ result.name }}</a></td> | ||||
| 							<td>{{ result.premium_points }}</td> | ||||
| 						</tr> | ||||
| 					{% endfor %} | ||||
| 					</tbody> | ||||
| 				</table> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| {% endif %} | ||||
							
								
								
									
										45
									
								
								admin/pages/modules/templates/statistics.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,45 @@ | ||||
| <div class="col"> | ||||
| 	<div class="info-box"> | ||||
| 		<span class="info-box-icon bg-info elevation-1"><i class="fas fa-user-plus"></i></span> | ||||
| 		<div class="info-box-content"> | ||||
| 			<span class="info-box-text">Accounts:</span> | ||||
| 			<span class="info-box-number">{{ count.total_accounts }}</span> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
| <div class="col"> | ||||
| 	<div class="info-box"> | ||||
| 		<span class="info-box-icon bg-red elevation-1"><i class="fas fa-user-plus"></i></span> | ||||
| 		<div class="info-box-content"> | ||||
| 			<span class="info-box-text">Players:</span> | ||||
| 			<span class="info-box-number">{{ count.total_players }}</span> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
| <div class="col"> | ||||
| 	<div class="info-box"> | ||||
| 		<span class="info-box-icon bg-teal elevation-1"><i class="fas fa-pastafarianism"></i></span> | ||||
| 		<div class="info-box-content"> | ||||
| 			<span class="info-box-text">Monsters:</span> | ||||
| 			<span class="info-box-number">{{ count.total_monsters }}</span> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
| <div class="col"> | ||||
| 	<div class="info-box"> | ||||
| 		<span class="info-box-icon bg-green elevation-1"><i class="fas fa-chart-pie"></i></span> | ||||
| 		<div class="info-box-content"> | ||||
| 			<span class="info-box-text">Guilds:</span> | ||||
| 			<span class="info-box-number">{{ count.total_guilds }}</span> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
| <div class="col"> | ||||
| 	<div class="info-box"> | ||||
| 		<span class="info-box-icon bg-yellow elevation-1"><i class="fas fa-home"></i></span> | ||||
| 		<div class="info-box-content"> | ||||
| 			<span class="info-box-text">Houses:</span> | ||||
| 			<span class="info-box-number">{{ count.total_houses }}</span> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
							
								
								
									
										43
									
								
								admin/pages/modules/templates/web_status.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,43 @@ | ||||
| <div class="col-12 col-md-6"> | ||||
| 	<div class="card card-warning card-outline"> | ||||
| 		<div class="card-header"> | ||||
| 			<span class="m-0">Website Status<span class="float-right"> | ||||
| 			<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success"> | ||||
| 				<input form="maintenance-form" type="checkbox" class="custom-control-input" name="status" id="status" value="true" {% if not is_closed %} checked{% endif %}> | ||||
| 				<label id="status-label" class="custom-control-label" for="status"> {% if is_closed %}Closed{% else %}Open{% endif %}</label> | ||||
| 			</div></span> | ||||
| 			</span> | ||||
| 		</div> | ||||
| 		<div class="card-body p-2"> | ||||
| 			<div class="col-sm-12"> | ||||
| 				<label for="message" class="col-form-label">Maintenance Message</label> | ||||
| 				<textarea form="maintenance-form" name="message" class="form-control" cols="40" rows="3" maxlength="255" placeholder="Enter ...">{{ closed_message }}</textarea> | ||||
| 				<small>(only visible if closed)</small> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 		<div class="card-footer"> | ||||
| 			<form id="maintenance-form" method="post" action="?p=dashboard" class="float-left"> | ||||
| 				{{ csrf() }} | ||||
| 				<input type="hidden" name="maintenance" value="1" /> | ||||
| 				<button type="submit" class="btn btn-info"><i class="far fa-update"></i> Update</button> | ||||
| 			</form> | ||||
| 			<form method="post" action="?p=dashboard" class="float-right"> | ||||
| 				{{ csrf() }} | ||||
| 				<input type="hidden" name="clear_cache" value="1" /> | ||||
| 				<button type="submit" onclick="return confirm('Are you sure that you want to clear cache?');" class="btn btn-danger" title="Clear Cache"><i class="fas fa-clear"></i>Clear cache</button> | ||||
| 			</form> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <script> | ||||
| 	$(function() { | ||||
| 		$("#status").change(function() { | ||||
| 			$statusLabel = $("#status-label"); | ||||
| 			$statusLabel.html("Closed"); | ||||
| 			if ($(this).is(':checked')) { | ||||
| 				$statusLabel.html("Open"); | ||||
| 			} | ||||
| 		}); | ||||
| 	}); | ||||
| </script> | ||||
							
								
								
									
										10
									
								
								admin/pages/modules/web_status.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,10 @@ | ||||
| <?php | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $twig->display('web_status.twig', array( | ||||
| 	'is_closed' => $is_closed, | ||||
| 	'closed_message' => $closed_message, | ||||
| 	'status' => $status, | ||||
| 	'account_type' => USE_ACCOUNT_NAME ? 'name' : 'number' | ||||
| )); | ||||
| ?> | ||||
							
								
								
									
										156
									
								
								admin/pages/news.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,156 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Pages | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Forum; | ||||
| use MyAAC\News; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'News Panel'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| $use_datatable = true; | ||||
|  | ||||
| if (!hasFlag(FLAG_CONTENT_PAGES) && !superAdmin()) { | ||||
| 	echo 'Access denied.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| header('X-XSS-Protection:0'); | ||||
|  | ||||
| // some constants, used mainly by database (cannot by modified without schema changes) | ||||
| const NEWS_TITLE_LIMIT = 100; | ||||
| const NEWS_BODY_LIMIT = 65535; // maximum news body length | ||||
| const ARTICLE_TEXT_LIMIT = 300; | ||||
| const ARTICLE_IMAGE_LIMIT = 100; | ||||
|  | ||||
| $name = $p_title = ''; | ||||
| if(!empty($action)) | ||||
| { | ||||
| 	$id = $_POST['id'] ?? null; | ||||
| 	$p_title = $_POST['title'] ?? null; | ||||
| 	$body = isset($_POST['body']) ? stripslashes($_POST['body']) : null; | ||||
| 	$comments = $_POST['comments'] ?? null; | ||||
| 	$type = isset($_REQUEST['type']) ? (int)$_REQUEST['type'] : 1; | ||||
| 	$category = isset($_POST['category']) ? (int)$_POST['category'] : null; | ||||
| 	$player_id = isset($_POST['player_id']) ? (int)$_POST['player_id'] : null; | ||||
| 	$article_text = $_POST['article_text'] ?? null; | ||||
| 	$article_image = $_POST['article_image'] ?? null; | ||||
| 	$forum_section = $_POST['forum_section'] ?? null; | ||||
| 	$errors = []; | ||||
|  | ||||
| 	if (isRequestMethod('post')) { | ||||
| 		if ($action == 'new') { | ||||
| 			if (isset($forum_section) && $forum_section != '-1') { | ||||
| 				$forum_add = Forum::add_thread($p_title, $body, $forum_section, $player_id, $account_logged->getId(), $errors); | ||||
| 			} | ||||
|  | ||||
| 			if (isset($p_title) && News::add($p_title, $body, $type, $category, $player_id, isset($forum_add) && $forum_add != 0 ? $forum_add : 0, $article_text, $article_image, $errors)) { | ||||
| 				$p_title = $body = $comments = $article_text = $article_image = ''; | ||||
| 				$type = $category = $player_id = 0; | ||||
|  | ||||
| 				success('Added successful.'); | ||||
| 			} | ||||
| 		} else if ($action == 'delete') { | ||||
| 			if (News::delete($id, $errors)) { | ||||
| 				success('Deleted successful.'); | ||||
| 			} | ||||
| 		} else if ($action == 'edit') { | ||||
| 			if (isset($id) && !isset($p_title)) { | ||||
| 				$news = News::get($id); | ||||
| 				$p_title = $news['title']; | ||||
| 				$body = $news['body']; | ||||
| 				$comments = $news['comments']; | ||||
| 				$type = $news['type']; | ||||
| 				$category = $news['category']; | ||||
| 				$player_id = $news['player_id']; | ||||
| 				$article_text = $news['article_text']; | ||||
| 				$article_image = $news['article_image']; | ||||
| 			} else { | ||||
| 				if (News::update($id, $p_title, $body, $type, $category, $player_id, $forum_section, $article_text, $article_image, $errors)) { | ||||
| 					// update forum thread if exists | ||||
| 					if (isset($forum_section) && Validator::number($forum_section)) { | ||||
| 						$db->query("UPDATE `" . TABLE_PREFIX . "forum` SET `author_guid` = " . (int)$player_id . ", `post_text` = " . $db->quote($body) . ", `post_topic` = " . $db->quote($p_title) . ", `edit_date` = " . time() . " WHERE `id` = " . $db->quote($forum_section)); | ||||
| 					} | ||||
|  | ||||
| 					$action = $p_title = $body = $comments = $article_text = $article_image = ''; | ||||
| 					$type = $category = $player_id = 0; | ||||
|  | ||||
| 					success('Updated successful.'); | ||||
| 				} | ||||
| 			} | ||||
| 		} else if ($action == 'hide') { | ||||
| 			if (News::toggleHide($id, $errors, $status)) { | ||||
| 				success(($status == 1 ? 'Hide' : 'Show') . ' successful.'); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if(!empty($errors)) | ||||
| 		error(implode(", ", $errors)); | ||||
| } | ||||
|  | ||||
| $categories = array(); | ||||
| foreach($db->query('SELECT `id`, `name`, `icon_id` FROM `' . TABLE_PREFIX . 'news_categories` WHERE `hide` != 1') as $cat) | ||||
| { | ||||
| 	$categories[$cat['id']] = array( | ||||
| 		'name' => $cat['name'], | ||||
| 		'icon_id' => $cat['icon_id'] | ||||
| 	); | ||||
| } | ||||
|  | ||||
| if($action == 'edit' || $action == 'new') { | ||||
| 	if($action == 'edit') { | ||||
| 		$player = new OTS_Player(); | ||||
| 		$player->load($player_id); | ||||
| 	} | ||||
|  | ||||
| 	$account_players = $account_logged->getPlayersList(); | ||||
| 	$account_players->orderBy('group_id', POT::ORDER_DESC); | ||||
| 	$twig->display('admin.news.form.html.twig', array( | ||||
| 		'action' => $action, | ||||
| 		'news_id' => $id ?? null, | ||||
| 		'title' => $p_title ?? '', | ||||
| 		'body' => isset($body) ? escapeHtml($body) : '', | ||||
| 		'type' => $type, | ||||
| 		'player' => isset($player) && $player->isLoaded() ? $player : null, | ||||
| 		'player_id' => $player_id ?? null, | ||||
| 		'account_players' => $account_players, | ||||
| 		'category' => $category ?? 0, | ||||
| 		'categories' => $categories, | ||||
| 		'forum_boards' => getForumBoards(), | ||||
| 		'forum_section' => $forum_section ?? null, | ||||
| 		'comments' => $comments ?? null, | ||||
| 		'article_text' => $article_text ?? null, | ||||
| 		'article_image' => $article_image ?? null | ||||
| 	)); | ||||
| } | ||||
|  | ||||
| $query = $db->query('SELECT * FROM ' . $db->tableName(TABLE_PREFIX . 'news')); | ||||
| $newses = array(); | ||||
| foreach ($query as $_news) { | ||||
| 	$_player = new OTS_Player(); | ||||
| 	$_player->load($_news['player_id']); | ||||
|  | ||||
| 	$newses[$_news['type']][] = array( | ||||
| 		'id' => $_news['id'], | ||||
| 		'hide' => $_news['hide'], | ||||
| 		'archive_link' => getLink('news') . '/archive/' . $_news['id'], | ||||
| 		'title' => $_news['title'], | ||||
| 		'date' => $_news['date'], | ||||
| 		'player_name' => $_player->isLoaded() ? $_player->getName() : '', | ||||
| 		'player_link' => $_player->isLoaded() ? getPlayerLink($_player->getName(), false) : '', | ||||
| 	); | ||||
| } | ||||
|  | ||||
| $twig->display('admin.news.html.twig', array( | ||||
| 	'newses' => $newses | ||||
| )); | ||||
							
								
								
									
										41
									
								
								admin/pages/notepad.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,41 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Notepad | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Notepad as ModelsNotepad; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Notepad'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| /** | ||||
|  * @var OTS_Account $account_logged | ||||
|  */ | ||||
| $_content = ''; | ||||
| $notepad = ModelsNotepad::where('account_id', $account_logged->getId())->first(); | ||||
| if (isset($_POST['content'])) { | ||||
| 	$_content = html_entity_decode(stripslashes($_POST['content'])); | ||||
| 	if (!$notepad) { | ||||
| 		ModelsNotepad::create([ | ||||
| 			'account_id' => $account_logged->getId(), | ||||
| 			'content' => $_content | ||||
| 		]); | ||||
| 	} | ||||
| 	else { | ||||
| 		ModelsNotepad::where('account_id', $account_logged->getId())->update(['content' => $_content]); | ||||
| 	} | ||||
|  | ||||
| 	success('Saved at ' . date('H:i')); | ||||
| } else { | ||||
| 	if ($notepad) | ||||
| 		$_content = $notepad->content; | ||||
| } | ||||
|  | ||||
| $twig->display('admin.notepad.html.twig', ['content' => $_content]); | ||||
							
								
								
									
										14
									
								
								admin/pages/open_source.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,14 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Open Source libraries | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2023 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Open Source'; | ||||
|  | ||||
| $twig->display('admin.open_source.html.twig'); | ||||
							
								
								
									
										133
									
								
								admin/pages/pages.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,133 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Pages | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Pages as ModelsPages; | ||||
| use MyAAC\Admin\Pages; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Pages'; | ||||
| $use_datatable = true; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| if (!hasFlag(FLAG_CONTENT_PAGES) && !superAdmin()) { | ||||
| 	echo 'Access denied.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| header('X-XSS-Protection:0'); | ||||
|  | ||||
| $name = $p_title = null; | ||||
| $groups = new OTS_Groups_List(); | ||||
|  | ||||
| $php = false; | ||||
| $enable_tinymce = true; | ||||
| $access = 0; | ||||
|  | ||||
| // some constants, used mainly by database (cannot by modified without schema changes) | ||||
| const PAGE_TITLE_LIMIT = 30; | ||||
| const PAGE_NAME_LIMIT = 30; | ||||
| const PAGE_BODY_LIMIT = 65535; // maximum page body length | ||||
|  | ||||
| if (!empty($action) && isRequestMethod('post')) { | ||||
| 	if ($action == 'delete' || $action == 'edit' || $action == 'hide') { | ||||
| 		$id = $_POST['id']; | ||||
| 	} | ||||
|  | ||||
| 	if (isset($_POST['name'])) { | ||||
| 		$name = $_POST['name']; | ||||
| 	} | ||||
|  | ||||
| 	if (isset($_POST['title'])) { | ||||
| 		$p_title = $_POST['title']; | ||||
| 	} | ||||
|  | ||||
| 	$php = isset($_POST['php']) && $_POST['php'] == 1; | ||||
| 	$enable_tinymce = (isset($_POST['enable_tinymce']) && $_POST['enable_tinymce'] == 1) ?: $enable_tinymce; | ||||
| 	if ($php) { | ||||
| 		$body = $_POST['body']; | ||||
| 	} | ||||
| 	else if (isset($_POST['body'])) { | ||||
| 		//$body = $_POST['body']; | ||||
| 		$body = html_entity_decode(stripslashes($_POST['body'])); | ||||
| 	} | ||||
|  | ||||
| 	if (isset($_POST['access'])) { | ||||
| 		$access = $_POST['access']; | ||||
| 	} | ||||
|  | ||||
| 	$errors = array(); | ||||
| 	$player_id = 1; | ||||
|  | ||||
| 	if ($action == 'new') { | ||||
| 		if (isset($p_title) && Pages::add($name, $p_title, $body, $player_id, $php, $enable_tinymce, $access, $errors)) { | ||||
| 			$name = $p_title = $body = ''; | ||||
| 			$player_id = $access = 0; | ||||
| 			$php = false; | ||||
| 			$enable_tinymce = true; | ||||
| 			success('Added successful.'); | ||||
| 		} | ||||
| 	} else if ($action == 'delete') { | ||||
| 		if (Pages::delete($id, $errors)) | ||||
| 			success('Page with id ' . $id . ' has been deleted'); | ||||
| 	} else if ($action == 'edit') { | ||||
| 		if (isset($id) && !isset($_POST['name'])) { | ||||
| 			$_page = Pages::get($id); | ||||
| 			$name = $_page['name']; | ||||
| 			$p_title = $_page['title']; | ||||
| 			$body = $_page['body']; | ||||
| 			$php = $_page['php'] == '1'; | ||||
| 			$enable_tinymce = $_page['enable_tinymce'] == '1'; | ||||
| 			$access = $_page['access']; | ||||
| 		} else { | ||||
| 			if(Pages::update($id, $name, $p_title, $body, $player_id, $php, $enable_tinymce, $access, $errors)) { | ||||
| 				$action = $name = $p_title = $body = ''; | ||||
| 				$player_id = 1; | ||||
| 				$access = 0; | ||||
| 				$php = false; | ||||
| 				$enable_tinymce = true; | ||||
| 				success('Updated successful.'); | ||||
| 			} | ||||
| 		} | ||||
| 	} else if ($action == 'hide') { | ||||
| 		if (Pages::toggleHide($id, $errors, $status)) { | ||||
| 			success(($status == 0 ? 'Show' : 'Hide') . ' successful.'); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (!empty($errors)) | ||||
| 		error(implode(", ", $errors)); | ||||
| } | ||||
|  | ||||
| $pages = ModelsPages::all()->map(function ($e) { | ||||
| 	return [ | ||||
| 		'link' => getFullLink($e->name, $e->name, true), | ||||
| 		'title' => substr($e->title, 0, 20), | ||||
| 		'php' => $e->php == '1', | ||||
| 		'id' => $e->id, | ||||
| 		'hide' => $e->hide | ||||
| 	]; | ||||
| })->toArray(); | ||||
|  | ||||
| $twig->display('admin.pages.form.html.twig', [ | ||||
| 	'action' => $action, | ||||
| 	'id' => $action == 'edit' ? $id : null, | ||||
| 	'name' => $name, | ||||
| 	'title' => $p_title, | ||||
| 	'php' => $php, | ||||
| 	'enable_tinymce' => $enable_tinymce, | ||||
| 	'body' => isset($body) ? escapeHtml($body) : '', | ||||
| 	'groups' => $groups->getGroups(), | ||||
| 	'access' => $access | ||||
| ]); | ||||
|  | ||||
| $twig->display('admin.pages.html.twig', [ | ||||
| 	'pages' => $pages | ||||
| ]); | ||||
							
								
								
									
										19
									
								
								admin/pages/phpinfo.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,19 @@ | ||||
| <?php | ||||
| /** | ||||
|  * PHP Info | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'PHP Info'; | ||||
|  | ||||
| if (!function_exists('phpinfo')) { ?> | ||||
| 	<b>phpinfo()</b> function is disabled in your webserver config.<br/> | ||||
| 	You can enable it by editing <b>php.ini</b> file. | ||||
| 	<?php return; | ||||
| } | ||||
| ?> | ||||
| <iframe src="<?php echo ADMIN_URL; ?>tools/phpinfo.php" width="1024" height="550"></iframe> | ||||
							
								
								
									
										906
									
								
								admin/pages/players.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,906 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Players editor | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Forum; | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| $title = 'Player editor'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| $player_base = ADMIN_URL . '?p=players'; | ||||
|  | ||||
| $use_datatable = true; | ||||
|  | ||||
| $skills = array( | ||||
| 	POT::SKILL_FIST => array('Fist fighting', 'fist'), | ||||
| 	POT::SKILL_CLUB => array('Club fighting', 'club'), | ||||
| 	POT::SKILL_SWORD => array('Sword fighting', 'sword'), | ||||
| 	POT::SKILL_AXE => array('Axe fighting', 'axe'), | ||||
| 	POT::SKILL_DIST => array('Distance fighting', 'dist'), | ||||
| 	POT::SKILL_SHIELD => array('Shielding', 'shield'), | ||||
| 	POT::SKILL_FISH => array('Fishing', 'fish') | ||||
| ); | ||||
|  | ||||
| $hasBlessingsColumn = $db->hasColumn('players', 'blessings'); | ||||
| $hasBlessingColumn = $db->hasColumn('players', 'blessings1'); | ||||
| $hasLookAddons = $db->hasColumn('players', 'lookaddons'); | ||||
|  | ||||
| $skull_type = array("None", "Yellow", "Green", "White", "Red", "Black", "Orange"); | ||||
| ?> | ||||
|  | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>tools/css/jquery.datetimepicker.css"/ > | ||||
| <script src="<?php echo BASE_URL; ?>tools/js/jquery.datetimepicker.js"></script> | ||||
|  | ||||
| <?php | ||||
| $id = 0; | ||||
| $search_player = ''; | ||||
| if (isset($_REQUEST['id'])) | ||||
| 	$id = (int)$_REQUEST['id']; | ||||
| else if (isset($_REQUEST['search'])) { | ||||
| 	$search_player = $_REQUEST['search']; | ||||
| 	if (strlen($search_player) < 3 && !Validator::number($search_player)) { | ||||
| 		echo_error('Player name is too short.'); | ||||
| 	} else { | ||||
| 		$query = $db->query('SELECT `id` FROM `players` WHERE `name` = ' . $db->quote($search_player)); | ||||
| 		if ($query->rowCount() == 1) { | ||||
| 			$query = $query->fetch(); | ||||
| 			$id = (int)$query['id']; | ||||
| 		} else { | ||||
| 			$query = $db->query('SELECT `id`, `name` FROM `players` WHERE `name` LIKE ' . $db->quote('%' . $search_player . '%')); | ||||
| 			if ($query->rowCount() > 0 && $query->rowCount() <= 10) { | ||||
| 				$str_construct = 'Do you mean?<ul>'; | ||||
| 				foreach ($query as $row) | ||||
| 					$str_construct .= '<li><a href="' . $player_base . '&id=' . $row['id'] . '">' . $row['name'] . '</a></li>'; | ||||
| 				$str_construct .= '</ul>'; | ||||
| 				echo_error($str_construct); | ||||
| 			} else if ($query->rowCount() > 10) | ||||
| 				echo_error('Specified name resulted with too many players.'); | ||||
| 			else | ||||
| 				echo_error('No entries found.'); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| ?> | ||||
| <div class="row"> | ||||
| 	<?php | ||||
| 	$groups = new OTS_Groups_List(); | ||||
| 	if ($id > 0) { | ||||
| 		$player = new OTS_Player(); | ||||
| 		$player->load($id); | ||||
|  | ||||
| 		if ($player->isLoaded() && isset($_POST['save'])) {// we want to save | ||||
| 			$error = false; | ||||
|  | ||||
| 			if ($player->isOnline()) | ||||
| 				echo_error('This player is actually online. You can\'t edit online players.'); | ||||
|  | ||||
| 			$name = $_POST['name']; | ||||
| 			$_error = ''; | ||||
| 			if (!Validator::characterName($name)) | ||||
| 				echo_error(Validator::getLastError()); | ||||
|  | ||||
| 			//if(!Validator::newCharacterName($name) | ||||
| 			//	echo_error(Validator::getLastError()); | ||||
|  | ||||
| 			$player_db = new OTS_Player(); | ||||
| 			$player_db->find($name); | ||||
| 			if ($player_db->isLoaded() && $player->getName() != $name) | ||||
| 				echo_error('This name is already used. Please choose another name!'); | ||||
|  | ||||
| 			$account_id = $_POST['account_id']; | ||||
| 			verify_number($account_id, 'Account id', 11); | ||||
|  | ||||
| 			$account_db = new OTS_Account(); | ||||
| 			$account_db->load($account_id); | ||||
| 			if (!$account_db->isLoaded()) | ||||
| 				echo_error('Account with this id doesn\'t exist.'); | ||||
|  | ||||
| 			$group = $_POST['group']; | ||||
| 			if ($groups->getGroup($group) == false) | ||||
| 				echo_error('Group with this id doesn\'t exist'); | ||||
|  | ||||
| 			$level = $_POST['level']; | ||||
| 			verify_number($level, 'Level', 11); | ||||
|  | ||||
| 			$experience = $_POST['experience']; | ||||
| 			verify_number($experience, 'Experience', 20); | ||||
|  | ||||
| 			$vocation = $_POST['vocation']; | ||||
| 			verify_number($vocation, 'Vocation id', 11); | ||||
|  | ||||
| 			if (!isset($config['vocations'][$vocation])) { | ||||
| 				echo_error("Vocation with this id doesn't exist."); | ||||
| 			} | ||||
|  | ||||
| 			// health | ||||
| 			$health = $_POST['health']; | ||||
| 			verify_number($health, 'Health', 11); | ||||
| 			$health_max = $_POST['health_max']; | ||||
| 			verify_number($health_max, 'Health max', 11); | ||||
|  | ||||
| 			// mana | ||||
| 			$magic_level = $_POST['magic_level']; | ||||
| 			verify_number($magic_level, 'Magic_level', 11); | ||||
| 			$mana = $_POST['mana']; | ||||
| 			verify_number($mana, 'Mana', 11); | ||||
| 			$mana_max = $_POST['mana_max']; | ||||
| 			verify_number($mana_max, 'Mana max', 11); | ||||
| 			$mana_spent = $_POST['mana_spent']; | ||||
| 			verify_number($mana_spent, 'Mana spent', 11); | ||||
|  | ||||
| 			// look | ||||
| 			$look_body = $_POST['look_body']; | ||||
| 			verify_number($look_body, 'Look body', 11); | ||||
| 			$look_feet = $_POST['look_feet']; | ||||
| 			verify_number($look_feet, 'Look feet', 11); | ||||
| 			$look_head = $_POST['look_head']; | ||||
| 			verify_number($look_head, 'Look head', 11); | ||||
| 			$look_legs = $_POST['look_legs']; | ||||
| 			verify_number($look_legs, 'Look legs', 11); | ||||
| 			$look_type = $_POST['look_type']; | ||||
| 			verify_number($look_type, 'Look type', 11); | ||||
| 			if ($hasLookAddons) { | ||||
| 				$look_addons = $_POST['look_addons']; | ||||
| 				verify_number($look_addons, 'Look addons', 11); | ||||
| 			} | ||||
|  | ||||
| 			// pos | ||||
| 			$pos_x = $_POST['pos_x']; | ||||
| 			verify_number($pos_x, 'Position x', 11); | ||||
| 			$pos_y = $_POST['pos_y']; | ||||
| 			verify_number($pos_y, 'Position y', 11); | ||||
| 			$pos_z = $_POST['pos_z']; | ||||
| 			verify_number($pos_z, 'Position z', 11); | ||||
|  | ||||
| 			$soul = $_POST['soul']; | ||||
| 			verify_number($soul, 'Soul', 10); | ||||
|  | ||||
| 			$town = $_POST['town']; | ||||
| 			verify_number($town, 'Town', 11); | ||||
|  | ||||
| 			$capacity = $_POST['capacity']; | ||||
| 			verify_number($capacity, 'Capacity', 11); | ||||
| 			$sex = $_POST['sex']; | ||||
| 			verify_number($sex, 'Sex', 1); | ||||
|  | ||||
| 			$lastlogin = strtotime($_POST['lastlogin']); | ||||
| 			verify_number($lastlogin, 'Last login', 20); | ||||
| 			$lastlogout = strtotime($_POST['lastlogout']); | ||||
| 			verify_number($lastlogout, 'Last logout', 20); | ||||
|  | ||||
| 			$skull = $_POST['skull']; | ||||
| 			verify_number($skull, 'Skull', 1); | ||||
| 			$skull_time = $_POST['skull_time']; | ||||
| 			verify_number($skull_time, 'Skull time', 11); | ||||
|  | ||||
| 			if ($db->hasColumn('players', 'loss_experience')) { | ||||
| 				$loss_experience = $_POST['loss_experience']; | ||||
| 				verify_number($loss_experience, 'Loss experience', 11); | ||||
| 				$loss_mana = $_POST['loss_mana']; | ||||
| 				verify_number($loss_mana, 'Loss mana', 11); | ||||
| 				$loss_skills = $_POST['loss_skills']; | ||||
| 				verify_number($loss_skills, 'Loss skills', 11); | ||||
| 				$loss_containers = $_POST['loss_containers']; | ||||
| 				verify_number($loss_containers, 'Loss loss_containers', 11); | ||||
| 				$loss_items = $_POST['loss_items']; | ||||
| 				verify_number($loss_items, 'Loss items', 11); | ||||
| 			} | ||||
| 			if ($db->hasColumn('players', 'offlinetraining_time')) { | ||||
| 				$offlinetraining = $_POST['offlinetraining']; | ||||
| 				verify_number($offlinetraining, 'Offline Training time', 11); | ||||
| 			} | ||||
|  | ||||
| 			if ($hasBlessingsColumn) { | ||||
| 				$blessings = $_POST['blessings']; | ||||
| 				verify_number($blessings, 'Blessings', 2); | ||||
| 			} | ||||
|  | ||||
| 			$balance = $_POST['balance']; | ||||
| 			verify_number($balance, 'Balance', 20); | ||||
| 			if ($db->hasColumn('players', 'stamina')) { | ||||
| 				$stamina = $_POST['stamina']; | ||||
| 				verify_number($stamina, 'Stamina', 20); | ||||
| 			} | ||||
|  | ||||
| 			$deleted = (isset($_POST['deleted']) && $_POST['deleted'] == 'true'); | ||||
| 			$hide = (isset($_POST['hide']) && $_POST['hide'] == 'true'); | ||||
|  | ||||
| 			$created = strtotime($_POST['created']); | ||||
| 			verify_number($created, 'Created', 11); | ||||
|  | ||||
| 			$comment = isset($_POST['comment']) ? htmlspecialchars(stripslashes(substr($_POST['comment'], 0, 2000))) : NULL; | ||||
|  | ||||
| 			foreach ($_POST['skills'] as $skill => $value) | ||||
| 				verify_number($value, $skills[$skill][0], 10); | ||||
| 			foreach ($_POST['skills_tries'] as $skill => $value) | ||||
| 				verify_number($value, $skills[$skill][0] . ' tries', 10); | ||||
|  | ||||
| 			if ($hasBlessingColumn) { | ||||
| 				$bless_count = $_POST['blesscount']; | ||||
| 				for ($i = 1; $i <= $bless_count; $i++) { | ||||
| 					$a = 'blessing' . $i; | ||||
| 					${'blessing' . $i} = (isset($_POST[$a]) && $_POST[$a] == 'true'); | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			if (!$error) { | ||||
| 				$player->setName($name); | ||||
| 				$player->setAccount($account_db); | ||||
| 				$player->setGroup($groups->getGroup($group)); | ||||
| 				$player->setLevel($level); | ||||
| 				$player->setExperience($experience); | ||||
| 				$player->setVocation($vocation); | ||||
| 				$player->setHealth($health); | ||||
| 				$player->setHealthMax($health_max); | ||||
| 				$player->setMagLevel($magic_level); | ||||
| 				$player->setMana($mana); | ||||
| 				$player->setManaMax($mana_max); | ||||
| 				$player->setManaSpent($mana_spent); | ||||
| 				$player->setLookBody($look_body); | ||||
| 				$player->setLookFeet($look_feet); | ||||
| 				$player->setLookHead($look_head); | ||||
| 				$player->setLookLegs($look_legs); | ||||
| 				$player->setLookType($look_type); | ||||
| 				if ($hasLookAddons) | ||||
| 					$player->setLookAddons($look_addons); | ||||
| 				if ($db->hasColumn('players', 'offlinetraining_time')) | ||||
| 					$player->setCustomField('offlinetraining_time', $offlinetraining); | ||||
| 				$player->setPosX($pos_x); | ||||
| 				$player->setPosY($pos_y); | ||||
| 				$player->setPosZ($pos_z); | ||||
| 				$player->setSoul($soul); | ||||
| 				$player->setTownId($town); | ||||
| 				$player->setCap($capacity); | ||||
| 				$player->setSex($sex); | ||||
| 				$player->setLastLogin($lastlogin); | ||||
| 				$player->setLastLogout($lastlogout); | ||||
| 				//$player->setLastIP(ip2long($lastip)); | ||||
| 				$player->setSkull($skull); | ||||
| 				$player->setSkullTime($skull_time); | ||||
| 				if ($db->hasColumn('players', 'loss_experience')) { | ||||
| 					$player->setLossExperience($loss_experience); | ||||
| 					$player->setLossMana($loss_mana); | ||||
| 					$player->setLossSkills($loss_skills); | ||||
| 					$player->setLossContainers($loss_containers); | ||||
| 					$player->setLossItems($loss_items); | ||||
| 				} | ||||
| 				if ($db->hasColumn('players', 'blessings')) | ||||
| 					$player->setBlessings($blessings); | ||||
|  | ||||
| 				if ($hasBlessingColumn) { | ||||
| 					for ($i = 1; $i <= $bless_count; $i++) { | ||||
| 						$a = 'blessing' . $i; | ||||
| 						$player->setCustomField('blessings' . $i, ${'blessing' . $i} ? '1' : '0'); | ||||
| 					} | ||||
| 				} | ||||
| 				$player->setBalance($balance); | ||||
| 				if ($db->hasColumn('players', 'stamina')) | ||||
| 					$player->setStamina($stamina); | ||||
| 				if ($db->hasColumn('players', 'deletion')) | ||||
| 					$player->setCustomField('deletion', $deleted ? '1' : '0'); | ||||
| 				else | ||||
| 					$player->setCustomField('deleted', $deleted ? '1' : '0'); | ||||
| 				$player->setCustomField('hide', $hide ? '1' : '0'); | ||||
| 				$player->setCustomField('created', $created); | ||||
| 				if (isset($comment)) | ||||
| 					$player->setCustomField('comment', $comment); | ||||
|  | ||||
| 				foreach ($_POST['skills'] as $skill => $value) { | ||||
| 					$player->setSkill($skill, $value); | ||||
| 				} | ||||
| 				foreach ($_POST['skills_tries'] as $skill => $value) { | ||||
| 					$player->setSkillTries($skill, $value); | ||||
| 				} | ||||
| 				$player->save(); | ||||
| 				echo_success('Player saved at: ' . date('G:i')); | ||||
| 				$player->load($id); | ||||
| 			} | ||||
| 		} | ||||
| 	} else if ($id == 0) { | ||||
| 		$players_db = $db->query('SELECT `id`, `name`, `level` FROM `players` ORDER BY `id` asc'); | ||||
| 		?> | ||||
| 		<div class="col-12 col-sm-12 col-lg-10"> | ||||
| 			<div class="card card-info card-outline"> | ||||
| 				<div class="card-header"> | ||||
| 					<h5 class="m-0">Players</h5> | ||||
| 				</div> | ||||
| 				<div class="card-body"> | ||||
| 					<table class="player_datatable table table-striped table-bordered table-responsive d-md-table"> | ||||
| 						<thead> | ||||
| 						<tr> | ||||
| 							<th>ID</th> | ||||
| 							<th>Name</th> | ||||
| 							<th>Level</th> | ||||
| 							<th style="width: 40px">Edit</th> | ||||
| 						</tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 						<?php foreach ($players_db as $player_db): ?> | ||||
| 							<tr> | ||||
| 								<th><?php echo $player_db['id']; ?></th> | ||||
| 								<td><?php echo $player_db['name']; ?></a></td> | ||||
| 								<td><?php echo $player_db['level']; ?></a></td> | ||||
|  | ||||
| 								<td><a href="?p=players&id=<?php echo $player_db['id']; ?>" class="btn btn-success btn-sm" title="Edit"> | ||||
| 										<i class="fas fa-pencil-alt"></i> | ||||
| 									</a> | ||||
| 								</td> | ||||
| 							</tr> | ||||
| 						<?php endforeach; ?> | ||||
| 						</tbody> | ||||
| 					</table> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	<?php } ?> | ||||
|  | ||||
| 	<?php | ||||
| 	if (isset($player) && $player->isLoaded()) { | ||||
| 		$account = $player->getAccount(); | ||||
| 		?> | ||||
| 		<div class="col-12 col-sm-12 col-lg-10"> | ||||
| 			<div class="card card-primary card-outline card-outline-tabs"> | ||||
| 				<div class="card-header p-0 border-bottom-0"> | ||||
| 					<ul class="nav nav-tabs" id="tabs-tab" role="tablist"> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link active" id="tabs-home-tab" data-toggle="pill" href="#tabs-home">Player</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-home-tab" data-toggle="pill" href="#tabs-stats">Stats</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-home-tab" data-toggle="pill" href="#tabs-skills">Skills</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-home-tab" data-toggle="pill" href="#tabs-pos">Pos/Look</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-home-tab" data-toggle="pill" href="#tabs-misc">Misc</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-posts-tab" data-toggle="pill" href="#tabs-posts">Posts</a> | ||||
| 						</li> | ||||
| 						<li class="nav-item"> | ||||
| 							<a class="nav-link" id="tabs-chars-tab" data-toggle="pill" href="#tabs-chars">Characters</a> | ||||
| 						</li> | ||||
| 					</ul> | ||||
| 				</div> | ||||
| 				<form action="<?php echo $player_base . ($id > 0 ? '&id=' . $id : ''); ?>" method="post"> | ||||
| 					<?php csrf(); ?> | ||||
| 					<div class="card-body"> | ||||
| 						<div class="tab-content" id="tabs-tabContent"> | ||||
| 							<div class="tab-pane fade active show" id="tabs-home"> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="name" class="control-label">Name</label> | ||||
| 										<input type="text" class="form-control" id="name" name="name" autocomplete="off" value="<?php echo $player->getName(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="account_id">Account id:</label> | ||||
| 										<input type="text" class="form-control" id="account_id" name="account_id" autocomplete="off" size="8" maxlength="11" value="<?php echo $account->getId(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="group">Group:</label> | ||||
| 										<select name="group" id="group" class="form-control custom-select"> | ||||
| 											<?php foreach ($groups->getGroups() as $_id => $group): ?> | ||||
| 												<option value="<?php echo $_id; ?>" <?php echo($player->getGroup()->getId() == $_id ? 'selected' : ''); ?>><?php echo $group->getName(); ?></option> | ||||
| 											<?php endforeach; ?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="vocation">Vocation</label> | ||||
| 										<select name="vocation" id="vocation" class="form-control custom-select"> | ||||
| 											<?php | ||||
| 											foreach ($config['vocations'] as $_id => $name) { | ||||
| 												echo '<option value=' . $_id . ($_id == $player->getVocation() ? ' selected' : '') . '>' . $name . '</option>'; | ||||
| 											} | ||||
| 											?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="sex">Sex:</label> | ||||
| 										<select name="sex" id="sex" class="form-control custom-select">> | ||||
| 											<?php foreach ($config['genders'] as $_id => $sex): ?> | ||||
| 												<option value="<?php echo $_id; ?>" <?php echo($player->getSex() == $_id ? 'selected' : ''); ?>><?php echo strtolower($sex); ?></option> | ||||
| 											<?php endforeach; ?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="town">Town:</label> | ||||
| 										<select name="town" id="town" class="form-control"> | ||||
| 											<?php | ||||
| 											$configTowns = config('towns'); | ||||
| 											if (!isset($configTowns[$player->getTownId()])) { | ||||
| 												$configTowns[$player->getTownId()] = 'Unknown Town'; | ||||
| 											} | ||||
|  | ||||
| 											foreach ($configTowns as $_id => $town): ?> | ||||
| 												<option value="<?php echo $_id; ?>" <?php echo($player->getTownId() == $_id ? 'selected' : ''); ?>><?php echo $town; ?></option> | ||||
| 											<?php endforeach; ?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="skull">Skull:</label> | ||||
| 										<select name="skull" id="skull" class="form-control custom-select"> | ||||
| 											<?php | ||||
|  | ||||
| 											foreach ($skull_type as $_id => $s_name) { | ||||
| 												echo '<option value=' . $_id . ($_id == $player->getSkull() ? ' selected' : '') . '>' . $s_name . '</option>'; | ||||
| 											} | ||||
| 											?> | ||||
| 										</select> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="skull_time">Skull time:</label> | ||||
| 										<input type="text" class="form-control" id="skull_time" name="skull_time" | ||||
| 											   autocomplete="off" maxlength="11" | ||||
| 											   value="<?php echo $player->getSkullTime(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<?php if ($hasBlessingColumn): | ||||
| 										$bless_count = $player->countBlessings(); | ||||
| 										$bless = $player->checkBlessings($bless_count); ?> | ||||
| 										<input type="hidden" name="blesscount" value="<?php echo $bless_count; ?>"/> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label>Blessings:</label><br/> | ||||
| 											<?php for ($i = 1; $i <= $bless_count; $i++): ?> | ||||
| 												<label><input class="" type="checkbox" name="blessing<?php echo $i; ?>" id="blessing<?php echo $i; ?>" value="true"<?php echo(($bless[$i - 1] == 1) ? ' checked' : '') ?>/><?php echo $i; ?></label> | ||||
| 											<?php endfor ?> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<?php if ($hasBlessingsColumn): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="blessings">Blessings:</label> | ||||
| 											<input type="text" class="form-control" id="blessings" name="blessings" autocomplete="off" maxlength="11" value="<?php echo $player->getBlessings(); ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="balance" class="control-label">Bank Balance:</label> | ||||
| 										<input type="text" class="form-control" id="balance" name="balance" autocomplete="off" maxlength="20" value="<?php echo $player->getBalance(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<div class="custom-control custom-switch custom-switch-on-danger"> | ||||
| 											<input type="checkbox" class="custom-control-input" name="deleted" id="deleted" value="true" <?php echo($player->getCustomField($db->hasColumn('players', 'deletion') ? 'deletion' : 'deleted') == '1' ? ' checked' : ''); ?>> | ||||
| 											<label class="custom-control-label" for="deleted">Deleted</label> | ||||
| 										</div> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<div class="custom-control custom-switch custom-switch-on-success"> | ||||
| 											<input type="checkbox" class="custom-control-input" name="hide" id="hide" value="true" <?php echo($player->isHidden() ? ' checked' : ''); ?>> | ||||
| 											<label class="custom-control-label" for="hide">Hidden</label> | ||||
| 										</div> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-stats"> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="level" class="control-label">Level:</label> | ||||
| 										<input type="text" class="form-control" id="level" name="level" autocomplete="off" value="<?php echo $player->getLevel(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="experience" class="control-label">Experience:</label> | ||||
| 										<input type="text" class="form-control" id="experience" name="experience" autocomplete="off" value="<?php echo $player->getExperience(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="magic_level" class="control-label">Magic level:</label> | ||||
| 										<input type="text" class="form-control" id="magic_level" name="magic_level" autocomplete="off" size="8" maxlength="11" value="<?php echo $player->getMagLevel(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="mana_spent" class="control-label">Mana spent:</label> | ||||
| 										<input type="text" class="form-control" id="mana_spent" name="mana_spent" autocomplete="off" size="3" maxlength="11" value="<?php echo $player->getManaSpent(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="health" class="control-label">Health:</label> | ||||
| 										<input type="text" class="form-control" id="health" name="health" autocomplete="off" size="5" maxlength="11" value="<?php echo $player->getHealth(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="health_max" class="control-label">Health max:</label> | ||||
| 										<input type="text" class="form-control" id="health_max" name="health_max" autocomplete="off" size="5" maxlength="11" value="<?php echo $player->getHealthMax(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="mana" class="control-label">Mana:</label> | ||||
| 										<input type="text" class="form-control" id="mana" name="mana" autocomplete="off" size="3" maxlength="11" value="<?php echo $player->getMana(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="mana_max" class="control-label">Mana max:</label> | ||||
| 										<input type="text" class="form-control" id="mana_max" name="mana_max" autocomplete="off" size="3" maxlength="11" value="<?php echo $player->getManaMax(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="capacity" class="control-label">Capacity:</label> | ||||
| 										<input type="text" class="form-control" id="capacity" name="capacity" autocomplete="off" size="3" maxlength="11" value="<?php echo $player->getCap(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="soul" class="control-label">Soul:</label> | ||||
| 										<input type="text" class="form-control" id="soul" name="soul" autocomplete="off" size="3" maxlength="10" value="<?php echo $player->getSoul(); ?>"/> | ||||
| 									</div> | ||||
| 									<?php if ($db->hasColumn('players', 'stamina')): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="stamina" class="control-label">Stamina:</label> | ||||
| 											<input type="text" class="form-control" id="stamina" name="stamina" autocomplete="off" maxlength="20" value="<?php echo $player->getStamina(); ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 									<?php if ($db->hasColumn('players', 'offlinetraining_time')): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="offlinetraining" class="control-label">Offline Training | ||||
| 												Time:</label> | ||||
| 											<input type="text" class="form-control" id="offlinetraining" name="offlinetraining" autocomplete="off" maxlength="11" value="<?php echo $player->getCustomField('offlinetraining_time'); ?>"/> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-skills"> | ||||
| 								<?php | ||||
| 								foreach ($skills as $_id => $info) { | ||||
| 									?> | ||||
| 									<div class="form-group row"> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<?php echo '<label for="skills[' . $_id . ']" class="control-label">' . $info[0] . '</label> | ||||
| 									<input type="text" class="form-control" id="skills[' . $_id . ']" name="skills[' . $_id . ']" maxlength="10" autocomplete="off" value="' . $player->getSkill($_id) . '"/>'; ?> | ||||
| 										</div> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<?php echo '<label for="skills_tries[' . $_id . ']" class="control-label">' . $info[0] . ' tries</label> | ||||
| 									<input type="text" class="form-control" id="skills_tries[' . $_id . ']" name="skills_tries[' . $_id . ']" maxlength="10" autocomplete="off" value="' . $player->getSkillTries($_id) . '"/>'; ?> | ||||
| 										</div> | ||||
| 									</div> | ||||
| 								<?php } ?> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-pos"> | ||||
| 								<?php $outfit = setting('core.outfit_images_url') . '?id=' . $player->getLookType() . ($hasLookAddons ? '&addons=' . $player->getLookAddons() : '') . '&head=' . $player->getLookHead() . '&body=' . $player->getLookBody() . '&legs=' . $player->getLookLegs() . '&feet=' . $player->getLookFeet(); ?> | ||||
| 								<div id="imgchar" style="width:64px;height:64px;position:absolute; top:30px; right:30px"> | ||||
| 									<img id="player_outfit" style="margin-left:0;margin-top:0;width:64px;height:64px;" src="<?php echo $outfit; ?>" alt="player outfit"/> | ||||
| 								</div> | ||||
| 								<td>Position:</td> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="pos_x" class="control-label">X:</label> | ||||
| 										<input type="text" class="form-control" id="pos_x" name="pos_x" autocomplete="off" maxlength="11" value="<?php echo $player->getPosX(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="pos_y" class="control-label">Y:</label> | ||||
| 										<input type="text" class="form-control" id="pos_y" name="pos_y" autocomplete="off" maxlength="11" value="<?php echo $player->getPosY(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-4"> | ||||
| 										<label for="pos_z" class="control-label">Z:</label> | ||||
| 										<input type="text" class="form-control" id="pos_z" name="pos_z" autocomplete="off" maxlength="11" value="<?php echo $player->getPosZ(); ?>"/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<td>Look:</td> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-3"> | ||||
| 										<label for="look_head" class="control-label">Head: <span id="look_head_val" class="font-weight-bold text-primary"></span></label> | ||||
| 										<input class="custom-range" type="range" min="0" max="132" id="look_head" name="look_head" value="<?php echo $player->getLookHead(); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-3"> | ||||
| 										<label for="look_body" class="control-label">Body: <span id="look_body_val" class="font-weight-bold text-primary"></span></label> | ||||
| 										<input type="range" min="0" max="132" | ||||
| 											   value="<?php echo $player->getLookBody(); ?>" | ||||
| 											   class="custom-range" id="look_body" name="look_body"> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-3"> | ||||
| 										<label for="look_legs" class="control-label">Legs: <span id="look_legs_val" class="font-weight-bold text-primary"></span></label> | ||||
| 										<input type="range" min="0" max="132" | ||||
| 											   value="<?php echo $player->getLookLegs(); ?>" | ||||
| 											   class="custom-range" id="look_legs" name="look_legs"> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-3"> | ||||
| 										<label for="look_feet" class="control-label">Feet: <span id="look_feet_val" class="font-weight-bold text-primary"></span></label> | ||||
| 										<input type="range" min="0" max="132" | ||||
| 											   value="<?php echo $player->getLookBody(); ?>" | ||||
| 											   class="custom-range" id="look_feet" name="look_feet"> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="look_type" class="control-label">Type:</label> | ||||
| 										<?php | ||||
| 										$outfitlist = null; | ||||
| 										$outfitlist = Outfits_loadfromXML(); | ||||
| 										if ($outfitlist) { ?> | ||||
| 											<select name="look_type" id="look_type" class="form-control custom-select"> | ||||
| 												<?php | ||||
| 												foreach ($outfitlist as $_id => $outfit) { | ||||
| 													if ($outfit['enabled'] == 'yes') ; | ||||
| 													echo '<option value=' . $outfit['id'] . ($outfit['id'] == $player->getLookType() ? ' selected' : '') . '>' . $outfit['name'] . ' - ' . ($outfit['type'] == 1 ? 'Male' : 'Female') . '</option>'; | ||||
| 												} | ||||
| 												?> | ||||
| 											</select> | ||||
| 										<?php } else { ?> | ||||
| 											<input type="text" class="form-control" id="look_type" name="look_type" autocomplete="off" maxlength="11" value="<?php echo $player->getLookType(); ?>"/> | ||||
| 										<?php } ?> | ||||
| 									</div> | ||||
| 									<?php if ($hasLookAddons): ?> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="look_addons" class="control-label">Addons:</label> | ||||
| 											<select name="look_addons" id="look_addons" class="form-control custom-select"> | ||||
| 												<?php | ||||
| 												$addon_type = array("None", "First", "Second", "Both"); | ||||
| 												foreach ($addon_type as $_id => $s_name) { | ||||
| 													echo '<option value=' . $_id . ($_id == $player->getLookAddons() ? ' selected' : '') . '>' . $s_name . '</option>'; | ||||
| 												} | ||||
| 												?> | ||||
| 											</select> | ||||
| 										</div> | ||||
| 									<?php endif; ?> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-misc"> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="created" class="control-label">Created:</label> | ||||
| 										<input type="text" class="form-control" id="created" name="created" | ||||
| 											   autocomplete="off" | ||||
| 											   maxlength="10" | ||||
| 											   value="<?php echo date("M d Y, H:i:s", $player->getCustomField('created')); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="lastlogin" class="control-label">Last login:</label> | ||||
| 										<input type="text" class="form-control" id="lastlogin" name="lastlogin" autocomplete="off" maxlength="20" value="<?php echo date("M d Y, H:i:s", $player->getLastLogin()); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="lastlogout" class="control-label">Last logout:</label> | ||||
| 										<input type="text" class="form-control" id="lastlogout" name="lastlogout" autocomplete="off" maxlength="20" value="<?php echo date("M d Y, H:i:s", $player->getLastLogout()); ?>"/> | ||||
| 									</div> | ||||
| 									<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 										<label for="lastip" class="control-label">Last IP:</label> | ||||
| 										<input type="text" class="form-control" id="lastip" name="lastip" autocomplete="off" maxlength="10" value="<?php | ||||
| 										if (strlen($player->getLastIP()) > 11) { | ||||
| 											echo inet_ntop($player->getLastIP()); | ||||
| 										} | ||||
| 										else { | ||||
| 											echo longToIp($player->getLastIP()); | ||||
| 										} | ||||
| 										?>" readonly/> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 								<?php if ($db->hasColumn('players', 'loss_experience')): ?> | ||||
| 									<div class="form-group row"> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="loss_experience" class="control-label">Experience | ||||
| 												Loss:</label> | ||||
| 											<input type="text" class="form-control" id="loss_experience" name="loss_experience" autocomplete="off" maxlength="11" value="<?php echo $player->getLossExperience(); ?>"/> | ||||
| 										</div> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="loss_mana" class="control-label">Mana Loss:</label> | ||||
| 											<input type="text" class="form-control" id="loss_mana" name="loss_mana" autocomplete="off" maxlength="11" value="<?php echo $player->getLossMana(); ?>"/> | ||||
| 										</div> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="loss_skills" class="control-label">Skills Loss:</label> | ||||
| 											<input type="text" class="form-control" id="loss_skills" name="loss_skills" autocomplete="off" maxlength="11" value="<?php echo $player->getLossSkills(); ?>"/> | ||||
| 										</div> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="loss_containers" class="control-label">Containers Loss:</label> | ||||
| 											<input type="text" class="form-control" id="loss_containers" name="loss_containers" autocomplete="off" maxlength="11" value="<?php echo $player->getLossContainers(); ?>"/> | ||||
| 										</div> | ||||
| 										<div class="col-12 col-sm-12 col-lg-6"> | ||||
| 											<label for="loss_items" class="control-label">Items Loss:</label> | ||||
| 											<input type="text" class="form-control" id="loss_items" name="loss_items" autocomplete="off" maxlength="11" value="<?php echo $player->getLossItems(); ?>"/> | ||||
| 										</div> | ||||
| 									</div> | ||||
| 								<?php endif; ?> | ||||
| 								<div class="form-group row"> | ||||
| 									<div class="col-12"> | ||||
| 										<label for="comment" class="control-label">Comment:</label> | ||||
| 										<textarea class="form-control" id="comment" name="comment" rows="10" cols="50" wrap="virtual"><?php echo $player->getCustomField("comment"); ?></textarea> | ||||
| 										<small>[max. length: 2000 chars, 50 lines (ENTERs)]</small> | ||||
| 									</div> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-posts"> | ||||
| 								<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 									<thead> | ||||
| 									<tr> | ||||
| 										<th class="w-25">Topic</th> | ||||
| 										<th>Content</th> | ||||
| 									</tr> | ||||
| 									</thead> | ||||
| 									<tbody> | ||||
| 									<?php | ||||
| 									$posts = $db->query('SELECT `author_guid`,`section`,`first_post`,`post_text`,`post_date`, `post_topic`,`post_html`,`post_smile`,`' . TABLE_PREFIX . 'forum_boards`.`name` AS `forum_Name` FROM `' . | ||||
| 										TABLE_PREFIX . 'forum` LEFT JOIN `' . TABLE_PREFIX . 'forum_boards` ON `' . | ||||
| 										TABLE_PREFIX . 'forum`.section = `' . TABLE_PREFIX . 'forum_boards`.id WHERE `author_guid` = "' . $player->getId() . '" ORDER BY `post_date` DESC LIMIT 10'); | ||||
| 									if ($posts->rowCount() > 0) { | ||||
| 										$posts = $posts->fetchAll(); | ||||
| 										foreach ($posts as $post) { | ||||
| 											$text = ($post['post_html'] > 0 ? $post['post_text'] : htmlspecialchars($post['post_text'])); | ||||
| 											$post['content'] = ($post['post_html'] > 0 ? $text : Forum::parseBBCode(nl2br($text), $post['post_smile'] == 0)); | ||||
| 											?> | ||||
| 											<tr> | ||||
| 												<th><?php echo htmlspecialchars($post['post_topic']); ?><br/><small><?php echo date('d M y H:i:s', $post['post_date']); ?></small><br/> | ||||
| 													Topic: <a href="<?php echo getForumThreadLink($post['first_post']); ?>" class="link-black text-sm"><i class="fa fa-share margin-r-5"></i> Link</a><br/> | ||||
| 													Forum: <a href="<?php echo getForumBoardLink($post['section']); ?>" class="link-black text-sm"><i class="fa fa-share margin-r-5"></i> <?php echo $post['forum_Name']; ?></a></th> | ||||
| 												<th><?php echo $post['content']; ?></th> | ||||
| 											</tr> | ||||
| 											<?php | ||||
| 										} | ||||
| 										unset($post); | ||||
| 									} else { | ||||
| 										echo '<tr><td colspan="2">This user has no posts</td></tr>'; | ||||
| 									}; ?> | ||||
| 									</tbody> | ||||
| 								</table> | ||||
| 							</div> | ||||
| 							<div class="tab-pane fade" id="tabs-chars"> | ||||
| 								<div class="row"> | ||||
| 									<?php | ||||
| 									if (isset($account) && $account->isLoaded()) { | ||||
| 										$account_players = Player::where('account_id', $account->getId())->orderBy('id')->get(); | ||||
| 										if (isset($account_players)) { ?> | ||||
| 											<table class="table table-striped table-condensed table-responsive d-md-table"> | ||||
| 												<thead> | ||||
| 												<tr> | ||||
| 													<th>#</th> | ||||
| 													<th>Name</th> | ||||
| 													<th>Level</th> | ||||
| 													<th>Vocation</th> | ||||
| 													<th style="width: 40px">Edit</th> | ||||
| 												</tr> | ||||
| 												</thead> | ||||
| 												<tbody> | ||||
| 												<?php foreach ($account_players as $i => $player): ?> | ||||
| 													<tr> | ||||
| 														<th><?php echo $i + 1; ?></th> | ||||
| 														<td><?php echo $player->name; ?></td> | ||||
| 														<td><?php echo $player->level; ?></td> | ||||
| 														<td><?php echo $player->vocation_name; ?></td> | ||||
| 														<td><a href="?p=players&id=<?php echo $player->getKey() ?>" class=" btn btn-success btn-sm" title="Edit"><i class="fas fa-pencil-alt"></i></a></td> | ||||
| 													</tr> | ||||
| 												<?php endforeach ?> | ||||
| 												</tbody> | ||||
| 											</table> | ||||
| 											<?php | ||||
| 										} | ||||
| 									} ?> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 					</div> | ||||
| 					<div class="card-footer text-center"> | ||||
| 						<input type="hidden" name="save" value="yes"/> | ||||
| 						<button type="submit" class="btn btn-info float-left"><i class="fas fa-update"></i> Update</button> | ||||
| 						<a href="<?php echo ADMIN_URL; ?>?p=accounts&id=<?php echo $account->getId(); ?>" class="btn btn-secondary">Edit Account</a> | ||||
| 						<a href="<?php echo ADMIN_URL; ?>?p=players" class="btn btn-danger float-right"><i class="fas fa-cancel"></i> Cancel</a> | ||||
| 					</div> | ||||
| 				</form> | ||||
| 			</div> | ||||
| 		</div> | ||||
|  | ||||
| 		<script type="text/javascript"> | ||||
| 			$('#lastlogin').datetimepicker({format: "M d Y, H:i:s",}); | ||||
| 			$('#lastlogout').datetimepicker({format: "M d Y, H:i:s",}); | ||||
| 			$('#created').datetimepicker({format: "M d Y, H:i:s",}); | ||||
|  | ||||
| 			$(document).ready(function () { | ||||
| 				const $headSpan = $('#look_head_val'); | ||||
| 				const $headvalue = $('#look_head'); | ||||
| 				$headSpan.html($headvalue.val()); | ||||
| 				$headvalue.on('input', () => { | ||||
| 					$headSpan.html($headvalue.val()); | ||||
| 				}); | ||||
| 				$headvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
|  | ||||
| 				const $bodySpan = $('#look_body_val'); | ||||
| 				const $bodyvalue = $('#look_body'); | ||||
| 				$bodySpan.html($bodyvalue.val()); | ||||
| 				$bodyvalue.on('input', () => { | ||||
| 					$bodySpan.html($bodyvalue.val()); | ||||
| 				}); | ||||
| 				$bodyvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
|  | ||||
| 				const $legsSpan = $('#look_legs_val'); | ||||
| 				const $legsvalue = $('#look_legs'); | ||||
| 				$legsSpan.html($legsvalue.val()); | ||||
| 				$legsvalue.on('input', () => { | ||||
| 					$legsSpan.html($legsvalue.val()); | ||||
| 				}); | ||||
| 				$legsvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
|  | ||||
| 				const $feetSpan = $('#look_feet_val'); | ||||
| 				const $feetvalue = $('#look_feet'); | ||||
| 				$feetSpan.html($feetvalue.val()); | ||||
| 				$feetvalue.on('input', () => { | ||||
| 					$feetSpan.html($feetvalue.val()); | ||||
| 				}); | ||||
| 				$feetvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
|  | ||||
| 				const $lookvalue = $('#look_type'); | ||||
| 				$lookvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
|  | ||||
| 				<?php if($hasLookAddons): ?> | ||||
| 				const $addonvalue = $('#look_addons'); | ||||
| 				$addonvalue.on('change', () => { | ||||
| 					updateOutfit(); | ||||
| 				}); | ||||
| 				<?php endif; ?> | ||||
| 			}); | ||||
|  | ||||
| 			function updateOutfit() { | ||||
| 				const look_head = $('#look_head').val(); | ||||
| 				const look_body = $('#look_body').val(); | ||||
| 				const look_legs = $('#look_legs').val(); | ||||
| 				const look_feet = $('#look_feet').val(); | ||||
| 				const look_type = $('#look_type').val(); | ||||
|  | ||||
| 				let look_addons = ''; | ||||
| 				<?php if($hasLookAddons): ?> | ||||
| 				look_addons = '&addons=' + $('#look_addons').val(); | ||||
| 				<?php endif; ?> | ||||
| 				$("#player_outfit").attr("src", '<?= setting('core.outfit_images_url'); ?>?id=' + look_type + look_addons + '&head=' + look_head + '&body=' + look_body + '&legs=' + look_legs + '&feet=' + look_feet); | ||||
| 			} | ||||
| 		</script> | ||||
| 	<?php } ?> | ||||
| 	<div class="col-12 col-sm-12 col-lg-2"> | ||||
| 		<div class="card card-info card-outline"> | ||||
| 			<div class="card-header"> | ||||
| 				<h5 class="m-0">Search Player</h5> | ||||
| 			</div> | ||||
| 			<div class="card-body row"> | ||||
| 				<div class="col-6 col-lg-12"> | ||||
| 					<form action="<?php echo $player_base; ?>" method="post"> | ||||
| 						<?php csrf(); ?> | ||||
| 						<label for="search">Player Name:</label> | ||||
| 						<div class="input-group input-group-sm"> | ||||
| 							<input type="text" class="form-control" id="search" name="search" value="<?= escapeHtml($search_player); ?>" maxlength="32" size="32"> | ||||
| 							<span class="input-group-append"><button type="submit" class="btn btn-info btn-flat">Search</button></span> | ||||
| 						</div> | ||||
| 					</form> | ||||
| 				</div> | ||||
| 				<div class="col-6 col-lg-12"> | ||||
| 					<form action="<?php echo $player_base; ?>" method="post"> | ||||
| 						<?php csrf(); ?> | ||||
| 						<label for="id">Player ID:</label> | ||||
| 						<div class="input-group input-group-sm"> | ||||
| 							<input type="text" class="form-control" id="id" name="id" value="<?= $id; ?>" maxlength="32" size="32"> | ||||
| 							<span class="input-group-append"><button type="submit" class="btn btn-info btn-flat">Search</button></span> | ||||
| 						</div> | ||||
| 					</form> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <script> | ||||
| 	$(function () { | ||||
| 		$('.player_datatable').DataTable({ | ||||
| 			"order": [[0, "asc"]] | ||||
| 		}); | ||||
| 	}); | ||||
| </script> | ||||
							
								
								
									
										140
									
								
								admin/pages/plugins.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,140 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Plugins | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Plugins; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Plugin manager'; | ||||
|  | ||||
| csrfProtect(); | ||||
|  | ||||
| $use_datatable = true; | ||||
|  | ||||
| if (!getBoolean(setting('core.admin_plugins_manage_enable'))) { | ||||
| 	warning('Plugin installation and management is disabled in Settings.<br/>If you wish to enable, go to Settings and enable <strong>Enable Plugins Manage</strong>.'); | ||||
| } | ||||
| else { | ||||
| 	$twig->display('admin.plugins.form.html.twig'); | ||||
|  | ||||
| 	if (isset($_POST['uninstall'])) { | ||||
| 		$uninstall = $_POST['uninstall']; | ||||
|  | ||||
| 		if (Plugins::uninstall($uninstall)) { | ||||
| 			success('Successfully uninstalled plugin ' . $uninstall); | ||||
| 		} else { | ||||
| 			error('Error while uninstalling plugin ' . $uninstall . ': ' . Plugins::getError()); | ||||
| 		} | ||||
| 	} else if (isset($_POST['enable'])) { | ||||
| 		$enable = $_POST['enable']; | ||||
| 		if (Plugins::enable($enable)) { | ||||
| 			success('Successfully enabled plugin ' . $enable); | ||||
| 		} else { | ||||
| 			error('Error while enabling plugin ' . $enable . ': ' . Plugins::getError()); | ||||
| 		} | ||||
| 	} else if (isset($_POST['disable'])) { | ||||
| 		$disable = $_POST['disable']; | ||||
| 		if (Plugins::disable($disable)) { | ||||
| 			success('Successfully disabled plugin ' . $disable); | ||||
| 		} else { | ||||
| 			error('Error while disabling plugin ' . $disable . ': ' . Plugins::getError()); | ||||
| 		} | ||||
| 	} else if (isset($_FILES['plugin']['name'])) { | ||||
| 		$file = $_FILES['plugin']; | ||||
| 		$filename = $file['name']; | ||||
| 		$tmp_name = $file['tmp_name']; | ||||
| 		$type = $file['type']; | ||||
|  | ||||
| 		$name = explode('.', $filename); | ||||
| 		$accepted_types = array('application/zip', 'application/x-zip-compressed', 'multipart/x-zip', 'application/x-compressed', 'application/octet-stream', 'application/zip-compressed'); | ||||
|  | ||||
| 		if (isset($file['error'])) { | ||||
| 			$error = 'Error uploading file'; | ||||
| 			switch ($file['error']) { | ||||
| 				case UPLOAD_ERR_OK: | ||||
| 					$error = false; | ||||
| 					break; | ||||
| 				case UPLOAD_ERR_INI_SIZE: | ||||
| 				case UPLOAD_ERR_FORM_SIZE: | ||||
| 					$error .= ' - file too large (limit of ' . ini_get('upload_max_filesize') . ' bytes). You can enlarge the limits by changing "upload_max_filesize" in php.ini'; | ||||
| 					break; | ||||
| 				case UPLOAD_ERR_PARTIAL: | ||||
| 					$error .= ' - file upload was not completed.'; | ||||
| 					break; | ||||
| 				case UPLOAD_ERR_NO_FILE: | ||||
| 					$error .= ' - zero-length file uploaded.'; | ||||
| 					break; | ||||
| 				default: | ||||
| 					$error .= ' - internal error #' . $file['error']; | ||||
| 					break; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		if (isset($error) && $error != false) { | ||||
| 			error($error); | ||||
| 		} else { | ||||
| 			if (is_uploaded_file($file['tmp_name'])) { | ||||
| 				$filetype = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); | ||||
| 				if ($filetype == 'zip') // check if it is zipped/compressed file | ||||
| 				{ | ||||
| 					$tmp_filename = pathinfo($filename, PATHINFO_FILENAME); | ||||
| 					$targetzip = BASE . 'plugins/' . $tmp_filename . '.zip'; | ||||
|  | ||||
| 					if (move_uploaded_file($tmp_name, $targetzip)) { // move uploaded file | ||||
| 						if (Plugins::install($targetzip)) { | ||||
| 							foreach (Plugins::getWarnings() as $warning) { | ||||
| 								warning($warning); | ||||
| 							} | ||||
|  | ||||
| 							$info = Plugins::getPluginJson(); | ||||
| 							success((isset($info['name']) ? '<strong>' . $info['name'] . '</strong> p' : 'P') . 'lugin has been successfully installed.'); | ||||
| 						} else { | ||||
| 							$error = Plugins::getError(); | ||||
| 							error(!empty($error) ? $error : 'Unexpected error happened while installing plugin. Please try again later.'); | ||||
| 						} | ||||
|  | ||||
| 						unlink($targetzip); // delete the Zipped file | ||||
| 					} else | ||||
| 						error('There was a problem with the upload. Please try again.'); | ||||
| 				} else { | ||||
| 					error('The file you are trying to upload is not a .zip file. Please try again.'); | ||||
| 				} | ||||
| 			} else { | ||||
| 				error('Error uploading file - unknown error.'); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| $plugins = array(); | ||||
| foreach (get_plugins(true) as $plugin) { | ||||
| 	$string = file_get_contents(BASE . 'plugins/' . $plugin . '.json'); | ||||
| 	$plugin_info = json_decode($string, true); | ||||
|  | ||||
| 	if (!$plugin_info) { | ||||
| 		warning('Cannot load plugin info ' . $plugin . '.json'); | ||||
| 	} else { | ||||
| 		$disabled = (str_contains($plugin, 'disabled.')); | ||||
| 		$pluginOriginal = ($disabled ? str_replace('disabled.', '', $plugin) : $plugin); | ||||
| 		$plugins[] = array( | ||||
| 			'name' => $plugin_info['name'] ?? '', | ||||
| 			'description' => $plugin_info['description'] ?? '', | ||||
| 			'version' => $plugin_info['version'] ?? '', | ||||
| 			'author' => $plugin_info['author'] ?? '', | ||||
| 			'contact' => $plugin_info['contact'] ?? '', | ||||
| 			'file' => $pluginOriginal, | ||||
| 			'enabled' => !$disabled, | ||||
| 			'uninstall' => isset($plugin_info['uninstall']) | ||||
| 		); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| $twig->display('admin.plugins.html.twig', array( | ||||
| 	'plugins' => $plugins | ||||
| )); | ||||
							
								
								
									
										61
									
								
								admin/pages/reports.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,61 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Reports | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Lee | ||||
|  * @copyright 2020 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Report Viewer'; | ||||
| $use_datatable = true; | ||||
|  | ||||
| $files = array(); | ||||
| $server_path_reports = $config['data_path'] . 'reports/'; | ||||
|  | ||||
| if (file_exists($server_path_reports)) { | ||||
| 	foreach (scandir($server_path_reports, SCANDIR_SORT_ASCENDING) as $f) { | ||||
| 		if ($f[0] === '.') { | ||||
| 			continue; | ||||
| 		} | ||||
|  | ||||
| 		if (is_dir($server_path_reports . $f)) { | ||||
| 			foreach (scandir($server_path_reports . $f, SCANDIR_SORT_ASCENDING) as $f2) { | ||||
| 				if ($f2[0] === '.') { | ||||
| 					continue; | ||||
| 				} | ||||
|  | ||||
| 				$files[] = array($f . '/' . $f2, $server_path_reports); | ||||
| 			} | ||||
|  | ||||
| 			continue; | ||||
| 		} | ||||
|  | ||||
| 		$files[] = array($f, $server_path_reports); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| foreach ($files as &$f) { | ||||
| 	$f['mtime'] = filemtime($f[1] . $f[0]); | ||||
| 	$f['name'] = $f[0]; | ||||
| } | ||||
|  | ||||
| unset($f); | ||||
|  | ||||
| $file = isset($_GET['file']) ? $_GET['file'] : NULL; | ||||
| if (!empty($file)) { | ||||
| 	if (!preg_match('/[^A-z0-9\' _\/\-\.]/', $file)) { | ||||
| 		if (file_exists($server_path_reports . $file)) { | ||||
| 			$file_content = nl2br(file_get_contents($server_path_reports . $file)); | ||||
|  | ||||
| 			$twig->display('admin.logs.view.html.twig', array('file' => $file, 'content' => $file_content)); | ||||
| 		} else { | ||||
| 			echo 'Specified file does not exist.'; | ||||
| 		} | ||||
| 	} else { | ||||
| 		echo 'Invalid file name specified.'; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| $twig->display('admin.reports.html.twig', array('files' => $files)); | ||||
							
								
								
									
										60
									
								
								admin/pages/settings.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,60 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Menus | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Plugins; | ||||
| use MyAAC\Settings; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Settings'; | ||||
|  | ||||
| require_once SYSTEM . 'clients.conf.php'; | ||||
| if (empty($_GET['plugin'])) { | ||||
| 	error('Please select plugin from left Panel.'); | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $plugin = $_GET['plugin']; | ||||
|  | ||||
| if($plugin != 'core') { | ||||
| 	$pluginSettings = Plugins::getPluginSettings($plugin); | ||||
| 	if (!$pluginSettings) { | ||||
| 		error('This plugin does not exist or does not have settings defined.'); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	$settingsFilePath = BASE . $pluginSettings; | ||||
| } | ||||
| else { | ||||
| 	$settingsFilePath = SYSTEM . 'settings.php'; | ||||
| } | ||||
|  | ||||
| if (!file_exists($settingsFilePath)) { | ||||
| 	error("Plugin $plugin does not exist or does not have settings defined."); | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $settingsFile = require $settingsFilePath; | ||||
| if (!is_array($settingsFile)) { | ||||
| 	error("Cannot load settings file for plugin $plugin"); | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $settingsKeyName = ($plugin == 'core' ? $plugin : $settingsFile['key']); | ||||
|  | ||||
| $title = ($plugin == 'core' ? 'Settings' : 'Plugin Settings - ' . $plugin); | ||||
|  | ||||
| $settingsParsed = Settings::display($settingsKeyName, $settingsFile['settings']); | ||||
|  | ||||
| $twig->display('admin.settings.html.twig', [ | ||||
| 	'settingsParsed' => $settingsParsed['content'], | ||||
| 	'settings' => $settingsFile['settings'], | ||||
| 	'script' => $settingsParsed['script'], | ||||
| 	'settingsKeyName' => $settingsKeyName, | ||||
| ]); | ||||
							
								
								
									
										37
									
								
								admin/pages/statistics.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,37 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Statistics | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
|  | ||||
| use MyAAC\Models\Account; | ||||
| use MyAAC\Models\Guild; | ||||
| use MyAAC\Models\House; | ||||
| use MyAAC\Models\Player; | ||||
|  | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Statistics'; | ||||
|  | ||||
| $total_accounts = Account::count(); | ||||
| $total_players = Player::count(); | ||||
| $total_guilds = Guild::count(); | ||||
| $total_houses = House::count(); | ||||
|  | ||||
| $points = Account::select(['premium_points', (USE_ACCOUNT_NAME ? 'name' : 'id')]) | ||||
| 	->orderByDesc('premium_points') | ||||
| 	->limit(10) | ||||
| 	->get() | ||||
| 	->toArray(); | ||||
|  | ||||
| $twig->display('admin.statistics.html.twig', array( | ||||
| 	'total_accounts' => $total_accounts, | ||||
| 	'total_players' => $total_players, | ||||
| 	'total_guilds' => $total_guilds, | ||||
| 	'total_houses' => $total_houses, | ||||
| 	'account_type' => (USE_ACCOUNT_NAME ? 'name' : 'number'), | ||||
| 	'points' => $points | ||||
| )); | ||||
							
								
								
									
										33
									
								
								admin/pages/tools.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,33 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Tools | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Tools'; | ||||
|  | ||||
| if (!isset($_GET['tool'])) { | ||||
| 	echo 'Tool not set.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $tool = $_GET['tool']; | ||||
| if (preg_match("/[^A-z0-9_\-]/", $tool)) { | ||||
| 	echo 'Invalid tool.'; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| $file = ADMIN . 'tools/' . $tool . '.php'; | ||||
|  | ||||
| if (@file_exists($file)) { | ||||
| 	require $file; | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| echo 'Tool <strong>' . $tool . '</strong> not found.'; | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										49
									
								
								admin/pages/version.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,49 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Version check | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
| $title = 'Version check'; | ||||
|  | ||||
| // fetch version | ||||
| //$file = @fopen('https://my-aac.org/VERSION', 'r') or die('Error while fetching version.'); | ||||
| //$myaac_version = fgets($file); | ||||
| $myaac_version = @file_get_contents('https://my-aac.org/VERSION'); | ||||
| if (!$myaac_version) { | ||||
| 	warning('Error while fetching version info from https://my-aac.org<br/> | ||||
| 	Please try again later.'); | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| // compare them | ||||
| $version_compare = version_compare($myaac_version, MYAAC_VERSION); | ||||
| if ($version_compare == 0) { | ||||
| 	success('MyAAC latest version is ' . $myaac_version . '. You\'re using the latest version. | ||||
| 	<br/>View CHANGELOG ' . generateLink(ADMIN_URL . '?p=clmd', 'here')); | ||||
| } else if ($version_compare < 0) { | ||||
| 	success('Woah, seems you\'re using newer version as latest released one! MyAAC latest released version is ' . $myaac_version . ', and you\'re using version ' . MYAAC_VERSION . '. | ||||
| 	<br/>View CHANGELOG ' . generateLink(ADMIN_URL . '?p=clmd', 'here')); | ||||
| } else { | ||||
| 	warning('You\'re using outdated version.<br/> | ||||
| 		Your version: <b>' . MYAAC_VERSION . '</b><br/> | ||||
| 		Latest version: <b>' . $myaac_version . '</b><br/> | ||||
| 		Download available at: <a href="https://my-aac.org" target="_blank">www.my-aac.org</a>'); | ||||
| } | ||||
|  | ||||
| /* | ||||
| function version_revert($version) | ||||
| { | ||||
| 	$major = floor($version / 10000); | ||||
| 	$version -= $major * 10000; | ||||
|  | ||||
| 	$minor = floor($version / 100); | ||||
| 	$version -= $minor * 100; | ||||
|  | ||||
| 	$release = $version; | ||||
| 	return $major . '.' . $minor . '.' . $release; | ||||
| }*/ | ||||
							
								
								
									
										66
									
								
								admin/pages/visitors.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,66 @@ | ||||
| <?php | ||||
| /** | ||||
|  * Visitors viewer | ||||
|  * | ||||
|  * @package   MyAAC | ||||
|  * @author    Slawkens <slawkens@gmail.com> | ||||
|  * @copyright 2019 MyAAC | ||||
|  * @link      https://my-aac.org | ||||
|  */ | ||||
| defined('MYAAC') or die('Direct access not allowed!'); | ||||
|  | ||||
| use DeviceDetector\DeviceDetector; | ||||
| use DeviceDetector\Parser\Client\Browser; | ||||
| use DeviceDetector\Parser\OperatingSystem; | ||||
| use MyAAC\Visitors; | ||||
|  | ||||
| $title = 'Visitors'; | ||||
| $use_datatable = true; | ||||
|  | ||||
| if (!setting('core.visitors_counter')): ?> | ||||
| 	Visitors counter is disabled.<br/> | ||||
| 	You can enable it by editing this configurable in <b>config.local.php</b> file:<br/> | ||||
| 	<p style="margin-left: 3em;"><b>$config['visitors_counter'] = true;</b></p> | ||||
| 	<?php | ||||
| 	return; | ||||
| endif; | ||||
|  | ||||
| $visitors = new Visitors(setting('core.visitors_counter_ttl')); | ||||
|  | ||||
| function compare($a, $b): int { | ||||
| 	return $a['lastvisit'] > $b['lastvisit'] ? -1 : 1; | ||||
| } | ||||
|  | ||||
| $tmp = $visitors->getVisitors(); | ||||
| usort($tmp, 'compare'); | ||||
|  | ||||
| foreach ($tmp as &$visitor) { | ||||
| 	$userAgent = $visitor['user_agent'] ?? ''; | ||||
| 	if (!strlen($userAgent) || $userAgent == 'unknown') { | ||||
| 		$browser = 'Unknown'; | ||||
| 	} | ||||
| 	else { | ||||
| 		$dd = new DeviceDetector($userAgent); | ||||
| 		$dd->parse(); | ||||
|  | ||||
| 		if ($dd->isBot()) { | ||||
| 			$bot = $dd->getBot(); | ||||
| 			$message = '(Bot) %s, <a href="%s" target="_blank">%s</a>'; | ||||
| 			$browser = sprintf($message, $bot['category'], $bot['url'], $bot['name']); | ||||
| 		} | ||||
| 		else { | ||||
| 			$osFamily = OperatingSystem::getOsFamily($dd->getOs('name')); | ||||
| 			$browserFamily = Browser::getBrowserFamily($dd->getClient('name')); | ||||
|  | ||||
| 			$browser = $osFamily . ', ' . $browserFamily; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	$visitor['browser'] = $browser; | ||||
| } | ||||
|  | ||||
| $twig->display('admin.visitors.html.twig', array( | ||||
| 	'config_visitors_counter_ttl' => setting('core.visitors_counter_ttl'), | ||||
| 	'visitors' => $tmp | ||||
| )); | ||||
| ?> | ||||
							
								
								
									
										69
									
								
								admin/template/menus.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,69 @@ | ||||
| <?php | ||||
|  | ||||
| $menus = [ | ||||
| 	['name' => 'Dashboard', 'icon' => 'tachometer-alt', 'order' => 10, 'link' => 'dashboard'], | ||||
| 	['name' => 'Settings', 'icon' => 'edit', 'order' => 19, 'link' => | ||||
| 		require ADMIN . 'includes/settings_menus.php' | ||||
| 	], | ||||
| 	['name' => 'News', 'icon' => 'newspaper', 'order' => 20,  'link' => | ||||
| 		[ | ||||
| 			['name' => 'View', 'link' => 'news', 'icon' => 'list', 'order' => 10], | ||||
| 			['name' => 'Add news', 'link' => 'news&action=new&type=1', 'icon' => 'plus', 'order' => 20], | ||||
| 			['name' => 'Add ticker', 'link' => 'news&action=new&type=2', 'icon' => 'plus', 'order' => 30], | ||||
| 			['name' => 'Add article', 'link' => 'news&action=new&type=3', 'icon' => 'plus', 'order' => 40], | ||||
| 		], | ||||
| 	], | ||||
| 	['name' => 'Changelogs', 'icon' => 'newspaper', 'order' => 30, 'link' => | ||||
| 		[ | ||||
| 			['name' => 'View', 'link' => 'changelog', 'icon' => 'list', 'order' => 10], | ||||
| 			['name' => 'Add', 'link' => 'changelog&action=new', 'icon' => 'plus', 'order' => 20], | ||||
| 		], | ||||
| 	], | ||||
| 	['name' => 'Mailer', 'icon' => 'envelope', 'order' => 40, 'link' => 'mailer', 'disabled' => !setting('core.mail_enabled')], | ||||
| 	['name' => 'Pages', 'icon' => 'book', 'order' => 50, 'link' => | ||||
| 		[ | ||||
| 			['name' => 'View', 'link' => 'pages', 'icon' => 'list', 'order' => 10], | ||||
| 			['name' => 'Add', 'link' => 'pages&action=new', 'icon' => 'plus', 'order' => 20], | ||||
| 		], | ||||
| 	], | ||||
| 	['name' => 'Menus', 'icon' => 'list', 'order' => 60, 'link' => 'menus'], | ||||
| 	['name' => 'Plugins', 'icon' => 'plug', 'order' => 70, 'link' => 'plugins'], | ||||
| 	['name' => 'Server Data', 'icon' => 'gavel', 'order' => 80, 'link' => 'data'], | ||||
| 	['name' => 'Editor', 'icon' => 'edit', 'order' => 90, 'link' => | ||||
| 		[ | ||||
| 			['name' => 'Accounts', 'link' => 'accounts', 'icon' => 'users', 'order' => 10], | ||||
| 			['name' => 'Players', 'link' => 'players', 'icon' => 'user-astronaut', 'order' => 20], | ||||
| 		], | ||||
| 	], | ||||
| 	['name' => 'Tools', 'icon' => 'tools', 'order' => 100, 'link' => | ||||
| 		[ | ||||
| 			['name' => 'Mass Account Actions', 'link' => 'mass_account', 'icon' => 'globe', 'order' => 10], | ||||
| 			['name' => 'Mass Teleport Actions', 'link' => 'mass_teleport', 'icon' => 'globe', 'order' => 20], | ||||
| 			['name' => 'Notepad', 'link' => 'notepad', 'icon' => 'marker', 'order' => 30], | ||||
| 			['name' => 'phpinfo', 'link' => 'phpinfo', 'icon' => 'server', 'order' => 40], | ||||
| 		], | ||||
| 	], | ||||
| 	['name' => 'Logs', 'icon' => 'bug', 'order' => 110, 'link' => | ||||
| 		[ | ||||
| 			['name' => 'Logs', 'link' => 'logs', 'icon' => 'book', 'order' => 10], | ||||
| 			['name' => 'Reports', 'link' => 'reports', 'icon' => 'book', 'order' => 20], | ||||
| 			['name' => 'Visitors', 'link' => 'visitors', 'icon' => 'user', 'order' => 30], | ||||
| 		], | ||||
| 	], | ||||
| ]; | ||||
|  | ||||
| $hooks->trigger(HOOK_ADMIN_MENU); | ||||
|  | ||||
| usort($menus, function ($a, $b) { | ||||
| 	return $a['order'] - $b['order']; | ||||
| }); | ||||
|  | ||||
| foreach ($menus as $i => $menu) { | ||||
| 	if (isset($menu['link']) && is_array($menu['link'])) { | ||||
| 		usort($menus[$i]['link'], function ($a, $b) { | ||||
| 			return $a['order'] - $b['order']; | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| return $menus; | ||||
							
								
								
									
										15
									
								
								admin/template/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,15 @@ | ||||
| .menu-text-li {color: #4b646f; background: #1a2226;} | ||||
| .menu-text { | ||||
| 	display: block; | ||||
| 	padding: .5rem 1rem; | ||||
| 	white-space: nowrap; | ||||
| } | ||||
|  | ||||
| .sidebar-mini.sidebar-collapse .menu-text { | ||||
| 	display: none; | ||||
| } | ||||
|  | ||||
| .myaac-table tbody tr:nth-child(even) {background: #FFF} /* light border */ | ||||
| .myaac-table tbody tr:nth-child(odd) {background: #CCC} /* dark border */ | ||||
| .myaac-table thead td {background: #000000; color: #ffffff !important;} /* vdark border */ | ||||
| .myaac-table tfoot td {background: #000000; color: #ffffff !important;} /* vdark border */ | ||||
							
								
								
									
										203
									
								
								admin/template/template.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,203 @@ | ||||
| <?php defined('MYAAC') or die('Direct access not allowed!'); ?> | ||||
| <!doctype html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
| 	<?php $hooks->trigger(HOOK_ADMIN_HEAD_START); ?> | ||||
| 	<?php echo template_header(true); ?> | ||||
| 	<title><?php echo (isset($title) ? $title . ' - ' : '') . $config['lua']['serverName'];?></title> | ||||
| 	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
| 	<link rel="stylesheet" href="<?php echo BASE_URL; ?>tools/css/adminlte.min.css"> | ||||
| 	<link rel="stylesheet" href="<?php echo BASE_URL; ?>tools/css/font-awesome.min.css"> | ||||
| 	<?php if (isset($use_datatable)) { ?> | ||||
| 	<link rel="stylesheet" href="<?php echo BASE_URL; ?>tools/css/datatables.bs.min.css"> | ||||
| 	<?php } ?> | ||||
| 	<link rel="stylesheet" type="text/css" href="<?php echo $template_path; ?>style.css"/> | ||||
| 	<!--[if lt IE 9]> | ||||
| 	<script src="<?php echo BASE_URL; ?>tools/js/html5shiv.min.js"></script> | ||||
| 	<script src="<?php echo BASE_URL; ?>tools/js/respond.min.js"></script> | ||||
| 	<![endif]--> | ||||
| 	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> | ||||
| 	<?php $hooks->trigger(HOOK_ADMIN_HEAD_END); ?> | ||||
| </head> | ||||
| <body class="sidebar-mini "> | ||||
| <?php $hooks->trigger(HOOK_ADMIN_BODY_START); ?> | ||||
| <?php if ($logged && admin()) { ?> | ||||
| 	<div class="wrapper"> | ||||
| 		<nav class="main-header navbar navbar-expand navbar-white navbar-light"> | ||||
| 			<ul class="navbar-nav"> | ||||
| 				<li class="nav-item"> | ||||
| 					<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a> | ||||
| 				</li> | ||||
| 				<li class="nav-item d-none d-sm-inline-block"> | ||||
| 					<a href="<?php echo ADMIN_URL; ?>" class="nav-link">Home</a> | ||||
| 				</li> | ||||
| 			</ul> | ||||
| 			<ul class="navbar-nav ml-auto"> | ||||
| 				<li class="nav-item"> | ||||
| 					<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#"><i class="fas fa-th-large"></i></a> | ||||
| 				</li> | ||||
| 			</ul> | ||||
| 		</nav> | ||||
| 		<aside class="main-sidebar sidebar-dark-info elevation-4"> | ||||
| 			<a href="<?php echo ADMIN_URL; ?>" class="brand-link navbar-info"> | ||||
| 				<img src="<?php echo ADMIN_URL; ?>images/logo.png" class="brand-image img-circle elevation-3" style="opacity: .8"> | ||||
| 				<span class="brand-text"><b>My</b>AAC</span> | ||||
| 			</a> | ||||
| 			<div class="sidebar"> | ||||
| 				<nav class="mt-1"> | ||||
| 					<ul class="nav nav-pills nav-sidebar flex-column nav-legacy nav-child-indent" data-widget="treeview" data-accordion="false"> | ||||
| 						<li class="menu-text-li"> | ||||
| 							<span class="menu-text"> | ||||
| 								<a class="text-info" href="<?php echo BASE_URL; ?>" target="_blank"> | ||||
| 									<?php echo $config['lua']['serverName'] ?> | ||||
| 								</a> | ||||
| 							</span> | ||||
| 						</li> | ||||
| 						<?php | ||||
| 						// name = Display name of link | ||||
| 						// icon = fontawesome icon name without "fas fa-" | ||||
| 						// link = Page link or use as array for sub items | ||||
| 						$menus = require __DIR__ . '/menus.php'; | ||||
|  | ||||
| 						foreach ($menus as $category => $menu) { | ||||
| 							if (isset($menu['disabled']) && $menu['disabled']) { | ||||
| 								continue; | ||||
| 							} | ||||
|  | ||||
| 							$has_child = is_array($menu['link']); | ||||
| 							if (!$has_child) { ?> | ||||
| 								<li class="nav-item"> | ||||
| 									<a class="nav-link<?php echo(strpos($menu['link'], $page) !== false ? ' active' : '') ?>" href="?p=<?php echo $menu['link'] ?>"> | ||||
| 										<i class="nav-icon fas fa-<?php echo($menu['icon'] ?? 'link') ?>"></i> | ||||
| 										<p><?php echo $menu['name'] ?></p> | ||||
| 									</a> | ||||
| 								</li> | ||||
| 								<?php | ||||
| 							} else if ($has_child) { | ||||
| 								$used_menu = null; | ||||
| 								$nav_construct = ''; | ||||
| 								foreach ($menu['link'] as $sub_category => $sub_menu) { | ||||
| 									$nav_construct .= '<li class="nav-item"><a href="?p=' . $sub_menu['link'] . '" class="nav-link'; | ||||
| 									if ($_SERVER['QUERY_STRING'] == 'p=' . $sub_menu['link']) { | ||||
| 										$nav_construct .= ' active'; | ||||
| 										$used_menu = true; | ||||
| 									} | ||||
| 									$nav_construct .= '"><i class="fas fa-' . ($sub_menu['icon'] ?? 'circle') . ' nav-icon"></i><p>' . $sub_menu['name'] . '</p></a></li>'; | ||||
| 								} | ||||
| 								?> | ||||
| 								<li class="nav-item has-treeview<?php echo($used_menu ? ' menu-open' : '') ?>"> | ||||
| 									<a href="#" class="nav-link<?php echo($used_menu ? ' active' : '') ?>"> | ||||
| 										<i class="nav-icon fas fa-<?php echo($menu['icon'] ?? 'link') ?>"></i> | ||||
| 										<p><?php echo $menu['name'] ?></p><i class="right fas fa-angle-left"></i> | ||||
| 									</a> | ||||
| 									<ul class="nav nav-treeview"> | ||||
| 										<?php echo $nav_construct; ?> | ||||
| 									</ul> | ||||
| 								</li> | ||||
| 								<?php | ||||
| 							} | ||||
| 						} | ||||
|  | ||||
| 						$query = $db->query('SELECT `name`, `page`, `flags` FROM `' . TABLE_PREFIX . 'admin_menu` ORDER BY `ordering`'); | ||||
| 						$menu_db = $query->fetchAll(); | ||||
| 						foreach ($menu_db as $item) { | ||||
| 							if ($item['flags'] == 0 || hasFlag($item['flags'])) { ?> | ||||
| 								<li class="nav-item"> | ||||
| 									<a class="nav-link<?php echo($page == $item['page'] ? ' active' : '') ?>" href="?p=<?php echo $item['page'] ?>"> | ||||
| 										<i class="nav-icon fas fa-link"></i> | ||||
| 										<p><?php echo $item['name'] ?></p> | ||||
| 									</a> | ||||
| 								</li> | ||||
| 								<?php | ||||
| 							} | ||||
| 						} | ||||
| 						?> | ||||
| 					</ul> | ||||
| 				</nav> | ||||
| 			</div> | ||||
| 		</aside> | ||||
|  | ||||
| 		<div class="content-wrapper" style="min-height: 823px;"> | ||||
| 			<div class="content-header"> | ||||
| 				<div class="container-fluid"> | ||||
| 					<div class="row mb-2"> | ||||
| 						<div class="col-sm-6"> | ||||
| 							<h3 class="m-0 text-dark"><?php echo(isset($title) ? $title : ''); ?><small> - Admin Panel</small></h3> | ||||
| 						</div> | ||||
| 						<div class="col-sm-6"> | ||||
| 							<div class="float-sm-right d-none d-sm-inline"> | ||||
| 								<span class="p-2 right badge badge-<?php echo((isset($status['online']) and $status['online']) ? 'success' : 'danger'); ?>"><?php echo $config['lua']['serverName'] ?></span> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 			<div class="content"> | ||||
| 				<div class="container-fluid"> | ||||
| 					<?php echo $content; ?> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
|  | ||||
| 		<aside class="control-sidebar control-sidebar-dark"> | ||||
| 			<div class="p-3"> | ||||
| 				<h4>Account:</h4> | ||||
| 				<p><h5><a href="?action=logout"><i class="fas fa-sign-out-alt text-danger"></i> Log out</h5></a> | ||||
| 				<small>This will log you out</small></p> | ||||
| 			</div> | ||||
| 			<div class="p-3"> | ||||
| 				<h4>Site:</h4> | ||||
| 				<p><h5><a href="<?php echo BASE_URL; ?>" target="_blank"><i class="far fa-eye text-blue"></i> Preview</a></h5> | ||||
| 				<small>This will open a new tab</small></p> | ||||
| 			</div> | ||||
| 			<div class="p-3"> | ||||
| 				<h4>Version:</h4> | ||||
| 				<p><h5><a href="?p=version"><i class="fas fa-code-branch"></i> <?php echo MYAAC_VERSION; ?></a></h5> | ||||
| 				<small>Check for updates</small></p> | ||||
| 			</div> | ||||
| 			<div class="p-3"> | ||||
| 				<h4>Site:</h4> | ||||
| 				<p><h5><a href="https://github.com/slawkens/myaac" target="_blank"><i class="fab fa-github"></i> Github</a></h5> | ||||
| 				<small>Goto GitHub Page</small></p> | ||||
|  | ||||
| 				<p><h5><a href="http://my-aac.org/" target="_blank"><i class="fas fa-shoe-prints"></i> MyAAC Official</a></h5> | ||||
| 				<small>Goto MyAAC Official Website</small></p> | ||||
|  | ||||
| 				<p><h5><a href="?p=open_source"><i class="fas fa-wrench"></i> Open Source</a></h5> | ||||
| 				<small>View Open Source Software MyAAC is using</small></p> | ||||
| 			</div> | ||||
| 		</aside> | ||||
|  | ||||
| 		<footer class="main-footer"> | ||||
| 			<div class="float-sm-right d-none d-sm-inline"> | ||||
| 				<span class="p-2 right badge badge-<?php echo((isset($status['online']) and $status['online']) ? 'success' : 'danger'); ?>"><?php echo $config['lua']['serverName'] ?></span> | ||||
| 			</div> | ||||
| 			<?php echo base64_decode('UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vbXktYWFjLm9yZyIgdGFyZ2V0PSJfYmxhbmsiPk15QUFDLjwvYT4='); ?> | ||||
| 		</footer> | ||||
| 		<div id="sidebar-overlay"></div> | ||||
| 	</div> | ||||
|  | ||||
| <?php } else if (!$logged && !admin()) { | ||||
| 	echo $content; | ||||
| } | ||||
| ?> | ||||
| <?php | ||||
| /** | ||||
|  * @var OTS_Account $account_logged | ||||
|  */ | ||||
| if ($logged && admin()) { | ||||
| 	$twig->display('admin-bar.html.twig', [ | ||||
| 		'username' => USE_ACCOUNT_NAME ? $account_logged->getName() : $account_logged->getId() | ||||
| 	]); | ||||
| } | ||||
| ?> | ||||
| <script src="<?php echo BASE_URL; ?>tools/ext/bootstrap/js/bootstrap.min.js"></script> | ||||
| <script src="<?php echo BASE_URL; ?>tools/ext/jquery-ui/jquery-ui.min.js"></script> | ||||
| <?php if (isset($use_datatable))  { ?> | ||||
| <script src="<?php echo BASE_URL; ?>tools/js/datatables.min.js"></script> | ||||
| <script src="<?php echo BASE_URL; ?>tools/js/datatables.bs.min.js"></script> | ||||
| <?php } ?> | ||||
| <script src="<?php echo BASE_URL; ?>tools/js/adminlte.min.js"></script> | ||||
| <?php $hooks->trigger(HOOK_ADMIN_BODY_END); ?> | ||||
| </body> | ||||
| </html> | ||||
| @@ -1,147 +0,0 @@ | ||||
| *{ | ||||
| 	margin:0; | ||||
| 	padding:0; | ||||
| } | ||||
| body { | ||||
| 	font-family: Helvetica; | ||||
| 	color: #313334; | ||||
| 	background: /*#f9f9f9 #EEEEEE*/#F7F6F1; | ||||
| } | ||||
|  | ||||
| img {border: none;} | ||||
|  | ||||
| a:link		{color: #000; text-decoration: none;} | ||||
| a:visited	{color: #000; text-decoration: none;} | ||||
| a:focus		{color: #000; text-decoration: none;} | ||||
| a:active	{color: #000; text-decoration: underline;} | ||||
| a:hover		{color: #000; text-decoration: underline;} | ||||
| a.current	{font-weight: bold;} | ||||
|  | ||||
| h5.blue		{color: #6b7b95;} | ||||
| h5.red		{color: #c17878;} | ||||
| h5.green	{color: #78ba91;} | ||||
| h5.purple	{color: #a87aad;} | ||||
|  | ||||
| h1, h2, h3, h4, h5, h6 {color: #313334; font-weight: bold;} | ||||
| .separator {color:#BCE} | ||||
| .margin-left{ | ||||
| 	margin-left:5px; | ||||
| } | ||||
|  | ||||
| .button { background:#eee url(images/button.gif) repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; } | ||||
| .button:hover { color:#333; border-color:#857b42; } | ||||
|  | ||||
| .field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; } | ||||
| .small-field, .button, .pagging a { -moz-border-radius:3px; -webkit-border-radius:3px; } | ||||
|  | ||||
| .table th { | ||||
|     background-color: #4CAF50; | ||||
|     color: white; | ||||
| 	text-align: left; | ||||
| } | ||||
|  | ||||
| .table, .table td, .table th{ | ||||
| 	border: 1px solid #ddd; | ||||
| } | ||||
|  | ||||
| .table th a:link {color: white; text-decoration: none;} | ||||
| .table th a:link		{color: white; text-decoration: none;} | ||||
| .table th a:visited	{color: white; text-decoration: none;} | ||||
| .table th a:focus		{color: white; text-decoration: none;} | ||||
| .table th a:active	{color: white; text-decoration: underline;} | ||||
| .table th a:hover		{color: white; text-decoration: underline;} | ||||
|  | ||||
| .table tr:nth-child(odd) {background-color: #d1d1d1} | ||||
|  | ||||
| a.ico { color:#9d9c9a; font-size:10px; text-decoration: none; padding:0 0 0 14px; background-repeat:no-repeat; background-position:0 0; } | ||||
| a.ico:hover { color:#333;} | ||||
|  | ||||
| #container{ | ||||
| 	width:960px; | ||||
| 	margin-left:auto; | ||||
| 	margin-right:auto; | ||||
| } | ||||
| #header { | ||||
| 	/*width: 960px;*/ | ||||
| 	padding-left: auto; | ||||
| 	padding-right: auto; | ||||
| 	border-bottom: 1px dotted black; | ||||
| 	margin-top: 40px; | ||||
| } | ||||
| #header h1 { | ||||
| 	margin: 0; | ||||
| 	padding-top: 20px; | ||||
| 	text-align: center; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background: #FFF; | ||||
| 	width: 170px; | ||||
| 	float: left; | ||||
| 	margin: 10px 0 10px 0; | ||||
| 	padding: 10px; | ||||
| 	border: 1px solid #CCC; | ||||
| } | ||||
| #content { | ||||
| 	width: 740px; | ||||
| 	float: right; | ||||
| 	margin: 20px 0 10px 0; | ||||
| 	padding: 10px; | ||||
| } | ||||
| #footer { | ||||
| 	margin-top: 20px; | ||||
| 	border-top: 1px dotted black; | ||||
| 	text-align: center; | ||||
| 	clear: both; | ||||
| } | ||||
| /********************* | ||||
| 	Sidebar | ||||
| *********************/ | ||||
| #sidebar ul{ | ||||
| 	list-style:none; | ||||
| 	line-height:22px; | ||||
| } | ||||
| #sidebar ul li a,#sidebar ul li a:visited{ | ||||
| 	padding-left:19px; | ||||
| 	text-decoration:none; | ||||
| 	margin:0 3px; | ||||
| 	display:block; | ||||
| } | ||||
| #sidebar ul li a:hover{ | ||||
| 	text-decoration:underline; | ||||
| } | ||||
| #sidebar ul li ul{ | ||||
| 	margin-left:10px; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	padding:2px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| /********************* | ||||
| 	Status & version boxes | ||||
| *********************/ | ||||
| #status { | ||||
| 	position: absolute; top: 10px; left: 10px; | ||||
| 	margin: 0px; | ||||
| 	float: right; | ||||
| 	font-size: 12px; | ||||
| } | ||||
| #status .success { | ||||
|   margin: 0px: | ||||
| } | ||||
| #version { | ||||
| 	position: absolute; top: 10px; right: 10px; | ||||
| 	float: right; | ||||
| 	text-align: right; | ||||
| 	font-size: 12px; | ||||
| } | ||||
| /********************* | ||||
| 	Infobox | ||||
| *********************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f7f6f1; | ||||
| 	border-bottom:1px solid #e9e8e3; | ||||
| 	color:#654322; | ||||
| } | ||||
| @@ -1,95 +0,0 @@ | ||||
| <?php defined('MYAAC') or die('Direct access not allowed!'); ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||||
| <head> | ||||
| 	<?php echo template_header(true); ?> | ||||
| 	<title><?php echo $title . $config['title_separator'] . $config['lua']['serverName']; ?> - Powered by MyAAC</title> | ||||
| 	<link rel="stylesheet" type="text/css" href="<?php echo $template_path; ?>style.css" /> | ||||
| </head> | ||||
| <body> | ||||
| <?php if($page != 'tools'): ?> | ||||
| 	<div id="container"> | ||||
| 		<div id="header"> | ||||
| 			<?php if($logged && admin()): ?> | ||||
| 			<div id="status"> | ||||
| 				<?php if($status['online']): ?> | ||||
| 				<p class="success" style="width: 120px; text-align: center;">Status: Online<br/> | ||||
| 					<?php echo $status['uptimeReadable'] . ', ' . $status['players'] . '/' . $status['playersMax']; ?><br/> | ||||
| 					<?php echo $config['lua']['ip'] . ' : ' . $config['lua']['loginPort']; ?> | ||||
| 				</p> | ||||
| 				<?php else: ?> | ||||
| 				<p class="error" style="width: 120px; text-align: center;">Status: Offline</p> | ||||
| 				<?php endif; ?> | ||||
| 			</div> | ||||
| 			<div id="version">Version: <?php echo MYAAC_VERSION; ?> (<a id="update" href="?p=version">Check for updates</a>)<br/> | ||||
| 				Logged in as: <b><?php echo (USE_ACCOUNT_NAME ? $account_logged->getName() : $account_logged->getId()); ?></b><br/> | ||||
| 				<a href="<?php echo BASE_URL; ?>" target="_blank">Preview</a> <span class="separator">|</span> <a href="?action=logout">Log out<img src="<?php echo BASE_URL; ?>images/icons/logout.png" alt="" title="Log out" /></a> | ||||
| 			</div> | ||||
| 			<?php endif; ?> | ||||
| 			<h1><?php echo $config['lua']['serverName'] . ' - ' . $title; ?> - Admin Panel</h1> | ||||
| 		</div> | ||||
| 		<div id="wrapper"> | ||||
| 			<?php | ||||
| 			if($logged && admin()) { | ||||
| 			?> | ||||
| 			<div id="sidebar"> | ||||
| 				<ul> | ||||
| 				<?php | ||||
| 					$menus = array( | ||||
| 						'Dashboard' => 'dashboard', | ||||
| 						'Mailer' => 'mailer', | ||||
| 						'Pages' => 'pages', | ||||
| 						'Plugins' => 'plugins', | ||||
| 						'Statistics' => 'statistics', | ||||
| 						'Visitors' => 'visitors', | ||||
| 						'Players' => 'players', | ||||
| 						'Tools' => array( | ||||
| 							'phpinfo' => 'phpinfo' | ||||
| 						), | ||||
| 						'Notepad' => 'notepad', | ||||
| 						'Logs' => 'logs' | ||||
| 					); | ||||
|  | ||||
| 					$i = 0; | ||||
| 					foreach($menus as $_name => $_page) { | ||||
| 						//echo '<a ' . ($page == $_page ? ' class="current"' : '') . 'href="?p=' . $_page . '">' . $_name . '</a>'; | ||||
| 						echo '<li><h3>'; | ||||
| 						$has_child = is_array($_page); | ||||
| 						if(!$has_child) { | ||||
| 							echo '<a href="?p=' . $_page . '">'; | ||||
| 							if($page == $_page) echo '<u>'; | ||||
| 								echo $_name; | ||||
| 							if($page == $_page) echo '</u>'; | ||||
| 							echo '</a>'; | ||||
| 						} | ||||
| 						else | ||||
| 							echo $_name; | ||||
|  | ||||
| 						echo '</h3>'; | ||||
| 						if($has_child) { | ||||
| 							echo '<ul>'; | ||||
| 							foreach($_page as $__name => $__page) | ||||
| 								echo '<li><a href="?p=' . $__page . '">'; | ||||
| 								if($page == $__page) echo '<u>'; | ||||
| 									echo $__name; | ||||
| 								if($page == $__page) echo '</u>'; | ||||
| 								echo '</a></li>'; | ||||
| 							echo '</ul>'; | ||||
| 						} | ||||
| 						echo '</li>'; | ||||
| 					} | ||||
| 				?> | ||||
| 				</ul> | ||||
| 			</div> | ||||
| 			<?php | ||||
| 			} | ||||
| 			?> | ||||
| 			<div id="content"><?php echo $content; ?></div> | ||||
| 		</div> | ||||
| 		<div id="footer"> | ||||
| 			Powered by <a href="http://my-aac.org" target="_blank">MyAAC</a> | ||||
| 		</div> | ||||
| 	</div> | ||||
| <?php endif; ?> | ||||
| </body> | ||||
| </html> | ||||
| @@ -1,281 +0,0 @@ | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <head> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
| <title>Dashboard - Admin Template</title> | ||||
| <link rel="stylesheet" type="text/css" href="css/theme2.css" /> | ||||
| <link rel="stylesheet" type="text/css" href="css/style.css" /> | ||||
| <script> | ||||
|    var StyleFile = "theme" + document.cookie.charAt(6) + ".css"; | ||||
|    document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">'); | ||||
| </script> | ||||
| <!--[if IE]> | ||||
| <link rel="stylesheet" type="text/css" href="css/ie-sucks.css" /> | ||||
| <![endif]--> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
| 	<div id="container"> | ||||
|     	<div id="header"> | ||||
|         	<h2>My eCommerce Admin area</h2> | ||||
|     <div id="topmenu"> | ||||
|             	<ul> | ||||
|                 	<li class="current"><a href="index.html">Dashboard</a></li> | ||||
|                     <li><a href="#">Orders</a></li> | ||||
|                 	<li><a href="users.html">Users</a></li> | ||||
|                     <li><a href="#">Manage</a></li> | ||||
|                     <li><a href="#">CMS</a></li> | ||||
|                     <li><a href="#">Statistics</a></li> | ||||
|                     <li><a href="#">Settings</a></li> | ||||
|               </ul> | ||||
|           </div> | ||||
|       </div> | ||||
|         <div id="top-panel"> | ||||
|             <div id="panel"> | ||||
|                 <ul> | ||||
|                     <li><a href="#" class="report">Sales Report</a></li> | ||||
|                     <li><a href="#" class="report_seo">SEO Report</a></li> | ||||
|                     <li><a href="#" class="search">Search</a></li> | ||||
|                     <li><a href="#" class="feed">RSS Feed</a></li> | ||||
|                 </ul> | ||||
|             </div> | ||||
|       </div> | ||||
|         <div id="wrapper"> | ||||
|             <div id="content"> | ||||
|        			<div id="rightnow"> | ||||
|                     <h3 class="reallynow"> | ||||
|                         <span>Right Now</span> | ||||
|                         <a href="#" class="add">Add New Product</a> | ||||
|                         <a href="#" class="app_add">Some Action</a> | ||||
|                         <br /> | ||||
|                     </h3> | ||||
| 				    <p class="youhave">You have <a href="#">19 new orders</a>, <a href="#">12 new users</a> and <a href="#">5 new reviews</a>, today you made <a href="#">$1523.63 in sales</a> and a total of <strong>$328.24 profit </strong> | ||||
|                     </p> | ||||
| 			  </div> | ||||
|               <div id="infowrap"> | ||||
|               <div id="infobox"> | ||||
|                     <h3>Sales for July</h3> | ||||
|                     <p><img src="img/graph.jpg" width="360" height="266" /></p>             | ||||
|                   </div> | ||||
|                   <div id="infobox" class="margin-left"> | ||||
|                     <h3>Traffic for July</h3>  | ||||
|                     <p><img src="img/graph2.jpg" alt="a" width="359" height="266" /></p> | ||||
|                   </div> | ||||
|                   <div id="infobox"> | ||||
|                     <h3>Last 5 Orders</h3> | ||||
|                     <table> | ||||
| 						<thead> | ||||
| 							<tr> | ||||
|                             	<th>Customer</th> | ||||
|                                 <th>Items</th> | ||||
|                                 <th>Grand Total</th> | ||||
|                             </tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Jennifer Kyrnin</a></td> | ||||
|                                 <td>1</td> | ||||
|                                 <td>14.95 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Mark Kyrnin</a></td> | ||||
|                             	<td>2</td> | ||||
|                                 <td>34.27 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Virgílio Cezar</a></td> | ||||
|                                 <td>2</td> | ||||
|                                 <td>61.39 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Todd Simonides</a></td> | ||||
|                                 <td>5</td> | ||||
|                                 <td>1472.56 €</td> | ||||
|                             </tr> | ||||
|                             <tr> | ||||
|                             	<td><a href="#">Carol Elihu</a></td> | ||||
|                                 <td>1</td> | ||||
|                                 <td>9.95 €</td> | ||||
|                             </tr> | ||||
| 						</tbody> | ||||
| 					</table>             | ||||
|                   </div> | ||||
|                   <div id="infobox" class="margin-left"> | ||||
|                     <h3>Bestsellers</h3>  | ||||
|                     <table> | ||||
| 						<thead> | ||||
| 							<tr> | ||||
|                             	<th>Product Name</th> | ||||
|                                 <th>Price</th> | ||||
|                                 <th>Orders</th> | ||||
|                             </tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Apple iPhone 3G 8GB</a></td> | ||||
|                                 <td>199.00 €</td> | ||||
|                                 <td>24</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Fuji FinePix S5800</a></td> | ||||
|                             	<td>365.24 €</td> | ||||
|                                 <td>19</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Canon PIXMA MP140</a></td> | ||||
|                                 <td>59.50 €</td> | ||||
|                                 <td>12</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Apple iPhone 3G 16GB</a></td> | ||||
|                                 <td>199.00 €</td> | ||||
|                                 <td>10</td> | ||||
|                             </tr> | ||||
|                             <tr> | ||||
|                             	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td> | ||||
|                                 <td>499.00 €</td> | ||||
|                                 <td>6</td> | ||||
|                             </tr> | ||||
| 						</tbody> | ||||
| 					</table> | ||||
|                   </div> | ||||
|                   <div id="infobox"> | ||||
|                     <h3>New Customers</h3> | ||||
|                     <table> | ||||
| 						<thead> | ||||
| 							<tr> | ||||
|                             	<th>Customer</th> | ||||
|                                 <th>Orders</th> | ||||
|                                 <th>Average</th> | ||||
|                                 <th>Total</th> | ||||
|                             </tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Jennifer Kyrnin</a></td> | ||||
|                                 <td>1</td> | ||||
|                                 <td>5.6€</td> | ||||
|                                 <td>14.95 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Mark Kyrnin</a></td> | ||||
|                             	<td>2</td> | ||||
|                                 <td>14.97€</td> | ||||
|                                 <td>34.27 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Virgílio Cezar</a></td> | ||||
|                                 <td>2</td> | ||||
|                                 <td>15.31€</td> | ||||
|                                 <td>61.39 €</td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Todd Simonides</a></td> | ||||
|                                 <td>5</td> | ||||
|                                 <td>502.61€</td> | ||||
|                                 <td>1472.56 €</td> | ||||
|                             </tr> | ||||
|                             <tr> | ||||
|                             	<td><a href="#">Carol Elihu</a></td> | ||||
|                                 <td>1</td> | ||||
|                                 <td>5.1€</td> | ||||
|                                 <td>9.95 €</td> | ||||
|                             </tr> | ||||
| 						</tbody> | ||||
| 					</table>                  | ||||
|                   </div> | ||||
|                   <div id="infobox" class="margin-left"> | ||||
|                     <h3>Last 5 Reviews</h3>  | ||||
|                     <table> | ||||
| 						<thead> | ||||
| 							<tr> | ||||
|                             	<th>Reviewer</th> | ||||
|                                 <th>Product</th> | ||||
|                                 <th>Action</th> | ||||
|                             </tr> | ||||
| 						</thead> | ||||
| 						<tbody> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Jennifer Kyrnin</a></td> | ||||
|                                 <td><a href="#">Apple iPhone 3G 8GB</a></td> | ||||
|                                 <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Mark Kyrnin</a></td> | ||||
|                             	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td> | ||||
|                                 <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Virgílio Cezar</a></td> | ||||
|                                 <td><a href="#">Fuji FinePix S5800</a></td> | ||||
|                                 <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td> | ||||
|                             </tr> | ||||
| 							<tr> | ||||
|                             	<td><a href="#">Todd Simonides</a></td> | ||||
|                                 <td><a href="#">Canon PIXMA MP140</a></td> | ||||
|                                 <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td> | ||||
|                             </tr> | ||||
|                             <tr> | ||||
|                             	<td><a href="#">Carol Elihu</a></td> | ||||
|                                 <td><a href="#">Prenosnik HP 530 1,6GHz</a></td> | ||||
|                                 <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td> | ||||
|                             </tr> | ||||
| 						</tbody> | ||||
| 					</table> | ||||
|                   </div> | ||||
|               </div> | ||||
|             </div> | ||||
|             <div id="sidebar"> | ||||
|   				<ul> | ||||
|                 	<li><h3><a href="#" class="house">Dashboard</a></h3> | ||||
|                         <ul> | ||||
|                         	<li><a href="#" class="report">Sales Report</a></li> | ||||
|                     		<li><a href="#" class="report_seo">SEO Report</a></li> | ||||
|                             <li><a href="#" class="search">Search</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                     <li><h3><a href="#" class="folder_table">Orders</a></h3> | ||||
|           				<ul> | ||||
|                         	<li><a href="#" class="addorder">New order</a></li> | ||||
|                           <li><a href="#" class="shipping">Shipments</a></li> | ||||
|                             <li><a href="#" class="invoices">Invoices</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                     <li><h3><a href="#" class="manage">Manage</a></h3> | ||||
|           				<ul> | ||||
|                             <li><a href="#" class="manage_page">Pages</a></li> | ||||
|                             <li><a href="#" class="cart">Products</a></li> | ||||
|                             <li><a href="#" class="folder">Product categories</a></li> | ||||
|             				<li><a href="#" class="promotions">Promotions</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                   <li><h3><a href="#" class="user">Users</a></h3> | ||||
|           				<ul> | ||||
|                             <li><a href="#" class="useradd">Add user</a></li> | ||||
|                             <li><a href="#" class="group">User groups</a></li> | ||||
|             				<li><a href="#" class="search">Find user</a></li> | ||||
|                             <li><a href="#" class="online">Users online</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
| 				</ul>        | ||||
|           </div> | ||||
|       </div> | ||||
|         <div id="footer"> | ||||
|         <div id="credits"> | ||||
|    		Template by <a href="http://www.bloganje.com">Bloganje</a> | ||||
|         </div> | ||||
|         <div id="styleswitcher"> | ||||
|             <ul> | ||||
|                 <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=5'; window.location.reload();" title="Mix" id="defswitch">m</a></li> | ||||
|             </ul> | ||||
|         </div><br /> | ||||
|  | ||||
|         </div> | ||||
| </div> | ||||
| </body> | ||||
| </html> | ||||
| @@ -1,100 +0,0 @@ | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <head> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
| <title>Dashboard - Admin Template</title> | ||||
| <link rel="stylesheet" type="text/css" href="css/theme.css" /> | ||||
| <link rel="stylesheet" type="text/css" href="css/style.css" /> | ||||
| <script> | ||||
|    var StyleFile = "theme" + document.cookie.charAt(6) + ".css"; | ||||
|    document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">'); | ||||
| </script> | ||||
| <!--[if IE]> | ||||
| <link rel="stylesheet" type="text/css" href="css/ie-sucks.css" /> | ||||
| <![endif]--> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
| 	<div id="container"> | ||||
|     	<div id="header"> | ||||
|         	<h2>My eCommerce Admin area</h2> | ||||
|     <div id="topmenu"> | ||||
|             	<ul> | ||||
|                 	<li class="current"><a href="index.html">Dashboard</a></li> | ||||
|                     <li><a href="#">Orders</a></li> | ||||
|                 	<li><a href="users.html">Users</a></li> | ||||
|                     <li><a href="#">Manage</a></li> | ||||
|                     <li><a href="#">CMS</a></li> | ||||
|                     <li><a href="#">Statistics</a></li> | ||||
|                     <li><a href="#">Settings</a></li> | ||||
|               </ul> | ||||
|           </div> | ||||
|       </div> | ||||
|         <div id="top-panel"> | ||||
|             <div id="panel"> | ||||
|                 <ul> | ||||
|                     <li><a href="#" class="report">Sales Report</a></li> | ||||
|                     <li><a href="#" class="report_seo">SEO Report</a></li> | ||||
|                     <li><a href="#" class="search">Search</a></li> | ||||
|                     <li><a href="#" class="feed">RSS Feed</a></li> | ||||
|                 </ul> | ||||
|             </div> | ||||
|       </div> | ||||
|         <div id="wrapper"> | ||||
|             <div id="content"> | ||||
|                 <p> </p> | ||||
|                 <p> </p> | ||||
|             </div> | ||||
|             <div id="sidebar"> | ||||
|   				<ul> | ||||
|                 	<li><h3><a href="#" class="house">Dashboard</a></h3> | ||||
|                         <ul> | ||||
|                         	<li><a href="#" class="report">Sales Report</a></li> | ||||
|                     		<li><a href="#" class="report_seo">SEO Report</a></li> | ||||
|                             <li><a href="#" class="search">Search</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                     <li><h3><a href="#" class="folder_table">Orders</a></h3> | ||||
|           				<ul> | ||||
|                         	<li><a href="#" class="addorder">New order</a></li> | ||||
|                           <li><a href="#" class="shipping">Shipments</a></li> | ||||
|                             <li><a href="#" class="invoices">Invoices</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                     <li><h3><a href="#" class="manage">Manage</a></h3> | ||||
|           				<ul> | ||||
|                             <li><a href="#" class="manage_page">Pages</a></li> | ||||
|                             <li><a href="#" class="cart">Products</a></li> | ||||
|                             <li><a href="#" class="folder">Product categories</a></li> | ||||
|             				<li><a href="#" class="promotions">Promotions</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
|                   <li><h3><a href="#" class="user">Users</a></h3> | ||||
|           				<ul> | ||||
|                             <li><a href="#" class="useradd">Add user</a></li> | ||||
|                             <li><a href="#" class="group">User groups</a></li> | ||||
|             				<li><a href="#" class="search">Find user</a></li> | ||||
|                             <li><a href="#" class="online">Users online</a></li> | ||||
|                         </ul> | ||||
|                     </li> | ||||
| 				</ul>        | ||||
|           </div> | ||||
|       </div> | ||||
|         <div id="footer"> | ||||
|         <div id="credits"> | ||||
|    		Template by <a href="http://www.bloganje.com">Bloganje</a> | ||||
|         </div> | ||||
|         <div id="styleswitcher"> | ||||
|             <ul> | ||||
|                 <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li> | ||||
|                 <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li> | ||||
|             </ul> | ||||
|         </div><br /> | ||||
|  | ||||
|         </div> | ||||
| </div> | ||||
| </body> | ||||
| </html> | ||||
| @@ -1,121 +0,0 @@ | ||||
| body{ | ||||
| 	background:#f7f6f0 url(../img/bg.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#993300; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#f7f6f0; | ||||
| 	background:#cc3300; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #FFF; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#993400; | ||||
| 	background: #FFF url(../img/bg_menu_red.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#f7f6f0; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| 	color:#993300; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x center left; | ||||
| 	color:#993300; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#e8e7e1; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#c00; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| 	color:#993300; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#f7f6f0; | ||||
| 	color:#993300; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| } | ||||
| @@ -1,21 +0,0 @@ | ||||
| #content{ | ||||
| 	width:740px; | ||||
| } | ||||
| #topmenu{ | ||||
| 	margin-top:26px; | ||||
| } | ||||
| #sidebar{ | ||||
| 	width:160px; | ||||
| } | ||||
| #sidebar ul{ | ||||
| 	width:150px; | ||||
| } | ||||
| #sidebar ul li ul{ | ||||
| 	width:140px; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	margin-bottom:5px; | ||||
| } | ||||
| #rightnow .reallynow a { | ||||
| 	padding:0 0 0 10px; | ||||
| } | ||||
| @@ -1,68 +0,0 @@ | ||||
| <public:component> | ||||
| <public:attach event="onpropertychange" onevent="doFix()" /> | ||||
|  | ||||
| <script type="text/javascript"> | ||||
|  | ||||
| // IE5.5+ PNG Alpha Fix v1.0RC4 | ||||
| // (c) 2004-2005 Angus Turnbull http://www.twinhelix.com | ||||
|  | ||||
| // This is licensed under the CC-GNU LGPL, version 2.1 or later. | ||||
| // For details, see: http://creativecommons.org/licenses/LGPL/2.1/ | ||||
|  | ||||
|  | ||||
| // This must be a path to a blank image. That's all the configuration you need. | ||||
| if (typeof blankImg == 'undefined') var blankImg = 'blank.gif'; | ||||
|  | ||||
|  | ||||
| var f = 'DXImageTransform.Microsoft.AlphaImageLoader'; | ||||
|  | ||||
| function filt(s, m) | ||||
| { | ||||
|  if (filters[f]) | ||||
|  { | ||||
|   filters[f].enabled = s ? true : false; | ||||
|   if (s) with (filters[f]) { src = s; sizingMethod = m } | ||||
|  } | ||||
|  else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")'; | ||||
| } | ||||
|  | ||||
| function doFix() | ||||
| { | ||||
|  // Assume IE7 is OK. | ||||
|  if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) || | ||||
|   (event && !/(background|src)/.test(event.propertyName))) return; | ||||
|  | ||||
|  var bgImg = currentStyle.backgroundImage || style.backgroundImage; | ||||
|  | ||||
|  if (tagName == 'IMG') | ||||
|  { | ||||
|   if ((/\.png$/i).test(src)) | ||||
|   { | ||||
|    if (currentStyle.width == 'auto' && currentStyle.height == 'auto') | ||||
|     style.width = offsetWidth + 'px'; | ||||
|    filt(src, 'scale'); | ||||
|    src = blankImg; | ||||
|   } | ||||
|   else if (src.indexOf(blankImg) < 0) filt(); | ||||
|  } | ||||
|  else if (bgImg && bgImg != 'none') | ||||
|  { | ||||
|   if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i)) | ||||
|   { | ||||
|    var s = RegExp.$1; | ||||
|    if (currentStyle.width == 'auto' && currentStyle.height == 'auto') | ||||
|     style.width = offsetWidth + 'px'; | ||||
|    style.backgroundImage = 'none'; | ||||
|    filt(s, 'crop'); | ||||
|    // IE link fix. | ||||
|    for (var n = 0; n < childNodes.length; n++) | ||||
|     if (childNodes[n].style) childNodes[n].style.position = 'relative'; | ||||
|   } | ||||
|   else filt(); | ||||
|  } | ||||
| } | ||||
|  | ||||
| doFix(); | ||||
|  | ||||
| </script> | ||||
| </public:component> | ||||
| @@ -1,397 +0,0 @@ | ||||
| /********************* | ||||
| 	HTML Elements | ||||
| *********************/ | ||||
| *{ | ||||
| 	margin:0; | ||||
| 	padding:0; | ||||
| } | ||||
| img, div,a { behavior: url(css/iepngfix.htc) } | ||||
| body{ | ||||
| 	font-size: 12px; | ||||
| 	font-family: Arial, Tahoma, Verdana; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	text-decoration:none; | ||||
| } | ||||
| img{ | ||||
| 	border:0; | ||||
| 	margin:1px; | ||||
| } | ||||
| p{ | ||||
| 	padding:3px; | ||||
| } | ||||
| h2{ | ||||
|  | ||||
| } | ||||
| input{ | ||||
| 	padding:2px; | ||||
| } | ||||
| select{ | ||||
| 	padding:2px; | ||||
| } | ||||
| /********************* | ||||
| 	Status | ||||
| *********************/ | ||||
| #status { | ||||
| 	position: absolute; top: 10px; left: 10px; | ||||
| 	margin: 0px; | ||||
| 	float: right; | ||||
| 	font-size: 12px; | ||||
| } | ||||
| #status .success { | ||||
|   margin: 0px: | ||||
| } | ||||
| #version { | ||||
| 	position: absolute; top: 10px; right: 10px; | ||||
| 	float: right; | ||||
| 	text-align: right; | ||||
| 	font-size: 12px; | ||||
| } | ||||
| /********************* | ||||
| 	Structure | ||||
| *********************/ | ||||
| #container{ | ||||
| 	width:960px; | ||||
| 	margin-left:auto; | ||||
| 	margin-right:auto; | ||||
| } | ||||
| #header{ | ||||
| 	width:960px; | ||||
| } | ||||
| #header h2{ | ||||
| 	margin-top:20px; | ||||
| } | ||||
| #content{ | ||||
| 	width:740px; | ||||
| 	float:left; | ||||
| 	margin:10px 0 10px 0; | ||||
| 	padding:10px; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| 	width:170px; | ||||
| 	float:right; | ||||
| 	margin:10px 0 10px 0; | ||||
| 	padding:10px; | ||||
| } | ||||
| #footer{ | ||||
| 	clear:both; | ||||
| 	padding:5px; | ||||
| 	margin-top:10px; | ||||
| } | ||||
| #box h3{ | ||||
| 	padding:5px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| /********************* | ||||
| 	Sidebar | ||||
| *********************/ | ||||
| #sidebar ul{ | ||||
| 	list-style:none; | ||||
| 	line-height:22px; | ||||
| } | ||||
| #sidebar ul li a,#sidebar ul li a:visited{ | ||||
| 	padding-left:19px; | ||||
| 	text-decoration:none; | ||||
| 	margin:0 3px; | ||||
| 	display:block; | ||||
| } | ||||
| #sidebar ul li a:hover{ | ||||
| 	text-decoration:underline; | ||||
| } | ||||
| #sidebar ul li ul{ | ||||
| 	margin-left:10px; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	padding:2px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| /********************* | ||||
|   TopMenu, Top-Panel | ||||
| *********************/ | ||||
| #topmenu{ | ||||
| 	margin-top:33px; | ||||
| 	width:700px; | ||||
| 	float:left; | ||||
| 	voice-family:inherit; | ||||
| } | ||||
| #topmenu ul{ | ||||
| 	list-style:none; | ||||
| 	line-height:25px; | ||||
| } | ||||
| #topmenu li{ | ||||
| 	display:inline; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	padding:5px 12px 5px 12px; | ||||
| 	text-decoration:none; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	padding:5px 12px 5px 12px; | ||||
| 	font-weight:bold; | ||||
| 	 | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| 	padding:5px; | ||||
| 	height:20px; | ||||
| 	float:left; | ||||
| 	width:950px; | ||||
| } | ||||
| #top-panel ul{ | ||||
| 	list-style:none; | ||||
| } | ||||
| #top-panel ul li{ | ||||
| 	display:inline; | ||||
| 	line-height:20px; | ||||
| } | ||||
| #top-panel ul li a{ | ||||
| 	padding-left:19px; | ||||
| 	text-decoration:none; | ||||
| 	margin:0 3px; | ||||
| 	display:inline-block; | ||||
| } | ||||
| #top-panel a:hover{ | ||||
| 	text-decoration:underline; | ||||
| } | ||||
| /********************* | ||||
| 		Other | ||||
| *********************/ | ||||
| .a-right{text-align:right;} | ||||
| .a-left{text-align:left;} | ||||
| .a-center{text-align:center;} | ||||
| #pager{ | ||||
| 	margin:5px; | ||||
| 	height:25px; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	float:right; | ||||
| } | ||||
| #styleswitcher ul{ | ||||
| 	list-style:none; | ||||
| 	line-height:10px; | ||||
| } | ||||
| #styleswitcher li{ | ||||
| 	height:12px; | ||||
| 	display:inline; | ||||
| } | ||||
| #footer ul { | ||||
| 	list-style:none; | ||||
| } | ||||
| #footer li { | ||||
| 	display:inline; | ||||
| } | ||||
| a#defswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#bd3f09; | ||||
| 	font-size: 8px; | ||||
| 	color:#bd3f09; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#blueswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#375b91; | ||||
| 	font-size: 8px; | ||||
| 	color:#375b91; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#greenswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#d0e0b8; | ||||
| 	font-size: 8px; | ||||
| 	color:#d0e0b8; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#brownswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#654322; | ||||
| 	font-size: 8px; | ||||
| 	color:#654322; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#mixswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#294145; | ||||
| 	font-size: 8px; | ||||
| 	color:#294145; | ||||
| 	display:inline-block; | ||||
| } | ||||
| #credits{ | ||||
| 	clear:both; | ||||
| 	width:250px; | ||||
| 	float:left; | ||||
| } | ||||
| /********************* | ||||
| 		Tables | ||||
| *********************/ | ||||
| table{ | ||||
| 	margin:5px; | ||||
| 	border-collapse: collapse; | ||||
| 	table-layout:automatic; | ||||
| 	width:98%; | ||||
| } | ||||
| td, th{ | ||||
| 	padding: 2px; | ||||
| }  | ||||
| thead{ | ||||
|  | ||||
| } | ||||
| /********************* | ||||
| 		Home | ||||
| *********************/ | ||||
| #infowrap li{ | ||||
| 	display:inline: | ||||
| } | ||||
| #infobox{ | ||||
| 	width:365px; | ||||
| 	float:left; | ||||
| 	margin-top:10px; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	padding:5px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| .margin-left{ | ||||
| 	margin-left:5px; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	padding: 5px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	padding:2px; | ||||
| 	padding: 0 10px; | ||||
| 	font-size:14px; | ||||
| } | ||||
| #rightnow .reallynow span { | ||||
| 	display: block; | ||||
| 	text-align: left; | ||||
| 	float: left; | ||||
| 	padding:0 2px; | ||||
| 	font-size:14px | ||||
| } | ||||
| #rightnow .reallynow a { | ||||
| 	text-decoration:none; | ||||
| 	display: block; | ||||
| 	text-align: right; | ||||
| 	float: right; | ||||
| 	padding:0 0 0 18px; | ||||
| 	margin-left:4px; | ||||
| 	font-weight:normal; | ||||
| 	font-size:12px; | ||||
| } | ||||
| #rightnow .reallynow a:hover{ | ||||
| 	text-decoration:underline; | ||||
| } | ||||
| #rightnow .youhave { | ||||
| 	font-size:  12px; | ||||
| 	padding: 10px; | ||||
| } | ||||
| #rightnow a { | ||||
| 	font-weight: bold; | ||||
| } | ||||
| /********************* | ||||
| 		Forms | ||||
| *********************/ | ||||
| form{ | ||||
| 	padding:10px; | ||||
| 	margin:0 auto; | ||||
| } | ||||
| form#form fieldset { | ||||
| 	display:block; | ||||
| 	padding:5px 10px 5px 10px; | ||||
| 	line-height:20px; | ||||
| 	margin-bottom:10px; | ||||
| } | ||||
| form#form legend { | ||||
| 	font-size:12px; | ||||
| 	font-weight:bold; | ||||
| 	margin-bottom:5px; | ||||
| 	padding:3px; | ||||
| 	width:254px; | ||||
| } | ||||
| form#form label { | ||||
| 	clear:left; | ||||
| 	display:block; | ||||
| 	float:left; | ||||
| 	width:100px; | ||||
| 	text-align:right; | ||||
| 	padding-right:10px; | ||||
| 	margin-bottom:5px; | ||||
| } | ||||
| form#form input { | ||||
| 	padding:3px; | ||||
| 	margin-bottom:5px; | ||||
| } | ||||
| form#form select { | ||||
| 	margin-left:5px; | ||||
| } | ||||
| form#form textarea { | ||||
| 	width:410px; | ||||
| 	height:200px; | ||||
| 	padding:5px; | ||||
| 	overflow:auto; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	padding-right:5px; | ||||
| 	cursor:pointer; | ||||
| 	width:205px; | ||||
| 	margin-left:8px; | ||||
| 	font-weight:bold; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	background-position:center left; | ||||
| } | ||||
|  | ||||
| /********************* | ||||
| 	Icons | ||||
| *********************/ | ||||
| .icon{ | ||||
| 	padding-left:19px; | ||||
| 	text-decoration:none; | ||||
| 	height:20px; | ||||
| 	font-size:12x; | ||||
| 	margin:0 3px; | ||||
| 	display:inline-block; | ||||
| 	line-height:20px; | ||||
| } | ||||
| .user{background:transparent url(../img/icons/user.png) no-repeat left;} | ||||
| .useradd{background:transparent url(../img/icons/user_add.png) no-repeat left;} | ||||
| .group{background:transparent url(../img/icons/group.png) no-repeat left;} | ||||
| .search{background:transparent url(../img/icons/magnifier.png) no-repeat left;} | ||||
| .online{background:transparent url(../img/icons/world.png) no-repeat left;} | ||||
| .pagenew{background:transparent url(../img/icons/page_add.png) no-repeat left;} | ||||
| .rss{background:transparent url(../img/icons/rss.png) no-repeat left;} | ||||
| .feed{background:transparent url(../img/icons/feed.png) no-repeat left;} | ||||
| .report{background:transparent url(../img/icons/report.png) no-repeat left;} | ||||
| .house{background:transparent url(../img/icons/house.png) no-repeat left;} | ||||
| .manage{background:transparent url(../img/icons/cog.png) no-repeat left;} | ||||
| .manage_page{background:transparent url(../img/icons/page_gear.png) no-repeat left;} | ||||
| .folder{background:transparent url(../img/icons/folder.png) no-repeat left;} | ||||
| .promotions{background:transparent url(../img/icons/coins.png) no-repeat left;} | ||||
| .cart{background:transparent url(../img/icons/cart.png) no-repeat left;} | ||||
| .folder_table{background:transparent url(../img/icons/folder_page.png) no-repeat left;} | ||||
| .shipping{background:transparent url(../img/icons/car.png) no-repeat left;} | ||||
| .invoices{background:transparent url(../img/icons/page_white_text_width.png) no-repeat left;} | ||||
| .addorder{background:transparent url(../img/icons/folder_page_add.png) no-repeat left;} | ||||
| .add{background:transparent url(../img/icons/add.png) no-repeat left;} | ||||
| .app_add{background:transparent url(../img/icons/application_add.png) no-repeat left;} | ||||
| .report_seo{background:transparent url(../img/icons/report_link.png) no-repeat left;} | ||||
| .modules{background:transparent url(../img/icons/bricks.png) no-repeat left;} | ||||
| .modules_manage{background:transparent url(../img/icons/bricks_gear.png) no-repeat left;} | ||||
| @@ -1,51 +0,0 @@ | ||||
| #footer ul { | ||||
| 	list-style:none; | ||||
| } | ||||
| #footer li { | ||||
| 	display:inline; | ||||
| } | ||||
| a#defswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#bd3f09; | ||||
| 	font-size: 8px; | ||||
| 	color:#bd3f09; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#blueswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#375b91; | ||||
| 	font-size: 8px; | ||||
| 	color:#375b91; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#greenswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#d0e0b8; | ||||
| 	font-size: 8px; | ||||
| 	color:#d0e0b8; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#brownswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#654322; | ||||
| 	font-size: 8px; | ||||
| 	color:#654322; | ||||
| 	display:inline-block; | ||||
| } | ||||
| a#mixswitch { | ||||
| 	width:15px; | ||||
| 	height:10px; | ||||
| 	margin: 3px 0 3px 0; | ||||
| 	background-color:#294145; | ||||
| 	font-size: 8px; | ||||
| 	color:#294145; | ||||
| 	display:inline-block; | ||||
| } | ||||
| @@ -1,121 +0,0 @@ | ||||
| body{ | ||||
| 	background:#f7f6f0 url(../img/bg.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#a43708; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#f7f6f0; | ||||
| 	background:#bd3f09; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #FFF; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#993400; | ||||
| 	background: #FFF url(../img/bg_menu_red.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#f7f6f0; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| 	color:#a43708; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x center left; | ||||
| 	color:#a43708; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #e8e7e1; | ||||
| 	background:#fff url(../img/form_red.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#e8e7e1; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#c00; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| 	color:#a43708; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #e8e7e1; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#f7f6f0; | ||||
| 	color:#a43708; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#f7f6f0; | ||||
| 	border-bottom:1px solid #e8e7e1; | ||||
| } | ||||
| @@ -1,121 +0,0 @@ | ||||
| body{ | ||||
| 	background:#f3f9ff url(../img/bg_blue.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#375b91; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#f3f9ff; | ||||
| 	border-bottom:1px solid #d9e6f0; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#FFF; | ||||
| 	background:#7e9dcc; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #FFF; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#375b91; | ||||
| 	background: #FFF url(../img/bg_menu_blue.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #d9e6f0; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#f3f9ff; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#f3f9ff; | ||||
| 	border-bottom:1px solid #d9e6f0; | ||||
| 	color:#375b91; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #d9e6f0; | ||||
| 	background:#fff url(../img/form_blue.gif) repeat-x center left; | ||||
| 	color:#375b91; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #d9e6f0; | ||||
| 	background:#fff url(../img/form_blue.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #d9e6f0; | ||||
| 	background:#fff url(../img/form_blue.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#d9e6f0; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#375b91; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f3f9ff; | ||||
| 	border-bottom:1px solid #d9e6f0; | ||||
| 	color:#375b91; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #d9e6f0; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#f3f9ff; | ||||
| 	color:#375b91; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#f3f9ff; | ||||
| 	border-bottom:1px solid #d9e6f0; | ||||
| } | ||||
| @@ -1,121 +0,0 @@ | ||||
| body{ | ||||
| 	background:#f0f7e8 url(../img/bg_light_green.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#f0f7e8; | ||||
| 	border-bottom:1px solid #e7eedf; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#93ad7e; | ||||
| 	background:#e7eedc; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #93ad7e; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#93ad7e; | ||||
| 	background: #FFF url(../img/bg_menu_green.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #e7eedf; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#f0f7e8; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#f0f7e8; | ||||
| 	border-bottom:1px solid #e7eedf; | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #e7eedf; | ||||
| 	background:#fff url(../img/form_green.gif) repeat-x center left; | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #e7eedf; | ||||
| 	background:#fff url(../img/form_green.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #e7eedf; | ||||
| 	background:#fff url(../img/form_green.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#e7eedf; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f0f7e8; | ||||
| 	border-bottom:1px solid #e7eedf; | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #e7eedf; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#f0f7e8; | ||||
| 	color:#93ad7e; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#f0f7e8; | ||||
| 	border-bottom:1px solid #e7eedf; | ||||
| } | ||||
| @@ -1,121 +0,0 @@ | ||||
| body{ | ||||
| 	background:#f7f6f1 url(../img/bg_brown.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#654322; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#f7f6f1; | ||||
| 	border-bottom:1px solid #e9e8e3; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#FFF; | ||||
| 	background:#8f6831; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #654322; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#654322; | ||||
| 	background: #FFF url(../img/bg_menu_brown.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#f7f6f1; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#f7f6f1; | ||||
| 	border-bottom:1px solid #e9e8e3; | ||||
| 	color:#654322; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #e9e8e3; | ||||
| 	background:#fff url(../img/form_brown.gif) repeat-x center left; | ||||
| 	color:#654322; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #e9e8e3; | ||||
| 	background:#fff url(../img/form_brown.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #e9e8e3; | ||||
| 	background:#fff url(../img/form_brown.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#e9e8e3; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#654322; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#f7f6f1; | ||||
| 	border-bottom:1px solid #e9e8e3; | ||||
| 	color:#654322; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #e9e8e3; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#f7f6f1; | ||||
| 	color:#654322; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#f7f6f1; | ||||
| 	border-bottom:1px solid #e9e8e3; | ||||
| } | ||||
| @@ -1,122 +0,0 @@ | ||||
| body{ | ||||
| 	background:#d9eaed url(../img/bg_mix.jpg) repeat-x top; | ||||
| 	color: #202020; | ||||
| } | ||||
| a, a:visited{ | ||||
| 	color:#294145; | ||||
| 	text-decoration:underline; | ||||
| } | ||||
| input{ | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| select{ | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| #header h2{ | ||||
| 	color:#FFF; | ||||
| } | ||||
| #content{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #sidebar h3{ | ||||
| 	background:#d9eaed; | ||||
| 	border-bottom:1px solid #c3d7db; | ||||
| } | ||||
| #topmenu a,#topmenu a:visited{ | ||||
| 	color:#FFF; | ||||
| 	background:#5d99a3; | ||||
| } | ||||
| #topmenu a:hover{ | ||||
| 	color: #294145; | ||||
| } | ||||
| #topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{ | ||||
| 	color:#294145; | ||||
| 	background: #FFF url(../img/bg_menu_mix.jpg) repeat-x top; | ||||
| 	border-left: #FFF 1px solid; | ||||
| 	border-right: #FFF 1px solid; | ||||
| } | ||||
| #top-panel{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| table{ | ||||
| 	background:none; | ||||
| } | ||||
| td, th{ | ||||
| 	border:1px solid #c3d7db; | ||||
| }  | ||||
| thead{ | ||||
| 	background:#d9eaed; | ||||
| } | ||||
| #styleswitcher{ | ||||
| 	background:#FFFFFF; | ||||
| } | ||||
| #footer{ | ||||
| 	background:#FFF; | ||||
| } | ||||
| #box{ | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| #box h3{ | ||||
| 	background:#d9eaed; | ||||
| 	border-bottom:1px solid #c3d7db; | ||||
| 	color:#294145; | ||||
| } | ||||
| /*************** | ||||
| 	  Forms | ||||
| ***************/ | ||||
| form#form fieldset { | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| form#form legend { | ||||
| 	border:1px solid #c3d7db; | ||||
| 	background:#fff url(../img/form_mix.gif) repeat-x center left; | ||||
| 	color:#294145; | ||||
| } | ||||
| form#form input { | ||||
| 	border:1px solid #c3d7db; | ||||
| 	background:#fff url(../img/form_mix.gif) repeat-x top left; | ||||
| } | ||||
| form#form textarea { | ||||
| 	border:1px solid #c3d7db; | ||||
| 	background:#fff url(../img/form_mix.gif) repeat-x bottom left; | ||||
| } | ||||
| form#form option { | ||||
| 	background:#FFF; | ||||
| } | ||||
| form#form optgroup { | ||||
| 	background:#c3d7db; | ||||
| } | ||||
| form#form optgroup option { | ||||
|  | ||||
| } | ||||
| form#form #button1, form#form #button2 { | ||||
| 	color:#294145; | ||||
| } | ||||
| form#form #button1:hover, form#form #button2:hover { | ||||
| 	color:#000; | ||||
| } | ||||
| /*************** | ||||
| 	Home | ||||
| ***************/ | ||||
| #infobox{ | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| #infobox h3{ | ||||
| 	background:#d9eaed; | ||||
| 	border-bottom:1px solid #c3d7db; | ||||
| 	color:#294145; | ||||
| } | ||||
| #rightnow { | ||||
| 	border:1px solid #c3d7db; | ||||
| } | ||||
| #rightnow .reallynow { | ||||
| 	background:#d9eaed; | ||||
| 	color:#294145; | ||||
| } | ||||
| #rightnow h3{ | ||||
| 	background:#d9eaed; | ||||
| 	border-bottom:1px solid #c3d7db; | ||||
| } | ||||
| Before Width: | Height: | Size: 372 B | 
| Before Width: | Height: | Size: 359 B | 
| Before Width: | Height: | Size: 355 B | 
| Before Width: | Height: | Size: 356 B | 
| Before Width: | Height: | Size: 372 B | 
| Before Width: | Height: | Size: 383 B | 
| Before Width: | Height: | Size: 379 B | 
| Before Width: | Height: | Size: 367 B | 
| Before Width: | Height: | Size: 353 B | 
| Before Width: | Height: | Size: 272 B | 
| Before Width: | Height: | Size: 273 B | 
| Before Width: | Height: | Size: 273 B | 
| Before Width: | Height: | Size: 273 B | 
| Before Width: | Height: | Size: 166 B | 
| Before Width: | Height: | Size: 40 KiB | 
| Before Width: | Height: | Size: 55 KiB | 
| Before Width: | Height: | Size: 733 B | 
| Before Width: | Height: | Size: 619 B | 
| Before Width: | Height: | Size: 379 B | 
| Before Width: | Height: | Size: 131 B |