Commit 18e4c41a authored by jan.koester's avatar jan.koester
Browse files

added sysico support

parent da5cd612
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ namespace blogi {

                size_t tgsstart=0,tgsend=0;
                if (!tags.empty() && content_id != -1) {
                    for (int i = 0; i <= tags.length(); ++i) {
                    for (size_t i = 0; i <= tags.length(); ++i) {
                        if (tags[i] == ' ' || i == tags.length()) {
                            if((i - tgsstart) >0 ){
                                std::string tag= tags.substr(tgsstart,(i-tgsstart));
+257 −0
Original line number Diff line number Diff line
#define sysicon_size 1009
const unsigned char sysicon[sysicon_size] =
{
    0x89, 0x50, 0x4e, 0x47,
    0x0d, 0x0a, 0x1a, 0x0a,
    0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52,
    0x00, 0x00, 0x00, 0x20,
    0x00, 0x00, 0x00, 0x20,
    0x08, 0x06, 0x00, 0x00,
    0x00, 0x73, 0x7a, 0x7a,
    0xf4, 0x00, 0x00, 0x00,
    0x01, 0x73, 0x52, 0x47,
    0x42, 0x00, 0xae, 0xce,
    0x1c, 0xe9, 0x00, 0x00,
    0x00, 0x04, 0x67, 0x41,
    0x4d, 0x41, 0x00, 0x00,
    0xb1, 0x8f, 0x0b, 0xfc,
    0x61, 0x05, 0x00, 0x00,
    0x00, 0x09, 0x70, 0x48,
    0x59, 0x73, 0x00, 0x00,
    0x0e, 0xc3, 0x00, 0x00,
    0x0e, 0xc3, 0x01, 0xc7,
    0x6f, 0xa8, 0x64, 0x00,
    0x00, 0x03, 0x86, 0x49,
    0x44, 0x41, 0x54, 0x58,
    0x47, 0xad, 0x97, 0x3f,
    0x48, 0x5b, 0x51, 0x14,
    0xc6, 0xe3, 0x62, 0x03,
    0xf6, 0x8f, 0xa2, 0x83,
    0x9b, 0x62, 0x6b, 0x1a,
    0x48, 0x2b, 0x6a, 0x8b,
    0x20, 0x08, 0x4e, 0x6d,
    0xda, 0x41, 0xdd, 0x5d,
    0x75, 0x14, 0x47, 0x51,
    0x54, 0x70, 0x10, 0x6d,
    0x9b, 0xea, 0x20, 0x82,
    0x90, 0xb4, 0x2a, 0x0a,
    0x0e, 0x22, 0x6e, 0x0e,
    0x22, 0xc4, 0xb6, 0x6e,
    0x52, 0x0d, 0x69, 0x11,
    0x17, 0x71, 0x92, 0x24,
    0xb6, 0x69, 0x8b, 0x15,
    0x87, 0xc6, 0xe8, 0xe9,
    0x77, 0xae, 0x27, 0x31,
    0xb7, 0xef, 0x36, 0xbc,
    0xc4, 0x7c, 0xf0, 0x83,
    0xe4, 0xde, 0x73, 0xbe,
    0xf3, 0x42, 0xee, 0x9f,
    0xf3, 0x1c, 0x39, 0xe8,
    0x2e, 0x78, 0x0e, 0xc6,
    0x40, 0x10, 0x44, 0x40,
    0x02, 0x9c, 0xcb, 0x67,
    0x1e, 0x1b, 0x07, 0x5e,
    0xc0, 0xb1, 0x05, 0x93,
    0x07, 0xf8, 0xc1, 0x0f,
    0x40, 0x36, 0xf9, 0x09,
    0x02, 0x80, 0x73, 0xf3,
    0xd6, 0x2d, 0xf0, 0x1a,
    0xfc, 0x01, 0xa6, 0x22,
    0x76, 0xe0, 0xdc, 0x37,
    0x80, 0xbd, 0x72, 0x52,
    0x2d, 0xf8, 0x0c, 0x4c,
    0xa6, 0xf9, 0xb0, 0x03,
    0x5c, 0xc0, 0x96, 0x1a,
    0xc0, 0x31, 0x30, 0x19,
    0xdd, 0x04, 0xf6, 0x6c,
    0x04, 0x59, 0x75, 0x1f,
    0x7c, 0x03, 0x26, 0x83,
    0x42, 0xf0, 0x1d, 0x3c,
    0x00, 0x46, 0x15, 0x83,
    0x30, 0xa0, 0xce, 0xce,
    0x4e, 0x5a, 0x5a, 0x5a,
    0xa2, 0xbe, 0xbe, 0x3e,
    0x72, 0xb9, 0x5c, 0x26,
    0x23, 0xaa, 0xac, 0xac,
    0xa4, 0xfa, 0xfa, 0x7a,
    0x6a, 0x6a, 0x6a, 0x22,
    0xb7, 0xdb, 0x4d, 0x25,
    0x25, 0x25, 0x96, 0x18,
    0xa7, 0xd3, 0x49, 0x1d,
    0x1d, 0x1d, 0x34, 0x3e,
    0x3e, 0x4e, 0x6d, 0x6d,
    0x6d, 0xa9, 0xf1, 0x2f,
    0xc0, 0xb8, 0x26, 0x78,
    0xb1, 0xa8, 0xa0, 0xdd,
    0xdd, 0x5d, 0x4a, 0xe9,
    0xfc, 0xfc, 0x9c, 0x56,
    0x57, 0x57, 0x55, 0x81,
    0x8a, 0x8a, 0x0a, 0x1a,
    0x1c, 0x1c, 0xa4, 0xed,
    0xed, 0x6d, 0x3a, 0x3d,
    0x3d, 0x95, 0x88, 0x2b,
    0x45, 0xa3, 0x51, 0xda,
    0xdc, 0xdc, 0x24, 0xaf,
    0xd7, 0x4b, 0xc5, 0xc5,
    0xc5, 0xd4, 0xdb, 0xdb,
    0x4b, 0x07, 0x07, 0x07,
    0x32, 0x4b, 0x14, 0x0a,
    0x85, 0xd2, 0x0f, 0x06,
    0x7c, 0x40, 0x13, 0x2f,
    0x3a, 0xde, 0xcf, 0x2a,
    0x20, 0x10, 0x08, 0x48,
    0xda, 0x95, 0xfc, 0x7e,
    0x3f, 0x0d, 0x0c, 0x0c,
    0x50, 0x2c, 0x16, 0x93,
    0x11, 0xb3, 0xe6, 0xe7,
    0xe7, 0x69, 0x7a, 0x7a,
    0x9a, 0x76, 0x76, 0x76,
    0x64, 0xe4, 0x5a, 0xec,
    0x99, 0xf2, 0x07, 0x49,
    0xa0, 0x2d, 0xca, 0x77,
    0x20, 0x1d, 0xd0, 0xda,
    0xda, 0x2a, 0x69, 0xa4,
    0x0a, 0x4f, 0x4e, 0x4e,
    0xca, 0xb7, 0xff, 0x6b,
    0x6f, 0x6f, 0x8f, 0x9a,
    0x9b, 0x9b, 0xe9, 0xec,
    0xec, 0x4c, 0x46, 0x74,
    0xb5, 0xb4, 0xb4, 0x64,
    0x3e, 0x00, 0x33, 0x0b,
    0x94, 0x4a, 0xc0, 0x6f,
    0xa0, 0x05, 0xec, 0xef,
    0xef, 0xd3, 0xdc, 0xdc,
    0x1c, 0x4d, 0x4c, 0x4c,
    0x88, 0x45, 0x76, 0xf1,
    0x5f, 0x32, 0x32, 0x32,
    0x42, 0x97, 0x97, 0x97,
    0x32, 0x72, 0xad, 0xad,
    0xad, 0x2d, 0xcd, 0x5b,
    0x38, 0x05, 0xb7, 0x81,
    0xe3, 0x99, 0x0c, 0x68,
    0xd4, 0xd6, 0xd6, 0xd2,
    0xd0, 0xd0, 0x90, 0x58,
    0xd8, 0xd3, 0xc6, 0xc6,
    0x86, 0x5a, 0xbc, 0x99,
    0xe2, 0x07, 0xe2, 0xc5,
    0x6a, 0xaa, 0x01, 0xf8,
    0xd8, 0x56, 0xe7, 0xb7,
    0x65, 0x92, 0x17, 0x52,
    0x24, 0x12, 0x11, 0x1b,
    0xfb, 0x5a, 0x5c, 0x5c,
    0xa4, 0x95, 0x95, 0x15,
    0xf9, 0x46, 0xb4, 0xbe,
    0xbe, 0x4e, 0xed, 0xed,
    0xed, 0x16, 0x7f, 0xe1,
    0x15, 0x70, 0x7c, 0xc8,
    0x18, 0x48, 0xd3, 0xd3,
    0xd3, 0x23, 0x16, 0xb9,
    0x6b, 0x79, 0x79, 0x99,
    0xfa, 0xfb, 0xfb, 0xd5,
    0x36, 0x6e, 0x6c, 0x6c,
    0xa4, 0x78, 0x3c, 0x4e,
    0x65, 0x65, 0x65, 0x96,
    0x1a, 0xe0, 0x23, 0x70,
    0xc4, 0x32, 0x06, 0xd2,
    0x04, 0x83, 0x41, 0xb1,
    0xcb, 0x4f, 0xbc, 0x05,
    0x47, 0x47, 0x47, 0xd5,
    0xc3, 0xb0, 0xf8, 0x3c,
    0x30, 0xd4, 0xe1, 0xda,
    0x6a, 0x4b, 0x68, 0x13,
    0xbc, 0xe7, 0x8f, 0x8f,
    0x8f, 0x55, 0x62, 0xa1,
    0x34, 0x36, 0x36, 0xa6,
    0xd5, 0x10, 0x78, 0xeb,
    0x3b, 0x2e, 0x32, 0x06,
    0x14, 0x55, 0x55, 0x55,
    0x94, 0x48, 0x24, 0x24,
    0xb5, 0x30, 0x5a, 0x58,
    0x58, 0xd0, 0x6a, 0x08,
    0xfc, 0xe3, 0xad, 0x17,
    0x4f, 0x4d, 0x4d, 0x0d,
    0x25, 0x93, 0x49, 0x49,
    0x2d, 0x8c, 0x78, 0x77,
    0xfc, 0x5b, 0x07, 0x70,
    0x6d, 0xb5, 0x10, 0xb4,
    0x89, 0xf2, 0xf2, 0x72,
    0x3a, 0x39, 0x39, 0x91,
    0xd4, 0xc2, 0x68, 0x6a,
    0x6a, 0x4a, 0xab, 0x21,
    0x7c, 0x02, 0x6a, 0x2b,
    0x68, 0x13, 0x45, 0x45,
    0x45, 0x14, 0x0e, 0x87,
    0x25, 0xb5, 0x30, 0xea,
    0xee, 0xee, 0xd6, 0x6a,
    0x08, 0xdc, 0xf0, 0xa8,
    0x3e, 0xcf, 0x32, 0x69,
    0xf7, 0x04, 0xb4, 0xa3,
    0x8b, 0x8b, 0x0b, 0xf5,
    0xb7, 0x1a, 0xea, 0xbc,
    0x00, 0xea, 0x38, 0xe4,
    0x63, 0x51, 0x9b, 0xf4,
    0x78, 0x3c, 0x92, 0x7e,
    0x73, 0xad, 0xad, 0xad,
    0x69, 0xde, 0x02, 0xd7,
    0xbc, 0x03, 0x94, 0xf8,
    0x62, 0xb0, 0x04, 0xcd,
    0xce, 0xce, 0x8a, 0xc5,
    0xcd, 0xd4, 0xd0, 0xd0,
    0x60, 0xf1, 0x06, 0x73,
    0x20, 0x2d, 0xbe, 0x1a,
    0x2d, 0xe7, 0x41, 0x69,
    0x69, 0x29, 0x1d, 0x1e,
    0x1e, 0x8a, 0x4d, 0x7e,
    0x1a, 0x1e, 0x1e, 0xd6,
    0x3c, 0x05, 0xae, 0xe5,
    0x06, 0x9a, 0xb8, 0x49,
    0xb0, 0x04, 0x73, 0xb7,
    0x73, 0x74, 0x74, 0x24,
    0x76, 0xb9, 0x69, 0x66,
    0x66, 0xc6, 0xe2, 0x27,
    0x4c, 0x00, 0x8b, 0xb8,
    0x4d, 0xe2, 0x76, 0xc9,
    0x92, 0x50, 0x5d, 0x5d,
    0xad, 0xba, 0x1d, 0xbb,
    0xe2, 0x43, 0x8c, 0xef,
    0x02, 0x93, 0x17, 0xf8,
    0x0a, 0xfe, 0xdb, 0xa6,
    0x73, 0xc3, 0xc8, 0x8d,
    0xa3, 0x29, 0x91, 0xba,
    0xba, 0xba, 0x8c, 0xdd,
    0x4e, 0x4a, 0x7c, 0x76,
    0xf0, 0x6d, 0x58, 0x57,
    0x57, 0x67, 0xcc, 0x07,
    0x71, 0xc0, 0xdd, 0x57,
    0x56, 0x3d, 0x01, 0x59,
    0x3b, 0x63, 0x5e, 0x54,
    0xbc, 0xaf, 0xf9, 0xb2,
    0xf1, 0xf9, 0x7c, 0xea,
    0xd7, 0xf2, 0x65, 0xc3,
    0x8d, 0xaa, 0x29, 0x5e,
    0x60, 0xcf, 0xa7, 0xc0,
    0x96, 0x1e, 0x82, 0x5d,
    0x60, 0x32, 0xca, 0x87,
    0x10, 0x60, 0xcf, 0x9c,
    0xe4, 0x04, 0xbc, 0x30,
    0xf9, 0x05, 0xd4, 0x64,
    0x6a, 0x07, 0xce, 0x7d,
    0x0b, 0xd8, 0x2b, 0x6f,
    0x3d, 0x02, 0xdc, 0xb4,
    0xfe, 0x02, 0xa6, 0x22,
    0x26, 0x38, 0xf6, 0x3d,
    0x78, 0x0c, 0x0a, 0xa6,
    0x7b, 0xe0, 0x25, 0xe0,
    0xf3, 0x9b, 0xbb, 0x28,
    0x7e, 0x25, 0xe7, 0xfb,
    0x9c, 0x89, 0xca, 0x18,
    0xcf, 0x71, 0x4c, 0x29,
    0xb0, 0x21, 0x87, 0xe3,
    0x2f, 0x65, 0x95, 0x53,
    0xaf, 0x69, 0xef, 0x2c,
    0x8f, 0x00, 0x00, 0x00,
    0x00, 0x49, 0x45, 0x4e,
    0x44, 0xae, 0x42, 0x60,
    0x82
};
+181 −0
Original line number Diff line number Diff line
#define sysicon_size 707
const unsigned char sysicon[sysicon_size] =
{
    0x89, 0x50, 0x4e, 0x47,
    0x0d, 0x0a, 0x1a, 0x0a,
    0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52,
    0x00, 0x00, 0x00, 0x20,
    0x00, 0x00, 0x00, 0x20,
    0x08, 0x06, 0x00, 0x00,
    0x00, 0x73, 0x7a, 0x7a,
    0xf4, 0x00, 0x00, 0x02,
    0x8a, 0x49, 0x44, 0x41,
    0x54, 0x58, 0x47, 0xed,
    0x96, 0x5f, 0x68, 0xce,
    0x51, 0x18, 0xc7, 0xf7,
    0x46, 0x43, 0xdb, 0x42,
    0xb4, 0x4c, 0x8d, 0x1b,
    0x57, 0xa2, 0x66, 0xb1,
    0x36, 0x8a, 0x94, 0x15,
    0xdb, 0x85, 0x44, 0xd2,
    0xc8, 0xc5, 0x8a, 0xb4,
    0x52, 0xda, 0x4c, 0x4d,
    0xf9, 0x73, 0xe1, 0x4f,
    0x49, 0x0a, 0xa5, 0x16,
    0x29, 0x2d, 0x17, 0x13,
    0x25, 0x29, 0x42, 0x29,
    0xa5, 0x76, 0xb1, 0xda,
    0xcd, 0x1a, 0xc9, 0x0d,
    0x49, 0xfe, 0x45, 0xa4,
    0x30, 0x9b, 0xed, 0xf3,
    0x5d, 0xcf, 0x5b, 0xc7,
    0xaf, 0xf7, 0xfc, 0x7e,
    0xe7, 0xf7, 0x93, 0x77,
    0x29, 0xa7, 0x3e, 0xbd,
    0xef, 0xfb, 0x9c, 0xe7,
    0x3c, 0xcf, 0xf7, 0x3c,
    0xe7, 0xf7, 0x7b, 0xce,
    0x9b, 0x2b, 0x99, 0xe4,
    0x91, 0x9b, 0xe4, 0xfc,
    0x25, 0xff, 0xac, 0x80,
    0x23, 0x54, 0xee, 0xa8,
    0x53, 0xbd, 0x61, 0xbe,
    0xcf, 0x83, 0x4f, 0x69,
    0x2b, 0x9a, 0xa5, 0x02,
    0x3b, 0x48, 0xd2, 0xe3,
    0x49, 0x54, 0x8a, 0xfd,
    0x67, 0x1a, 0x11, 0x59,
    0x04, 0x8c, 0xc5, 0x24,
    0x78, 0xcf, 0x5c, 0x65,
    0xb1, 0x05, 0xbc, 0x22,
    0xe1, 0x4c, 0xa8, 0xb0,
    0xc4, 0xa9, 0x36, 0x95,
    0xca, 0xd9, 0x12, 0xa8,
    0x02, 0xbb, 0x61, 0x23,
    0xd4, 0xc3, 0x16, 0x78,
    0x02, 0x6f, 0x8a, 0x29,
    0x40, 0xb9, 0x36, 0xc3,
    0x2e, 0x58, 0x0f, 0x03,
    0xb0, 0xac, 0x98, 0x02,
    0xd6, 0x90, 0xec, 0x91,
    0x73, 0xd6, 0xee, 0x5b,
    0x31, 0x0b, 0xfb, 0xe7,
    0xd0, 0xe7, 0x20, 0xeb,
    0x11, 0x4c, 0x27, 0xc1,
    0x0f, 0x4b, 0xa2, 0xef,
    0xe7, 0xac, 0x1a, 0x32,
    0x9d, 0x84, 0x83, 0x7f,
    0x53, 0xc0, 0x3b, 0x82,
    0x97, 0xc3, 0x35, 0xd0,
    0xeb, 0x58, 0x0b, 0xcf,
    0xe0, 0xa6, 0x93, 0x34,
    0x78, 0x63, 0xc1, 0x8e,
    0xce, 0x6e, 0x25, 0x60,
    0x2d, 0xf4, 0xc3, 0x20,
    0x2c, 0xb5, 0xb9, 0x75,
    0x7c, 0xde, 0xb7, 0xef,
    0x8d, 0x7c, 0x3e, 0x08,
    0xa9, 0x42, 0x5a, 0x01,
    0xa3, 0x04, 0x9d, 0x0d,
    0x5f, 0x3c, 0xc1, 0xdd,
    0x1e, 0x31, 0x0d, 0x1f,
    0x75, 0xc8, 0xd8, 0x91,
    0x46, 0xc0, 0x63, 0x22,
    0xad, 0x84, 0xb8, 0x35,
    0xb7, 0x98, 0x57, 0x25,
    0x66, 0x58, 0xd6, 0xc4,
    0xf8, 0x89, 0x0e, 0x16,
    0x48, 0xdd, 0xed, 0x2d,
    0x7c, 0x85, 0x7c, 0xc3,
    0xf1, 0xed, 0x4c, 0x55,
    0xd8, 0x0f, 0xa7, 0xed,
    0xb9, 0xd8, 0x14, 0x57,
    0x82, 0x50, 0x01, 0x2f,
    0x08, 0xb2, 0xc0, 0x76,
    0xf6, 0x3d, 0xa1, 0xaa,
    0xb7, 0x99, 0x6f, 0x72,
    0x2a, 0x15, 0x9b, 0x23,
    0x54, 0x80, 0x76, 0xf5,
    0x0b, 0xa6, 0x24, 0x9d,
    0xa9, 0x1d, 0x93, 0x8e,
    0xeb, 0x2e, 0xa8, 0x49,
    0xed, 0x04, 0xdf, 0xe5,
    0x15, 0xf4, 0x7f, 0xa0,
    0x8d, 0x00, 0x6a, 0xb9,
    0x1f, 0x61, 0x5f, 0x80,
    0x00, 0xdd, 0x88, 0xea,
    0x11, 0x07, 0xe0, 0x94,
    0xad, 0x9b, 0xe3, 0x5b,
    0x17, 0x52, 0x01, 0xed,
    0xfe, 0x38, 0xa8, 0xf4,
    0xc7, 0x02, 0x04, 0xc8,
    0x45, 0x6b, 0x2e, 0x43,
    0xab, 0xf9, 0x7b, 0xf3,
    0x84, 0x0a, 0xe8, 0x25,
    0x50, 0x37, 0x3c, 0x0c,
    0x14, 0x30, 0x84, 0xdf,
    0x37, 0x50, 0x93, 0xd2,
    0xc8, 0x2c, 0x40, 0x6d,
    0x56, 0x3b, 0xdf, 0x00,
    0xba, 0xfd, 0xf6, 0x04,
    0x08, 0x38, 0x81, 0x4f,
    0x97, 0xe3, 0xa7, 0x63,
    0x3b, 0x9b, 0xf5, 0x08,
    0xae, 0xb2, 0x70, 0xbb,
    0x2d, 0x56, 0x05, 0x56,
    0xc1, 0x92, 0x18, 0x11,
    0xba, 0x21, 0x6f, 0xc0,
    0x6b, 0xa8, 0x02, 0xbd,
    0x8a, 0x9d, 0x71, 0xa2,
    0x7d, 0xa5, 0x59, 0xc1,
    0x22, 0xb5, 0x59, 0x95,
    0xd1, 0x1d, 0x23, 0x56,
    0x4e, 0xdf, 0xdb, 0xb0,
    0x9c, 0x79, 0xb5, 0xe8,
    0xe8, 0x50, 0xeb, 0x2e,
    0x78, 0x7c, 0x3e, 0x01,
    0x67, 0x58, 0xd0, 0x5e,
    0x20, 0x50, 0x19, 0x36,
    0x35, 0xa3, 0x6d, 0xa0,
    0xe7, 0x22, 0x3a, 0xe6,
    0xdb, 0xee, 0xa3, 0x76,
    0xdd, 0x0d, 0xab, 0xe1,
    0x50, 0x74, 0xc2, 0x27,
    0xe0, 0x03, 0x8e, 0x73,
    0x3d, 0xa5, 0xbb, 0x84,
    0xbd, 0x03, 0xa2, 0x77,
    0xfe, 0x3d, 0x6c, 0xba,
    0x11, 0x2f, 0x78, 0xd6,
    0xe5, 0x9f, 0xa7, 0xdf,
    0xa6, 0x7d, 0x02, 0x16,
    0xe1, 0xf5, 0xdc, 0x13,
    0x48, 0x66, 0x9d, 0xf5,
    0x75, 0x78, 0x0a, 0xf2,
    0x9d, 0x6a, 0xbe, 0xfa,
    0xab, 0x76, 0x31, 0xb2,
    0x6e, 0x31, 0xbf, 0xaf,
    0x40, 0x03, 0xe8, 0x08,
    0x83, 0x04, 0x1c, 0xc6,
    0xab, 0x05, 0xd4, 0xc1,
    0xce, 0x43, 0xf4, 0xf6,
    0x53, 0xf9, 0xb7, 0x16,
    0x10, 0xf8, 0x12, 0xdb,
    0x42, 0xc7, 0xae, 0xe6,
    0xa5, 0x16, 0xae, 0x63,
    0x2b, 0x38, 0x42, 0xfa,
    0x80, 0x16, 0xea, 0x72,
    0xd9, 0x0b, 0x77, 0xa0,
    0x19, 0xaa, 0x3d, 0xf1,
    0xea, 0xb0, 0xf7, 0x81,
    0xee, 0x83, 0x1a, 0x4b,
    0xee, 0xcb, 0x3d, 0x61,
    0x0f, 0x15, 0x10, 0x1b,
    0xe4, 0x4f, 0x26, 0xff,
    0x0b, 0x18, 0x07, 0x0f,
    0xb9, 0x6d, 0x21, 0xd8,
    0x5e, 0xbb, 0xb0, 0x00,
    0x00, 0x00, 0x00, 0x49,
    0x45, 0x4e, 0x44, 0xae,
    0x42, 0x60, 0x82
};
+23 −3
Original line number Diff line number Diff line
@@ -37,6 +37,12 @@
#include "theme.h"
#include "conf.h"

#ifdef Linux
#include "icons/tux.h"
#else
#include "icons/freebsd.h"
#endif

#define RELEASEFILE "/etc/os-release"

namespace blogi {
@@ -64,6 +70,20 @@ namespace blogi {
            if(strncmp(req->getRequestURL(),Args->config->buildurl("nodeinfo",url,512),strlen(Args->config->buildurl("nodeinfo",url,512)))!=0){
                return false;
            }

            if(strncmp(req->getRequestURL(),Args->config->buildurl("nodeinfo/sysico.png",url,512),strlen(Args->config->buildurl("nodeinfo/sysico.png",url,512)))==0){
                libhttppp::HttpResponse resp;
                resp.setVersion(HTTPVERSION(1.1));
                resp.setState(HTTP200);
                resp.setContentType("image/jpeg");
                resp.send(req,(const char*)sysicon,sysicon_size);
                return true;
            }

            libhtmlpp::HtmlString condat,sysicohtml;

            sysicohtml << "<img alt=\"sysico\" src=\"" << Args->config->buildurl("nodeinfo/sysico.png",url,512) << "\" />";

            #ifndef Windows
            struct utsname usysinfo;
            uname(&usysinfo);
@@ -78,7 +98,7 @@ namespace blogi {
            }

            /*create table rows*/
            htmltable << libhtmlpp::HtmlTable::Row() << "Operating system:" << usysinfo.sysname;
            htmltable << libhtmlpp::HtmlTable::Row() << "Operating system:" << (sysicohtml << usysinfo.sysname);
            htmltable << libhtmlpp::HtmlTable::Row() << "Release Version :" << usysinfo.release;
            htmltable << libhtmlpp::HtmlTable::Row() << "Hardware        :" << usysinfo.machine;

@@ -106,7 +126,9 @@ namespace blogi {
                htmltable << libhtmlpp::HtmlTable::Row() << "Arbeitspeicher: " <<  ab;
            }
#endif

            libhtmlpp::HtmlElement table;

            htmltable.insert(&table);
            table.setAttribute("class","kinfo");

@@ -119,10 +141,8 @@ namespace blogi {
            std::string sid;
            libhtmlpp::print(&html,systable);

            libhtmlpp::HtmlString condat;
            condat << systable;


            page->getElementbyID("main")->insertChild(condat.parse());

            Args->theme->printSite(tid,out,page,req->getRequestURL(),
+3 −3
Original line number Diff line number Diff line
@@ -64,11 +64,10 @@ bool blogi::Auth::login(const int tid,const char* username, const char* password
#ifdef LDAPSUPPORT
    if(!ldapLogin(tid,username,password,ssid))
        return locallogin(tid,username,password,ssid);
    else
        return true;
#else
    return locallogin(username,password,ssid);
#endif
    return false;
}

bool blogi::Auth::locallogin(const int tid,const char* username, const char* password, std::string& ssid){
@@ -159,6 +158,7 @@ bool blogi::Auth::ldapLogin(const int tid,const char *username,const char *passw
                if (strcmp(attribute, "userPrincipalName") == 0) {
                    for (int i = 0; values[i]; i++) {
                        if (strncmp(username, values[i]->bv_val, values[i]->bv_len) == 0) {
                            ldap_value_free_len(values);
                            goto LDAPLOGINUSERFOUND;
                        }
                    }