Language: PHP

Untitled PHP (2-May @ 14:56)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "Hello";

Plain Code

<?php

echo "Hello";

Untitled PHP (2-May @ 14:33)

Syntax Highlighted Code

  1. <?php phpinfo(); ?>

Plain Code

<?php phpinfo(); ?>

Untitled PHP (24-Apr @ 01:25)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. [582 more lines...]

Plain Code

<!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="de" lang="de">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <script type="text/javascript">
        //<![CDATA[
        var PHX_PAGELOAD_START = new Date().getTime();
        document.cookie = "Pm=; path=/";
        //]]>
    </script>

    <title>meinVZ | Patricia Müller</title>

    <meta name="description" content="meinVZ ist eine kostenlose Kommunikationsplattform. Jeder Nutzer kann hier seine persönlichen Netzwerke pflegen, mit Freunden und Bekannten in Kontakt bleiben und neue Verbindungen herstellen - auch zu den Mitgliedern von studiVZ. Das Netzwerk aus studiVZ und meinVZ ist die größte und aktivste Online-Community Deutschlands." />
    <meta name="keywords" content="Studenten, students" />
        <meta name="ajaxUrl" content="/Ajax" />
    <meta name="platformId" content="Avz" />
    <meta name="platformUrlOther" content="http://www.studivz.net" />
    <meta name="staticServer" content="http://static.pe.meinvz.net/20110328-0" />
    <meta name="oembedServer" content="" />
    <meta name="noCacheFlag" content="20110328-0" />
    
    
    
    <meta name="msapplication-task" content="name=Start;action-uri=http://www.meinvz.net/Home/;icon-uri=http://static.pe.meinvz.net/20110328-0/favicon.ico" />

    <meta name="msapplication-task" content="name=Meine Freunde;action-uri=http://www.meinvz.net/Friends/;icon-uri=http://static.pe.meinvz.net/20110328-0/favicon.ico" />  
    <meta name="msapplication-task" content="name=Meine Fotos;action-uri=http://www.meinvz.net/Photos/Slideshow;icon-uri=http://static.pe.meinvz.net/20110328-0/favicon.ico" />
    <meta name="msapplication-task" content="name=Meine Gruppen;action-uri=http://www.meinvz.net/Groups/;icon-uri=http://static.pe.meinvz.net/20110328-0/favicon.ico" />
    <meta name="msapplication-task" content="name=Nachrichtendienst;action-uri=http://www.meinvz.net/Messages/;icon-uri=http://static.pe.meinvz.net/20110328-0/favicon.ico" />

            <meta name="Search_getFriendlist" content="formkey=7d2110d8c5b06cfaf97f25156971a6cf8c70ebb621a1ab9bd0086289a38df9ea654f106452d50bcab4a0f896e64849962745febaf29517b0ace5ae2fe07ad61b743ac8c3e1278fe61d4a30278154383f584fc68003ec3e328704dd88575b6d218d7b9df69705590e17d93082e37bb141&amp;iv=7a59f230e4a76d9a181ca9767231d965" />
            <meta name="AccuseIgnore_accuseIgnore" content="formkey=8b5c897a66c361df5fa12332aa3c2f6e6105404eccf31729261b8e40808e56cfad70765961d396bd1f35d96d531929da15b36734100d815102100b70ca572526fbe7179552773002f26c501de1103cbf2d68b1f243541ad7c2c6633c3fb5cb718238a344d280dc959febf0874a62ec6952b531b765dca7fdd739979e937f63ea&amp;iv=ab932745682873aab3d5247bfb47d555" />
            <meta name="Photos_getSliderData" content="formkey=22f100f47f16f980b82f7090bebc3d8460ec19c19b00f0a8122db499915d98ae7b2f9461b7dda502bd7c12baf56455c25bb65206d8867d5687c921f94e393825b34b2b6a4cccc32ef7bd84b71341545b04b8f05f871e4ade3c7629bd95b68bc1078043bd539e9ee2b9e357e23017a557&amp;iv=81554b2bdaf038aa0b8f3c70771fc501" />
            <meta name="Friends_bigPathRender" content="formkey=cce1b9d29caf0c6fa4507383c5a3cf4109641fa41ab8b30a2c56553d31df55934846220c5c8d98f570042fb701d779afdbf564007605928b03ad77854adf30adf3e4715068b9bacbad761426acec839cd76920b2c52315c11dfa2916a4dd9a8a21bd9399ceb3835d5fae2fb764685dd7&amp;iv=a3b96aa20dd57bc76d5253c19d7d9c22" />
            <meta name="Photos_getUserAlbums" content="formkey=3068a34d3ce0a32980b31e6b7df41fc53c561906c4af579f64e843cfd030b77b7246d248dcd35078ff12dfc64e557518ac8a95b2bfe3d19ff20921aa8778f14fa8a7b71f5051ae1bb550d3779b4cf5d49388364ad5eecffcfde899bbc267f5b5106278cd452c3f2719acd63332bdcaa1&amp;iv=0c92f0e9119b9ee4bfacab15a01bd830" />

            <meta name="Photos_getAlbumPhotos" content="formkey=8b692cb187a573d05445d62fc4a601323b916ffe32f022aede59029d1d7a671ae22575b6a5e55ac18e2064c38d1882274bd7316c2601d7b4fec77cd1f55fb450c05c6cde3d353c91bcda869762fe5521e15d41f2627a2701dd226749489bfcc3adfc3e7463c0e27be5ee307d3a384203&amp;iv=30bef3fe1b3a94782dbefb6551a9118e" />
            <meta name="Link_imageUpload" content="formkey=684da12683e753422fdfe442086b78c73de5fb8d031ef625243bcb73d391789edc4ddca97dae3b19b343876fa6a2e2c86144a8431ed4efc626818b4e6647e6e0bad8b2e8b71d05f7656a5ad88c138330ea7d6db99f5210138428bee15a1ce5dd6e7c72536fa25d810d9d3b05d19f00ae&amp;iv=bf141131087d3f1e6ca27f87e2d1dacd" />
            <meta name="Link_embedImage" content="formkey=5b59c47270411b64beec6281abfd3323a32d6979474069b0ff54e484caaa502434e821aa1c3580cd58e7dd4baad89653a6e07cc5b43608da06a70f6e635a496a3329060b23cb58ec0072c828f46d715e98f880f092bb7eb3f81f4d305ae9f5dc1bec1a80c131639984343de1d4a1a896&amp;iv=b2960fe4664fef6634b4d0bb8712be22" />
            <meta name="Link_embedContent" content="formkey=701ab511f3c9c62ebe31148e9e2f5a9f15a4152f5bd80f7d49f3f0579989b6095c96b3d2902844ab5e441951289f29367b71fc71f8cfdf9c360e218299874f6d26f928760a6b402512c8aa43811a659aee20e79cbe0b8e463c13450d19ad029914b372a350dcf6eee89668e59e9e07db&amp;iv=8f6a246da90f5c7807dd39e8719568e9" />
            <meta name="Gadgets_CreateUniqueToken" content="formkey=5d821ac1bde379b54b6621b2370532430b2b1e408ec3e8d21896086e60ce4fc90a85b0bcc651274bcf768a44d202e3c15e8f3d49f96f39610a8043bc91df99885bef75b1f8f74dd73270825244ca3174959f2e739e9195c76440f8cced87211c6549b512179473f3907aba651a55e27d&amp;iv=1e56b134a21b24bdb4d4cd4d9f187ce2" />
            <meta name="Gadgets_getVcardInformation" content="formkey=2ae80fa457cd4b0321fcd9f28af0f1169c944a84eca4875e87ac63f850a382cff466bd8d5ae749ff808c42374485331b52cf5f4fe4912344b91e73560ee37148494f0d23f0de828499c334a81621c986512c9291f3b227219477805897ac7e4bedec489a71bbe1d6f57c0ecb116330f2&amp;iv=23c9b43f39491bca9f0b6e26048feb1b" />
            <meta name="Vcard_getProfileData" content="formkey=0550739c9c89807c260e4b83ed2bf786760ba90d1f72a377ff7a0d61f3586420d8c3c9731402d3fad467c151163efb5bfdfee306ffade6ad599aab52fd7661c219df0512ec2894ccc292f7c982dd8ec6404736fb658815ed60a3b43b8fab9b7c5c7dd43954ae6acd31d95bae57b50d14&amp;iv=1e106702f11150bd6d3598af80c2e132" />
            <meta name="Vcard_getVcardData" content="formkey=cdac9968f34fa74b8eb400b94d9b7dead755aa7ce423425991e9cd1c3a132bf81935d5a5153267fa8addcc29a7dee0beb85d2e7b9ccfde55996bd8187c188934ab97e5c31a01ba548389df6e216ac5c5d69fc6a6c3af82d316fa7550b053e3572fe48f17d808afccf4f9589cdac0b567&amp;iv=4dadde1b8915654adb1b2e107b23a054" />
            <meta name="Gadgets_getVcardForm" content="formkey=4e26171d6e917861642cd1bf645f8464ebe1292a7d408cca58c9d9f27abeca4913fe756d7a1fdee3d81cef9e6136d5cbe6b4d5202d84e3961f9c723bc69fd870724f7a8d4c6f281e98ac32adeae0b50f42bad2e65d4967c498f84d3c46e27f4ff833d360389e1e1b0bac4c332b6c3e9d6b04041ab0dff3dd09c8366540c68ef7&amp;iv=ae74ca5a56b9f153c7df030a71cd71c0" />

            <meta name="Gadgets_GetSecurityToken" content="formkey=398ef07989c77c25c295e9c0926fa1896ec1ca56c05105d80241848317c810ed7b4db1b61250ae4f873e8f3eaa4664ebc9db14525d3c19b49fbddc9e1c2e2893a67369826dc85536d363a4ede87da569aac0984decdfc0b796dd4923a829b78445631ba2e1616a270f85683d18925fd3&amp;iv=0e16494cc79b6dac125747c67b2b976b" />
            <meta name="Gadgets_getAdTag" content="formkey=924c514c504fa0b183aaaf6c2f22f11d396efc07575f32c377a0534b91a30aea0db1c514e8ca5197360e902973b65e9b36df6b9ace6043c26bcc2ac68a1d8b52e6fd15956ea7ff9d7d7d4d4817545c0b721443ea11d76cb3a5d8190b2c7215c0b80ae0ecc9fcc5a1012a36ef5a85f619&amp;iv=7e5c0713ac9148523b8d60e6c580e3ba" />
            <meta name="Gadgets_writeMessage" content="formkey=b1ddf17a8252674be13e2e31e4198a3a977fc994374af474267518232c84f126aedb84b9ecb42a60a237d0a6c96eac3aa8636c8f06329bf82176c0c16b9e88b1238ac7a866030d404e730a7dfa1c759f167d4ad82481c82259c3855519cef7a5884608aaab3983adfe1d559d01108998&amp;iv=1b1c5b5f0d4515c07d7953cf67fa889f" />
            <meta name="Gadgets_replyMessage" content="formkey=636b1356def289c71f313efe24304a4561c6f52a9561cd81c7ed18bb7c1b5f936f4bd7f29cc3f225ccab2dae91f687843ec6fa3f8b991e1e031ad5a6ee7147af744c60f47fee3ed3ce9209600cdbbc70b2b1a1f771a5aeaa39681ba7d7c62cebed17365e88ab6aa90ea9f19e7641045e&amp;iv=9b4b5bfbcbfdf4b750626ffd27e19c40" />
            <meta name="Gadgets_pinboardMessageDialog" content="formkey=bc8bd145d6c4ebf473ef2548d17b14da820cdfcc6935fc46848485fdc3ec7b7c11aebcb9ded5db72e7886e5471f57d9f9e8c3b4392b78b912844570c7be09a23587636434b9afa48000c312fe87e55d186fe48add73af795ec1261afe3f5c3d24aa158a33631b1e9d636be9684d7ab5163e0db817535810d44719e5417a4c21e&amp;iv=150f85d3f26878925a327d99b40346e3" />
            <meta name="Gadgets_pinboardMessage" content="formkey=b6d208e3b05a2a0885fd283a1cbd4bd298a6e1053dd8389fcddb0dbbf965d18f6a2a3b645ed8995ea329b3871d7e07649ee2f2356e0a2868397c8d50db39200d05c7d10c4fd575f27f144aae965a9669f45ac2daca70c1773d1d70b907fc2805563cf0801cdc945684c47cea6f986302&amp;iv=b02e31cb91e5709419719f61203cf022" />
            <meta name="Link_getEmbeddableGadgets" content="formkey=76f2ddc3ae94b24ff200cd099ae4c0adf93fbe775aa5d40904894e78a84da8e0726b4adb6bd7dfcdeec1a6ec075d95a3ed91fcf9610c32996fc42ccece073e0f4350ff6343cbede759187ff9bee80932c6bcf92d5b20cda95c6e0182918c2ae1aee6bdbcb767b898eae6b1b4d1ea63c8b2c844637bab714814e837b878aea8e0&amp;iv=7efa455be536d511426d98ae12663177" />
            <meta name="Link_getEmbedProviderView" content="formkey=e0e6bbd4057b3b251a3d2e1cc890eb0e09acc2d1d1cbfd92cbd7c1588c8ac96bb67ceaf4a9f40ec7e8e6ecbd52c79e41a2408646464d379a8e6409437c05f84ef857c882142a5946adc7c1554da6ba80df8470a10944ebb15fde7691623e044a1266ace239a05d3383fede02a1e11cad36ea26c88a3469dd3aa0be029bc10bb4&amp;iv=42012ec94f0098826db211d8989f3837" />
            <meta name="Link_getFlashUploadForm" content="formkey=34d61d8bb615604b9c9ae5e3f333e05f54e94c343391dae6d855305800ef29c56d896ef9b23adc68b0551f50af91263d69e283a5d1ea326ef4e0b151dafa9cb3560512ce7b95cdda416ba078050da9b4c1c9de70529874e18954c1b2af1077c7580c7559ad852158a8c18174522b5a8ffa72cf6ce140df2e0883c6522ece140b&amp;iv=0773f2cff4f789981152c10010546760" />

            <meta name="Groups_ChooseGroup" content="formkey=ffccbecd0420e6f9147ccf7484e03b2dc02b5487672c1be7ea7ddb8bdb28a7acedec26a0c2aa9e5b419d3f637b54a0c87f6873762447fe61fbb20eec8302261b9cb1f4bd0ee0ee2e0ee8a9508b40f7fbe6d76d735da1fa98ea934edfd19787065cf7f8b65cb9f8828a82446c71f204ba&amp;iv=03f8f8a1b6f773eba8735325059f142c" />
            <meta name="Profile_ChooseProfile" content="formkey=c825a64acfba1999ad43b87f24c0d70fd30990d23db380bc33780e19b4b2aac3b8aeae9e3960683734005941cb71d181427326ddf25a0840944d6552977bee38c69e8a0210c485a4d6ffc2881f38f3de619f575a5498d98791fcb179d0a1d4879294c2bb60cb4ef9dc525e223dca2578&amp;iv=8bc6125fbf9d6befa872651060134d60" />
            <meta name="Pinboard_ChooseVisual" content="formkey=621af4ec6ac020f3ad3f0e482f7fae693a26803e63b40eb08fa718f63a7a4b797aeea39f652cb59a5a5e53c4dfdd2a854a0551e0df89273c0b48344af6452ece2036ff6cce34b8fbeb33d3e58ee9ab8ee4a1e7dd1234dd672ea4de4c1f9884baaf8811ac3e9150ecbf622394733b400d250b15dec38c9f96088baf73cac0efdd&amp;iv=471e58e61b5eec79a7f405bb4c916726" />
            <meta name="Gadgets_getStaticKey" content="formkey=7eee9345b9b0b2b77949cbfd2f594efe78f1c7844d785b3fe6311933198822a0361366f4740c8420584c5d102afdf65c168a50d2e82672975249c2d8558a7705472aed36d9137d30dce96961f1731bcb7507b2373bbe527f1d70c04c02bbb727b57d1f9421ebee378db2e1456a94f3a3&amp;iv=37731011e748fd8888601c97b6a831a6" />
            <meta name="Gadgets_feedEntryDialog" content="formkey=3389fc5df7cea6441c0115a5917dff8d9cc4b52094f57d1a037299d0acf7e3e76d1ef525f5e5e17f9be53e6a87daed4cc5cf4f43a938eee44533eacf59cab32ecdc435f014c06fa7f28cd80c6a5a2c21a94dcf8fae5de62d9e7c9a834320bae5373d33ae6e14268920c5ffe3c9145113f2620a37f48c868096b8d235c4559194&amp;iv=3c97bf944fa03c6784dc790b34840678" />
            <meta name="Gadgets_feedEntry" content="formkey=6184ff90cf40b380ed5a21e64119d891f58c6e68be88d7acf679066719181d174f760119088ba8f78768a48d44715da68f46ff055c27fd55494fb01dfde668d88892770a2baef1359ece4ee02265843033dc39a9beeb84e7e03c22c36b5b4f91862bd990d2bbc4f2b1adf2d8eaac272b&amp;iv=e59b436c63ce5b52e513535d8af240f1" />
            <meta name="Gadgets_getPermissions" content="formkey=cdd5e5ac365ca3bf92747e118dcb1e824a80efba9b8b5a36b3a96068d4646021eb6b21b85064c7a29fc943dd9e530b3d514e4d9746c6555c23f2e5bf5ce410a7b6f53c0d8207778d3aa288ca4f3bfccdfb742676c8d7e6544f4b85840b0ea2865d0bc12338dbc3ead25be27efad69fce&amp;iv=2c06e93ac9527a3403d9f79a541a2049" />
            <meta name="Link_postFeedEntry" content="formkey=50fa7fdeb0e264dc9ff1bb80892730376b2d78d59286304a8dc62a6d1f6fd624460d7d2ee8be9e1aa75d9593a1a6e6d9d032d750e2aa79c8ec2321566d543197f811c30ab822b1aa59091290af938f82e5594a9bead151be9067190732c3b0d94f7d89fe7738f627e2c63eec3d2db33e&amp;iv=cb79a08293053f26a070ca4d89b6f82b" />
            <meta name="Link_sendMessage" content="formkey=3e31fa5c52305ee649ac815853c18060d18ff16615990cc34de2c0dcdfb4222f8eccd4dd5bc0735d633390e5520652db9860d483ab09688dd78da581da399b7e1b22d6f4fe0faa8135abe811bc7e50ab369a6ceb48e7933ddef371f07f8644be&amp;iv=cadd909eb08ab376c061fa8c5d2194c1" />

            <meta name="Badges_postBadge" content="formkey=e94d9dfc3b470469a16f891223bf81dd788a9911cc1d3309bac2c4b735138581144e69e3d6b7ee276c7716bbb1d3152d6b499fb71604e9587da69f1b99363540024a1e816c824c4d3de19a1a45efdbac2d19dc6e9eefd6ee93fb14a47355da03ce0f5d555d0453c7b0f625db08e46341&amp;iv=e2539520871c7e048779c460d854958a" />
            <meta name="Profile_getUpdateImageForm" content="formkey=955f22e314cbdf58de553f7f1f5e35ceb68725682f1d8562e002448e9e7591762584c9cbd5b4a4acfe91b00ac5ec7864e80dcb899f9814c3fc1094b1eefd07ad01d9842766e3a1d8502912baacaef692ba6594db222f05b301d4274dd94a85c7ecb100e5c7b25ed83f5f65bc30158ff882a409a2d81a14e13d50fdc4b423ab0c&amp;iv=21c17695f6980457e678a270b741742a" />
            <meta name="Profile_updateImage" content="formkey=412513b80b01c947c5110cdab7870e17333aad59ef19f53776d7f61a0b4fa241e134bb44e953897dcb1c113ae3195f42228a501fdeca58a58f802c4f4caa4c7fce4036aafe4254bc2b319e66874db8ea83958cb0fcd989e7312c7cd3daf0949c204f3455ba4fd769d0d95dd21385dd1e3d872f8c2386f0ff21a7a0def4ea9e8a&amp;iv=d4f7bba9146813f2e0f674db6ef9160d" />
            <meta name="AccuseIgnore_accusePinboardEntry" content="formkey=85b3374a96ef008b105cf52c0ef4f5ddb4b5f4c258ad28c6eb078a87beb55d2e3e1f64b3d3dc6ff6a845616078f5c4abff915c39bc47e2bbb5222dd7a9e8961726374146d161848876bf9049649b9f447d5411efcb3bee1d3d62b73168e3cf2cb0be01f2fac8df310a780cc4765f3f2ea48e5978e5991fe05a967577fd60b291&amp;iv=a7c1ed999f2c220a348905dca28c3931" />
            <meta name="Pinboard_refresh" content="formkey=5179d8ff66e52f422f8fa91ad61f542e708e6945f8fa5b045711bda7a518474fcdd94207db4266b3ffc4768ae3b4033bcf4b89fa5b6d39346af1d3725866e8a54a79ad873e9d4528f223476f0eee77d0f3fa97a77b7231d38932b0b4d327aa8adb6c0be04f02bd2d11dbc45d01f5b260&amp;iv=199f31e6ca392a2124c10e30e016bb05" />
            <meta name="Pinboard_delete" content="formkey=9a8fdcee80dfa11192e828defd804f050c99154b895322fc375864a298f23e1ee5f91ee6789b795d6207bb5f556d410568c9333a85f57fe4973b5b7be4a30761f962968e206d0a62c1391381196dfdb687730500ac22caa2b16aeccba2afe557e9eb8878b8af67389df269d76e8d9803&amp;iv=9dab9f9804dda9693d7d463248bb2c6b" />
            <meta name="Chat_token" content="formkey=cca81c658896bcbad9b62822021b721eafef55d1a4f516cb12c817875a6a96b18e81a3471125e61181a612ba45f395a17e65bab41913240f138278de013868283cb08b3ee155b42e1c95b5309e81fe27e660dadd4b91a4439833d796689d234d288af9878ea7be196fa947703430da19&amp;iv=876c5e1c53bde96bf2b040d08c7ec25b" />
            <meta name="Chat_setStatus" content="formkey=834bef959c28e306e990cdf1d06fcd58f09f8dae5226628a3a65531a3c08bfb31071e0b50cedade61850f923f29c83e09813c4a230961a0126d351102b250024dcb8cadf05d49402a38ff49c8f2220a17474dec3e568b8f03a48fc0f74fbae08902b1b803dbac81956a0993b90add176&amp;iv=d5308a7991ddd9f8d9fb4f70bed0298b" />
            <meta name="Friends_addFriendDialog" content="formkey=13b023cfc761bdc60a8f1124c312d67584508884aff6a7c16673db6cb0421514d6d415bf85e9fae0155ec91ddcd8012bf070082dbff1aa94aed622d8a7a4c387e7fedea3e4fde1cde564809d0239c2c5418ed917ebc2c6a4fda781fda9576605fb2ff6880ad913da6be0dbaf90f3e850&amp;iv=bca21c311aafd1fd5b1313ef2062ae4e" />

            <meta name="Friends_addFriend" content="formkey=aa2ea405afd18224ca2550ee9bd6fc0d75269469d21d5e37441861691edb6cb1c5a4161e45c6ca00289f0c89a5e25ee16507d50e96ce80768f68847bc733985768e46d9b5e78afc55898f931aeca2b24df18c53af9df8fefa4864859e9eb8863&amp;iv=49a37ffacc4f6f53bc9078c2b67c7346" />
            <meta name="Uservoice_feedbackDialog" content="formkey=23dae784a7d029db14aa25f4448f43f6e287d67949ed45909da45f56ec46bc3e7a4a4467b41f9ac8b6b6ddc7112d8efcfe672db5f1de8147cf81a20ee466924186a1c0107dda1be0ae41c268f040886b4563d8ff81699ea37e726f10faa97c0ec27ab03e12917444ce387cfe6d474b52&amp;iv=8e3fd64881332b50197b7d1a1f69062f" />
            <meta name="Polls_answerPoll" content="formkey=8f993c375c4402c966bc8fca93322d32dd67d0cfaebd6d74a3c6f6648e6a41d1ad2fec1d382177d2b0f5fc8d62ad5a1629265e417c368ea54b219b66135dc88ddc73d79ba79c75945e5cf0291b53b2a74e15c8c4f4d4b3c9461fc0ff7becc497121ed870c617e852a481a1d239ebf80b&amp;iv=ca8cf99b43561c4788cbd7350e46bb4a" />
            <meta name="Polls_diagramView" content="formkey=5ecc27bfc42bff4b7551103822fa5fbcb69fe95eb53c221a3835d2663e2fda9f495ea0db9691fb1977770d9fe987168edd2c49ca9dd33a9dad4d2eb45af0035fe4076874c76f1399f2d47231688c4d8a4c90b7ba00f88329964726554baca3621070bb70c57c6d30aed9fcfeebe1c636&amp;iv=8969873fd9476891c53466751beaf600" />
    
    <meta name="activeModules" content="Profile,Search,Login,StaticContent,Cooperations,Chat,Plauderkasten,Gadgets,Info,Ims,Friends,Advertising,Uservoice,Photos,Privacy,Blog,Messages,Gruscheln,Link,AccuseIgnore,NobleProfile,Microblog,Education,Work,Groups,Pinboard,VoApi,Badges" />
    <meta name="pageletName" content="Profile.Profile" />

    <link rel="shortcut icon" href="http://static.pe.meinvz.net/20110328-0/favicon.ico" />

    
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Base.css" />

            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/AccuseIgnore.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Friends.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Education.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Work.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Gadgets.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Gadgets/Gadgets.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Vcard.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Groups.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Photos/PhotoUpload.css" />

            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Photos/Photos.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Link.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Buschfunk.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Mod_Pinboard.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/Profile.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/FestivalRss.css" />
            <link rel="stylesheet" type="text/css" href="http://static.pe.meinvz.net/20110328-0/Css/ManageFriends.css" />
    
    
            <meta property="og:title" content="Patricia Müller" />            <meta property="og:image" content="http%3A%2F%2Fimg-p3.pe.imagevz.net%2Fprofile2%2F21%2F67%2Fb2ac7a2b9c2fbb10ddb81d46c694%2F1-1c6178cadc937622-s.jpg" />    
    <script type="text/javascript" src="http://static.pe.meinvz.net/20110328-0/Js/build/resource-core.js"></script>

    <script type="text/javascript">
//<![CDATA[
var brs = navigator.userAgent.toLowerCase();
function Adition_BrowserId() {if (brs.search(/msie\s7/) != -1) {return 9;} else if (brs.search(/msie\s8/) != -1) {return 10;} else if (brs.search(/chrome\//) != -1) {return 11;} else if (brs.search(/safari/) != -1) {return 8;} else if (brs.search(/opera/) != -1) {return 7;} else if (brs.search(/konqueror/) != -1) {return 8;} else if (brs.search(/msie\s6/) != -1) {return 3;} else if (brs.search(/msie\s5/) != -1) {return 2;} else if (brs.search(/msie\s4/) != -1) {return 1;} else if (brs.search(/netscape6/) != -1) { return 5;} else if (brs.search(/netscape\/(7\.\d*)/) != -1) {return 5;} else if (brs.search(/netscape4/) != -1) {return 4;} else if ((brs.search(/gecko\//) != -1)) {return 6;} else if ( (brs.search(/mozilla\/(4.\d*)/) != -1) && (brs.search(/msie\s(\d+(\.?\d)*)/) == -1) ) {return 4;} else {return -1;}}
function Adition_OSId() {var os; if ( (brs.search(/windows/) !=-1) || ((brs.search(/win9\d{1}/) !=-1)) ) {if (brs.search(/nt\s5\.1/) != -1) {os=3;} else if (brs.search(/nt\s5\.0/) != -1) {os=2;} else if (brs.search(/nt\s5\.2/) != -1) {os=8;} else if (brs.search(/nt\s6\.0/) != -1) {os=9;} else if (brs.search(/nt\s6\.1/) != -1) {os=10;} else if ( (brs.search(/win98/) != -1) || (brs.search(/windows\s98/)!= -1 ) ) {os=1;} else if (brs.search(/windows\sme/) != -1) {os=1;} else if ( (brs.search(/windows\s95/) != -1) || (brs.search(/win95/)!= -1 ) ) {os=1;} else if ( (brs.search(/nt\s4\.0/) != -1) || (brs.search(/nt4\.0/) ) != -1) {os=4;}return os;} else if (brs.search(/linux/) !=-1) {return 6;} else if (brs.search(/mac\sos\sx/) !=-1) {return 5;} else if ( (brs.search(/macintosh/) !=-1) || (brs.search(/mac\x5fpowerpc/) != -1) ) {return 5;} else if ( (brs.search(/unix/) !=-1) || (brs.search(/x11/) != -1 ) ) {return 7;} else {return -1;}}
function Adition_ResId() {if(screen.width==640 && screen.height==480) {return 1;} else if(screen.width==800 && screen.height==600) {return 2;} else if(screen.width==1024 && screen.height==768) {return 3;} else if(screen.width==1152 && screen.height==864) {return 4;} else if(screen.width==1280 && screen.height==1024) {return 5;} else if(screen.width==1600 && screen.height==1200) {return 6;} else if(screen.width==1280 && screen.height==960) {return 7;} else if(screen.width==1400 && screen.height==1050) {return 8;} else if(screen.width==1280 && screen.height==768) {return 9;} else if(screen.width==1280 && screen.height==800) {return 10;} else if(screen.width==1440 && screen.height==900) {return 11;} else if(screen.width==1680 && screen.height==1050) {return 12;} else if(screen.width==1920 && screen.height==1200) {return 13;} return -1;}
function Adition_Flash() {var f="",n=navigator;if (n.plugins && n.plugins.length) {for (var ii=0;ii<n.plugins.length;ii++) {if (n.plugins[ii].name.indexOf('Shockwave Flash')!=-1) {f=n.plugins[ii].description.split('Shockwave Flash ')[1];i=f.indexOf('.');f=f.substr(0,i);break;}}} else if (window.ActiveXObject) {for (var ii=10;ii>=2;ii--) {try {var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if (fl) { f=ii; break; }}catch(e) {}}} return f;}; function Adition_Trel() {return '&prf[iug]=14414616644375930622&prf[fhj]=001&iqh=14414616644375930622&ipt=0';};
var ad_wid = Math.round(Math.random()*2000000000);var ad_count = 0;var ref;try{ref=escape(document.referrer);}catch(e){ref='-'}var os;try{os=Adition_OSId();}catch(e){os=''}var browser;try{browser=Adition_BrowserId();}catch(e){browser=''}var screen_res;try{screen_res=Adition_ResId();}catch(e){screen_res=''}var fvers;try{fvers=Adition_Flash();}catch(e){fvers=''} var adition_tag_set=false;
//]]>
</script>    <script type="text/javascript">
     //<![CDATA[
     var requestToken = "WphF-rm2VK6viLOcH_d0x4O6PRV7jzVGc20QXg76fTQ";
     //]]>
    </script>
</head>

<!-- Du liest Code? Lies auch: http://kurz.nu/r/20 -->

<body class="avz  gecko gecko20">
<div id="Grid-Wrapper">
    <div id="Grid-Advertising-Top">
        <div id="ad728x90">
<script type="text/javascript">/* <![CDATA[ */document.write('<scr'+'ipt type="text/javascript" src="http://studivz.adfarm1.adition.com/banner?wpt=J&sid=50474&wi='+ad_wid+'&ac='+(++ad_count)+'&ref='+ref+'&os='+os+'&browser='+browser+'&screen_res='+screen_res+'&fvers='+fvers+'&prf[iug]=14414616644375930622&prf[fhj]=001&iqh=14414616644375930622&ipt=0&mdev=100"></scr'+'ipt>');/* ]]> */</script></div><script type="text/javascript" src="http://static.pe.meinvz.net/20110328-0/Js/meetrics/adam100111.js"></script>    </div>

    <div id="Grid-Advertising-Right">
            </div>
    <div id="Grid-Page">
         <div id="Grid-Page-Left">
            <div id="Logo">
                <a href="/Home" rel="nofollow" title="zur Startseite">
                    <img src="http://static.pe.meinvz.net/20110328-0/Img/logo.png" alt="Logo meinVz, Link zur Startseite" />
                </a>
            </div>

                            <div id="Quicksearch">
    <form id="QuickFormSearch" method="post" action="/Search/QuickSearch" class="obj-quicksearch">
    <fieldset>
        <div id="resultboxAutosuggest"></div>
        <div class="labelinside">
            <label for="searchfieldAutosuggest">Suche</label>
            <input type="text" name="name" id="searchfieldAutosuggest"/>
        </div>

        <input type="hidden" name="quickSearch" value="1" />
        <input type="hidden" id="disableAutosuggest" value="0" />
        <input type="hidden" name="formkey" value="2a9375bd1571ee8f93d90ff84c62027e332d580c5d77c8a70982da4cfec337eae7701e54f35df0ce2c8d0886ff294d9b60a8dcea8f7b1b9736fb3da761727f81e93947158b971a938187727360988b22fa9ba852490cb946d8b82a8e104ff2424f2552ce6c2c46c5e893eead8317f6f3" />
<input type="hidden" name="iv" value="4cede1bdd9a7e62ed209766a2ab75d10" />

    </fieldset>
    </form>
</div>            
                        <ul id="Grid-Navigation-Main" class="obj-linklist">
                                    <li><a href="/Home/tid/101" rel="nofollow" title="Start">Start</a></li>                                    <li class="clearFix"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo/tid/102" class="left" rel="nofollow" title="Meine Seite">Meine Seite</a>                                    <a href="/Profile/EditGeneral/tid/109" class="right" rel="nofollow" title="bearbeiten">bearbeiten</a></li>                                    <li><a href="/Friends/All/8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo/tid/103" rel="nofollow" title="Meine Freunde">Meine Freunde</a></li>                                    <li><a href="/Photos/8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo/tid/104" rel="nofollow" title="Meine Fotos">Meine Fotos</a></li>                                    <li><a href="/Groups/tid/105" rel="nofollow" title="Meine Gruppen">Meine Gruppen</a></li>                                    <li><a href="/Gadgets/Overview" rel="nofollow" title="Meine Apps und Spiele">Meine Apps und Spiele</a></li>                                    <li><a href="/Messages/tid/106" class="Navi-Messages-Link" rel="nofollow" title="Nachrichtendienst">Nachrichtendienst <span id="messages-navigationlink-unread" data-unread="0">(0)</span></a></li>                                    <li><a href="/Account/Account/tid/107" rel="nofollow" title="Mein Account">Mein Account</a></li>                                    <li><a href="/Privacy/Settings/tid/108" rel="nofollow" title="Privatsphäre">Privatsphäre</a></li>                            </ul>

            
                            <div id="LeftsideBox" class="box rounded simple-ext">
    <div class="innerbox">
        <p>
    <a href="http://www.meinvz.net/C/2637">Ohne Seepferdchen</a> kommste heut nicht mehr weit.</p>    </div>
</div>
                                                
            
        </div>
        <div id="Grid-Page-Center">

            <div id="Grid-Page-Center-Top">
                <h1>Meinverzeichnis / meinVZ</h1>
                    <ul id="Grid-Page-Center-Top-Navigation">
                                                <li><a href="/Language/en" rel="nofollow" title="English">English</a></li>
                                            <li><a href="/Search/SearchGlobal/rmC/1/tid/121" rel="nofollow" title="Suche">Suche</a></li>
                                            <li><a href="/Invitation/Invitation//tid/122" rel="nofollow" title="Einladen">Einladen</a></li>
                                            <li><a href="/l/help" rel="nofollow" title="Hilfe">Hilfe</a></li>

                                            <li><a href="/l/mobile_info" title="Handy">Handy</a></li>
                                            <li><a href="http://blog.meinvz.net" rel="nofollow" target="_blank" title="Blog">Blog</a></li>
                                            <li><a href="/Logout/2b069b333aca8e4d37fc82f3eed18f15/tid/127" class="logout" rel="nofollow" title="Raus hier">Raus hier</a></li>
                                        </ul>
            </div>

            <div id="Grid-Page-Center-Header">
                <div id="Grid-Page-Center-Header-Menu">

                                    <input type="hidden" id="Chat-Header-PrivacyUrl" value="/Privacy" />
<input type="hidden" id="Chat-Header-PrivacyUrlSealed" value="/Privacy/Seal" />
<input type="hidden" id="Chat-WindowUrl" value="/Plauderkasten" />

<div id="Chat_Header" class="">
    <div id="mini-chat">
        <span id="chat-active" style="display:block">
            <span id="set-my-status" class="">
                <span id="set-my-status-icon" class="my-status-offline" style=""></span>
                <span id="my-status-selector" style="display:none">
                    <p id="my-status-selector-online"><span class="set-my-status-online"></span>eingeschaltet</p>

                    <p id="my-status-selector-away"><span class="set-my-status-away"></span>abwesend</p>
                    <p id="my-status-selector-offline" class="active"><span class="set-my-status-offline"></span>ausgeschaltet</p>
                </span>
            </span>
            <a id="header-text" href="JavaScript:void(0)">
                <span id="online-status-text">
                Plauderkasten                                </span>

                (<span class="online-users-counter">0</span>)
            </a>
        </span>
        <span class="target-amount-unread twodigit" style="display:none">
            <span class="target-num">
            </span>
        </span>
           <span class="target-amount-calls twodigit" style="display:none">

            <span class="target-num">
            </span>
        </span>
        <div id="message-sound"></div>
    </div>
     <div id="Sound-Player-New-Message" style="height: 0px; overflow: hidden;"></div>
     <div id="Sound-Player-Incoming-AV" style="height: 0px; overflow: hidden;"></div>
</div>


<!-- Start Lovely Code for Mini Chat Notifications -->
<div id="notification-new-message" style="display: none;">
  <div class="notification-text">
    <span class="target-username">Vorname Nachname</span> hat Dir eine Nachricht geschrieben.  </div>
  <input class="button" type="button" value=">Lesen" onclick="javascript:openchattab()" />
  <input class="button" type="button" value=">Ignorieren" onclick="javascript:closenotification()" />
  <div class="clear"></div>
</div>
<!-- End Lovely Code for Mini Chat Notifications -->

<div id="gadget-menu-header">
    <ul>
                <li>
            <script type="text/javascript">
                var popupdata = popupdata || {};
                popupdata.href = "/Gadgets/Popup/489";
            </script>
            <a href="javascript:;" class="gadget-featured-link-popup">
                Röhre                <img src="http://static.pe.meinvz.net/20110328-0/Img/tv.png" alt="Röhre"/>
            </a>
        </li>

            </ul>
</div>                                </div>
                <h1 class="ellipsis" title="Patricia Müllers Seite (Eilenburg)">Patricia Müllers Seite (Eilenburg)</h1>            </div>

            <div id="Grid-Page-Center-Content">
                                                
                                <div id="shoutboxJs" class="obj-shoutbox hidden">
                    <div>
                        <p id="shoutboxJsSuccess" class="success hidden"></p>

                        <p id="shoutboxJsError" class="error hidden"></p>
                    </div>
                    <div class="close">
                        <a rel="nofollow" href="javascript:;"></a>
                    </div>
                </div>
                
                

<div id="Mod-Profile-View" >
 
    <div id="profileLeft" class="obj-box onethird">
        <img src="http://img-a3.pe.imagevz.net/profile2/21/67/b2ac7a2b9c2fbb10ddb81d46c694/1-1c6178cadc937622.jpg" class="obj-profileImage" id="profileImage" alt="Patricia Müller" />

        <ul class="obj-linklist">
            <li><a href="/Friends/All/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" >Alle Freunde von Patricia</a></li><li><a href="/Messages/WriteMessage/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" >Patricia eine Nachricht schicken</a></li><li><a href="/Gruscheln/DialogGruscheln/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" >Patricia gruscheln</a></li><li class="user-showlink"><a href="/Link/User/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" >Patricia Freunden zeigen</a></li><li>
    <a id="accuseIgnoreLink" href="/AccuseIgnore/AccuseIgnore/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs">
                    Patricia melden / ignorieren                <input type="hidden" id="accusedUserId" value="8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" />
    </a>
</li>        </ul>

            <div id="MicroBlog" class="obj-innerbox hidden">
    
        <h2>Letzter Funkspruch</h2>                      

        <div id="microblogContent" >                
                    
                    <span class="microblog-guid hidden">8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs</span>
                    <span class="microblog-ownguid hidden">8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo</span>
                    <p class="microblogHistory"></p>
                    <div class="microblogMeta no-float">                    
                    </div>                                
        </div>

                <input type="hidden" id="MicroBlog-Emoticons" value="{&#34;:*&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_21.gif&#34;,&#34;:-*&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_21.gif&#34;,&#34;x-(&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_13.gif&#34;,&#34;:-&#38;#38;&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_12.gif&#34;,&#34;:-s&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_10.gif&#34;,&#34;:-o&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_9.gif&#34;,&#34;:-x&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_8.gif&#34;,&#34;:oops:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_7.gif&#34;,&#34;:-p&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_5.gif&#34;,&#34;:-((&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_6.gif&#34;,&#34;:-(&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_4.gif&#34;,&#34;;-)&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_3.gif&#34;,&#34;:-D&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_2.gif&#34;,&#34;:-)&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_1.gif&#34;,&#34;:)p&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_14.gif&#34;,&#34;:)&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_1.gif&#34;,&#34;:D&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_2.gif&#34;,&#34;;)&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_3.gif&#34;,&#34;:((&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_6.gif&#34;,&#34;:(&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_4.gif&#34;,&#34;:p&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_5.gif&#34;,&#34;:\&#34;&#62;&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_7.gif&#34;,&#34;:x&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_8.gif&#34;,&#34;:o&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_9.gif&#34;,&#34;:s&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_10.gif&#34;,&#34;|-)&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_11.gif&#34;,&#34;:&#38;#38;&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_12.gif&#34;,&#34;x(&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_13.gif&#34;,&#34;:h\u00e4:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_15.gif&#34;,&#34;:vz:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/mVZ_Emoticon_15.gif&#34;,&#34;8-x&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_17.gif&#34;,&#34;:hmm:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_18.gif&#34;,&#34;:emo:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_19.gif&#34;,&#34;:yo:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_20.gif&#34;,&#34;:kuss:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_21.gif&#34;,&#34;:alien:&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/pvz_smilie_22.gif&#34;,&#34;$%&#38;#38;1521&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_12.gif&#34;,&#34;$%&#38;#38;1747&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_13.gif&#34;,&#34;$%&#38;#38;1853&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_14.gif&#34;,&#34;$%&#38;#38;1897&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_15.gif&#34;,&#34;$%&#38;#38;1899&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/mVZ_Emoticon_15.gif&#34;,&#34;$%&#38;#38;1903&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_16.gif&#34;,&#34;$%&#38;#38;2189&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_17.gif&#34;,&#34;$%&#38;#38;2276&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_18.gif&#34;,&#34;$%&#38;#38;2376&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_19.gif&#34;,&#34;$%&#38;#38;2454&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_20.gif&#34;,&#34;$%&#38;#38;2365&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_21.gif&#34;,&#34;$%&#38;#38;2471&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_22.gif&#34;,&#34;$%&#38;#38;2498&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_23.gif&#34;,&#34;$%&#38;#38;2571&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_24.gif&#34;,&#34;$%&#38;#38;2588&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_25.gif&#34;,&#34;$%&#38;#38;3333&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_26.gif&#34;,&#34;$%&#38;#38;4444&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_27.gif&#34;,&#34;$%&#38;#38;4578&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_28.gif&#34;,&#34;$%&#38;#38;5555&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_29.gif&#34;,&#34;$%&#38;#38;5783&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_30.gif&#34;,&#34;$%&#38;#38;5912&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_31.gif&#34;,&#34;$%&#38;#38;6173&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_32.gif&#34;,&#34;$%&#38;#38;6262&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_33.gif&#34;,&#34;$%&#38;#38;6398&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_34.gif&#34;,&#34;$%&#38;#38;7834&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_35.gif&#34;,&#34;$%&#38;#38;7867&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_36.gif&#34;,&#34;$%&#38;#38;7912&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_37.gif&#34;,&#34;$%&#38;#38;8121&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_38.gif&#34;,&#34;*Prost*&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=67863&#38;ts=1301488298&#34;,&#34;*prost*&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=67863&#38;ts=1301488298&#34;,&#34;$%&#38;#38;11&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_11.gif&#34;,&#34;$%&#38;#38;10&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_10.gif&#34;,&#34;$%&#38;#38;1&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_1.gif&#34;,&#34;$%&#38;#38;2&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_2.gif&#34;,&#34;$%&#38;#38;3&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_3.gif&#34;,&#34;$%&#38;#38;4&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_4.gif&#34;,&#34;$%&#38;#38;5&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_5.gif&#34;,&#34;$%&#38;#38;6&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_6.gif&#34;,&#34;$%&#38;#38;7&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_7.gif&#34;,&#34;$%&#38;#38;8&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_8.gif&#34;,&#34;$%&#38;#38;9&#34;:&#34;http:\/\/static.pe.meinvz.net\/20110328-0\/Img\/Smiley\/sVZ_Emoticon_9.gif&#34;}"/>
         <input type="hidden" id="MicroBlog-Emoticon-Links" value="{&#34;*Prost*&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/redi?sid=68701&#38;kid=67863&#38;ts=1301488298&#38;clickurl=http:\/\/www.studivz.net\/l\/krombacher\/2&#34;,&#34;*prost*&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/redi?sid=68701&#38;kid=67863&#38;ts=1301488298&#38;clickurl=http:\/\/www.studivz.net\/l\/krombacher\/2&#34;}"/>
        </div>

        
<div class="obj-innerbox">
    <h2>Gemeinsame Freunde</h2>

    <div class="obj-subbar">
            Du hast <a href="/Friends/Common/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs">52 gemeinsame Freunde</a> mit Patricia.        </div>

    <ul class="obj-thumbnaillist">
                <li>
                    <div class="imageContainer"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsaLH2VjNPN1EFDNgU1Z-hrk"><img src="http://img-p2.pe.imagevz.net/profile1/04/0b/71c16d6ed519ea2be8cb7378867c/1-8a2c92ddcd73104b-s.jpg" alt="Tobi Wan Kenobi"/></a></div>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsaLH2VjNPN1EFDNgU1Z-hrk">Tobi Wan Kenobi</a></div>
                </li>
                <li>
                    <div class="imageContainer"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsXHF9X1Ci41mbDCjBjO78x4"><img src="http://img-p2.pe.imagevz.net/profile1/78/48/82bfba8ffbe4abfd8ac7c6771ca9/1-7e7067dc0215c7eb-s.jpg" alt="David Eckler"/></a></div>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsXHF9X1Ci41mbDCjBjO78x4">David Eckler</a></div>

                </li>
                <li>
                    <div class="imageContainer"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsY5evW-9FWNNA281TgoyrdE"><img src="http://img-p2.pe.imagevz.net/profile1/21/86/0f3dbdd69a40fdf19a47d56d41e1/1-63604fe3a8f9377b-s.jpg" alt="Anja Lieder"/></a></div>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsY5evW-9FWNNA281TgoyrdE">Anja Lieder</a></div>
                </li>
        </ul>
</div><div class="obj-innerbox">
    <h2>Freunde (gleiche Region)</h2>

    <div class="obj-subbar">
                        Patricia hat <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/48884">40 Freunde</a> in der Region Eilenburg.                </div>

    <ul class="obj-thumbnaillist">
                <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qsdtYvULBLGCcrCaKKJzmZoc"><img src="http://img-p5.pe.imagevz.net/profile2/76/97/7241c0a40ea47c89495a9053315d/1-7d7112a81068f8e4-s.jpg" alt="Manuela Haberkorn"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsdtYvULBLGCcrCaKKJzmZoc">Manuela Haberkorn</a></div>

                </li>
                    <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qsTDdDixKtoglOsq-bOMiVAU"><img src="http://img-p3.pe.imagevz.net/profile1/69/51/326f2ecb7d60ac41f502bbae3bdb/1-3d0dde540296bf8a-s.jpg" alt="Daniel Schäfer"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsTDdDixKtoglOsq-bOMiVAU">Daniel Schäfer</a></div>
                </li>
                    <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qsThl4Es_Mtvfatp7TL47UDA"><img src="http://img-p2.pe.imagevz.net/profile1/48/27/0fdf70ea63f0048148658c92cdfe/1-f76ecf4d974167ff-s.jpg" alt="♥ڿڰۣ«ಌ nIcOlE aKa De StRuPpI ♥ڿڰۣ«ಌ"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsThl4Es_Mtvfatp7TL47UDA">♥ڿڰۣ«ಌ nIcOlE aKa De StRuPpI ♥ڿڰۣ«ಌ</a></div>

                </li>
                    <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qscEEPpIqiZqnVRVg34f3xs0"><img src="http://img-p1.pe.imagevz.net/profile1/b8/02/486605428e578b22b77369ed56bb/1-0a8d236ab8ed219f-s.jpg" alt="Stefanie Heinke"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qscEEPpIqiZqnVRVg34f3xs0">Stefanie Heinke</a></div>
                </li>
                    <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qsa_GIQQMhnGNar6czlDl6WA"><img src="http://img-p4.pe.imagevz.net/profile1/92/16/3410c2c3d51e1a692515507efd43/1-248add2b3c407097-s.jpg" alt="Katrin Lenz"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsa_GIQQMhnGNar6czlDl6WA">Katrin Lenz</a></div>

                </li>
                    <li>
                    <a href="/Profile/8tdVJyeco54Sp6cuBo1qsf2x5UBL1y2zXeLdhR8tymY"><img src="http://img-p1.pe.imagevz.net/profile2/18/92/3a4c44d4d5d94618547eda4bfc00/1-a61db3942e104dcf-s.jpg" alt="Antje Sander"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsf2x5UBL1y2zXeLdhR8tymY">Antje Sander</a></div>
                </li>
            </ul>
</div><div class="obj-innerbox">
<h2>Freunde (andere Region)</h2>

<div class="obj-subbar">
            Patricia hat <a href="/Friends/Other/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs">38 Freunde</a> in ...    </div>


            <ul class="uniList float-left">
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3716">Groß-Gerau</a> (1)
                </li>

                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3771">Esslingen</a> (3)
                </li>
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3825">Miesbach</a> (1)
                </li>
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3959">Leipzig</a> (12)
                </li>

                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3960">Delitzsch</a> (12)
                </li>
                    </ul>
            <ul class="uniList float-left">
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3962">Leipziger Land</a> (5)
                </li>

                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/3964">Torgau-Oschatz</a> (2)
                </li>
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/4018">Basel-Landschaft</a> (1)
                </li>
                            <li>
                <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/48985">Torgau</a> (1)
                </li>

                    </ul>
    


</div><div class="obj-innerbox">
<h2>Freunde auf studiVZ</h2>

<div class="obj-subbar">

            Patricia hat <a href="/Friends/Platform/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/1">23 Freunde</a> an ...    </div>


    <ul class="uniList floatL">
                    <li>
            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/159/1">Uni Leipzig</a> (10)
            </li>
                    <li>
            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/160/1">HTWK Leipzig</a> (6)
            </li>
                    <li>

            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/295/1">HHL Leipzig</a> (1)
            </li>
                    <li>
            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/368/1">Universität Zürich</a> (1)
            </li>
            </ul>
    <ul class="uniList floatL">
                    <li>

            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/627/1">BA Leipzig</a> (2)
            </li>
                    <li>
            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/1606/1">DHfPG Leipzig</a> (2)
            </li>
                    <li>
            <a href="/Friends/Network/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/2642/1">Diploma Leipzig</a> (1)
            </li>

            </ul>

</div>                
            
    </div>
    <div id="profileRight" class="obj-box twothird">
                <div id="Friends-Connection" class="obj-innerbox friendsColumn">
    <h2>Verbindung</h2>
        <ul class="obj-thumbnaillist">
                                        <li>
                            <a href="/Profile/8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo"><img src="http://img-p2.pe.imagevz.net/profile1/91/2a/3a39897272b3606c147ebc52df09/1-38f1d96d822ff36b-s.jpg" alt="Schramme .."/></a>

            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsajYPqMm4gHSnUJiB7MaBIo">Schramme ..</a></div>
                </li>
                                <li class="last">
                            <a href="/Profile/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs"><img src="http://img-p3.pe.imagevz.net/profile2/21/67/b2ac7a2b9c2fbb10ddb81d46c694/1-1c6178cadc937622-s.jpg" alt="Patricia Müller"/></a>
            <div class="caption"><a href="/Profile/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs">Patricia Müller</a></div>
                </li>
            </ul>
    </div>

<div id="Profile_InformationSnipplet" class="obj-innerbox">
    <h2>Information</h2>
    
<div id="P" class="accountStatusOnline clearFix hidden">
                <br /><span id="status_8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" class="mobilestatus">Plauderkasten ist an.</span>
</div>

<h3>Account</h3>

<dl id="Mod-Profile-Information-Account" class="obj-keyValueList" >
        <dt>Name:</dt>

    <dd>
      Patricia Müller
        
        
    </dd>
    
     
        <dt>Verzeichnis:</dt>
    <dd>
                    <img src="http://static.pe.meinvz.net/20110328-0/Img/Logos/mvzLogo15px.gif" alt="meinVZ"/>
            </dd>
    
        <dt>Mitglied seit:</dt>

    <dd>25.01.2011</dd>
    
        <dt>Letztes Update:</dt>
    <dd>31.01.2011</dd>
    </dl><h3>Allgemeines</h3>

 
<dl id="Mod-Profile-Information-General" class="obj-keyValueList">
        <dt>Region:</dt>

    <dd>
        <a href="/Search/SearchSuper/platform/3/uni/48884/doSearch/1/rmC/1">Eilenburg</a>            </dd>
    
    
        <dt>Status:</dt>
    <dd>im Berufsleben</dd>
    
    
                
        <dt>Geschlecht:</dt>
    <dd><a href="/Search/SearchSuper/gender/1/platform/3/doSearch/1/rmC/1">weiblich</a></dd>

    
                <dt>Geburtstag:</dt>
    <dd>
                    27.07.                <a href="/Birthday" class="icon icon-calendar">Zum Kalender</a>
    </dd>
    
    
    </dl>


<h3>Persönliches</h3>

</div><div id="gadgets-list">
    </div>
<div id="Mod-Groups-Snipplet" class="obj-innerbox">
    <h2>Gruppen        </h2>
    <ul>
                  <li>
           <a href="/Groups/Overview/104946e7f0460efd">ERZ10 Rote Jahne</a>
                      
       </li>

                  <li>
           <a href="/Groups/Overview/85d1878aa2fcd4ec">ex-schiller-schule-schüler-eilenburg</a>
                      
       </li>
                  <li>
           <a href="/Groups/Overview/a99fee2ca081b68e">Neulinge im VZ</a>
                      
       </li>
        </ul>
    </div><div id="Mod-Pinboard-Snipplet" class="obj-innerbox">

    <h2>Pinnwand</h2>
    <div class="obj-subbar">
                <div class="obj-subbar-info">
            Zeige 9 von            <a href="/Pinboard/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/p/1">
                9                                Einträgen                            </a>
        </div>
        
        <div class="obj-subbar-actions">

                            <a href="javascript:;" name="showForm" class="showForm" >Etwas schreiben</a>
                                        |                                    <a href="/Pinboard/8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs/p/1">
            Alle ansehen            </a>
                    </div>
    </div>

    <div class="write-panel pinboard-write"  style="display:none;">
        <form action="" method="post">

        <script type="text/javascript">
                embedHidden = function() { return false;};
                    </script>                        <fieldset>
                <div class="form-row">
                    <div class="hint hidden">Bitte schreib etwas.</div><label for="Pinboard_entry" class="floatL">Eintrag: </label><textarea id="Pinboard_entry" rows="6" cols="45" title="Bitte schreib etwas." name="entry"></textarea>                </div>
                <div id="Pinboard-Embed-Container" class="hint form-row"></div>

                            <div class="hint">

                    noch&nbsp;<span id="pinboardCharsCount"></span>&nbsp;Zeichen                </div>
            
                <input type="hidden" name="referrer" value="overview" />
                <input type="hidden" name="userId" value="8tdVJyeco54Sp6cuBo1qsV93wfdYlNGYMJmg8-9Dyjs" />

                <div class="form-buttons">
                    <input class="button" type="submit" value="Abschicken" />
                    <input class="button" type="reset" value="Doch nicht" />
                </div>

                <input type="hidden" name="formkey" value="8bafddf482eedc492d479929c197f75234a3117d034b9ec2609b25a30208f616ea9e79ea94e46d52be0e91e405a097fe00e0ff2fb6fe220006ae151e00f7289d26946ac1262b5dab7d97825f45448b595c20f01501cd7fc82a89be5c1aaafd3d3548ec0ad49d8997a865ceee8a57b7de" />
<input type="hidden" name="iv" value="fdd1bc749d8638d8dca4a6cb7c614974" />

            </fieldset>
            
            <input type="hidden" id="emoticonArray" value="{&#34;#alles-gute1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_AllesGute.jpg&#34;,&#34;#danke1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100123_Pinnwandvisual_Danke.jpg&#34;,&#34;#du-ich#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-du-ich_2009.gif&#34;,&#34;#fit-wie-ein-turnschuh#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_GuteBesserung_2010_3_3.gif&#34;,&#34;#gib-mir-5#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_GibMir5.jpg&#34;,&#34;#glueckwunsch1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_Glueckwunsch.jpg&#34;,&#34;#gruesse#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101105_Single_Pinnwandvisual05.jpg&#34;,&#34;#gute-besserung1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_GuteBesserung_2010_2_2.jpg&#34;,&#34;#hallo1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101105_Single_Pinnwandvisual04aVZsVZ.jpg&#34;,&#34;#herz1#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/herz.png&#34;,&#34;#heute-abend#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101105_Single_Pinnwandvisuals10.png&#34;,&#34;#hut-ab1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_HutAb.jpg&#34;,&#34;#ich-liebe-dich#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/liebe.gif&#34;,&#34;#knutscha#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/knutscha.gif&#34;,&#34;#liebe-regnen#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/regnen.png&#34;,&#34;#liebe-regnen1#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/regnen.png&#34;,&#34;#mag-dich1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101108_PV_Single08.png&#34;,&#34;#nie-wieder#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_NieWieder.jpg&#34;,&#34;#party#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101108_PV_Single07.jpg&#34;,&#34;#schnell-auf-die-beine#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_GuteBesserung_2010_4.gif&#34;,&#34;#sei-nicht-boese#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_SeiNichtBoese.jpg&#34;,&#34;#sei-stolz#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_SeiStolz.jpg&#34;,&#34;#traum#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101108_PV_Single02_2.png&#34;,&#34;#verzeihst-du-mir#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100123_Pinnwandvisual_Verzeihen.jpg&#34;,&#34;#viel-glueck1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100125_Pinnwandvisual_VielGlueck.jpg&#34;,&#34;#wirklich-krank#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/100208_Pinnwandvisual_GuteBesserung_2010_1_2.jpg&#34;,&#34;#wochenende#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/allgemein\/101008_PV_Single04.jpg&#34;,&#34;#aktiv#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112203&#38;bid=324348&#38;ts=1301517583&#34;,&#34;#aok-aktiv-strand#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112203&#38;bid=324348&#38;ts=1301517583&#34;,&#34;#aok-beauty-vote#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112252&#38;bid=324725&#38;ts=1301517583&#34;,&#34;#aok-chillout-strand#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112217&#38;bid=324445&#38;ts=1301517583&#34;,&#34;#aok-fun-strand#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112218&#38;bid=324448&#38;ts=1301517583&#34;,&#34;#aok-wellness-strand#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112240&#38;bid=324699&#38;ts=1301517583&#34;,&#34;#chillout#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64545&#38;kid=112217&#38;bid=324445&#38;ts=1301517583&#34;,&#34;#woisttil#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68340&#38;kid=118669&#38;bid=349721&#38;ts=[timestamp]&#38;ts=1301517583&#34;,&#34;#collbleiben#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89541&#38;ts=1301517583&#34;,&#34;#colldrauf#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89553&#38;ts=1301517583&#34;,&#34;#coolbleiben#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89541&#38;ts=1301517583&#34;,&#34;#coolblieben#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89541&#38;ts=1301517583&#34;,&#34;#cooldaruf#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89553&#38;ts=1301517583&#34;,&#34;#cooldrauf#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=64544&#38;kid=89553&#38;ts=1301517583&#34;,&#34;#herz-tanzt#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/flirten\/101105_Single_Pinnwandvisual03.jpg&#34;,&#34;#herzen#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/flirten\/101105_Single_Pinnwandvisual02.jpg&#34;,&#34;#kaffee#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/flirten\/101105_Single_Pinnwandvisual01.jpg&#34;,&#34;#mein-typ#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/flirten\/101105_Single_Pinnwandvisual7.jpg&#34;,&#34;#fruehlingsgruesse#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Herzblume.gif&#34;,&#34;#hurra#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Schmetterlinge.gif&#34;,&#34;#pusteblume#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Herzwolke.gif&#34;,&#34;#pusteblume1#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Pusteblume.gif&#34;,&#34;#sonne#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Herzwolke.gif&#34;,&#34;#zauberhaft#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/100317_Pinnwandvisual_Vogel.gif&#34;,&#34;#baby1#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/geburt\/100611_Geburt_Pinnwandvisuals01.jpg&#34;,&#34;#baby2#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/geburt\/100611_Geburt_Pinnwandvisuals03.jpg&#34;,&#34;#fratz#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/geburt\/100611_Geburt_Pinnwandvisuals05.jpg&#34;,&#34;#lieferzeit#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/geburt\/100611_Geburt_Pinnwandvisuals02.jpg&#34;,&#34;#sonnenschein#&#34;:&#34;http:\/\/static.pe.studivz.net\/media\/de\/pinnwand\/geburt\/100611_Geburt_Pinnwandvisuals04.jpg&#34;,&#34;#geb-dick#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_6.gif&#34;,&#34;#geb-geschenke#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_10.jpg&#34;,&#34;#geb-hase#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_3.gif&#34;,&#34;#geb-hund#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_2.jpg&#34;,&#34;#geb-kuchen#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_13.jpg&#34;,&#34;#geb-lumpi#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_5_neu.jpg&#34;,&#34;#geb-party#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_9.jpg&#34;,&#34;#geb-rente#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_4.gif&#34;,&#34;#geb-torte#&#34;:&#34;http:\/\/static.pe.meinvz.net\/media\/de\/pinnwand\/visual-geburtstag_2009_11.jpg&#34;,&#34;#got2b#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=67874&#38;ts=1301517583&#34;,&#34;#got2b-vote#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=70714&#38;ts=1301517583&#34;,&#34;#got2be#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=67874&#38;ts=1301517583&#34;,&#34;#got2be-vote#&#34;:&#34;http:\/\/studivz.adfarm1.adition.com\/banner?sid=68701&#38;kid=70714&#38;ts=1301517583&#34;,&#34;#got2bevo

Untitled PHP (18-Mar @ 11:51)

Syntax Highlighted Code

  1. ÿØÿà JFIF      ÿþ <CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100
  2. ÿÛ C ÿÛ CÿÀ   <" ÿÄ               
  3. ÿÄ µ   } !1AQa"q2‘¡#B±ÁRÑð$3br‚    
  4. %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ            
  5. [15 more lines...]

Plain Code

ÿØÿà JFIF      ÿþ <CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100
ÿÛ C ÿÛ CÿÀ   <" ÿÄ               
ÿÄ µ   } !1AQa"q2‘¡#B±ÁRÑð$3br‚    
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ            
ÿÄ µ  w !1AQaq"2B‘¡±Á    #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ   ? þeŸ‚ÿ o?e€&óö\ø?âO?€îÄ7?ð¨þùVØ—XöÏN$z yªVÿ ~èzå×ˆÿ fÿ €3M$?èözÇÂ?ÿ Ä¿Ëïkÿ êüÇ5ø5ñÂ_·Çì§|9ý²?à˜<wñ·Sÿ ‚œ~ÉÞý—~9øwÀ¶¾º?¿kï„-©xOöEý²¼Y¬x÷Oø“o‚ü7ð·Å)ð&·àù|1ð¯öqя€-|Oñ»Ç2x‹ÇzÂ}{ì3?ìƒð¯öøâïxŸã7ìðörÖü‡¼'ð÷Æßôm7öÙñF¿â_üBý¥>+|Ó§ø…â«ß|\Ó|Iñ×Àaÿ álø?àŸŒ¼W}áÝKøm§jú&¿ªùYÎe<«    M</Ö\ñx<4¹êº|418ˆQ©ŒÆb#G:L4$êUª°õTZµöT]LEÐ<5à¬/ñ#$ÅçŸØÃðÿ gt–O7Îs¬VI”â³'ðÖO_2Épù·g8Š4ð¸¾®o€©ˆ‹¯õíÎ8Ÿ1úCö’øïûþÏž&øgáýwöEøEñ;â¯Æ¿Ù|?ø)ðáÀï…>"øÁñ_\Y`»ñ]ç‡4ø‹Â>ѼðãÃROã?Š?ü{âï|8øyákAyâi÷º§‡ôýcè/…÷?²wísð«ÇÚ÷ÃÙÇàߌ~üXñgÀÿ Œ?¾5þÏ¼3ñáÇÄ
ézˆÓNÔdðÖµâ߇Þ-Ð<[àxâo€üyðÃǾ<ð‹üã¿êúG‰ç»›QÓtÏåÇþWŽï>5|    ý©4KÚ*Ûá?ì»ÿ $ý¿|û@xà^¥®xïöÄð€?iß…_~ØxBO\ø÷Çþ/ÓtK½7Pð·Çï|ñŸˆÿ hÏxWÄ—Äÿ €Ú½ÿ Œ´8þ$x?õóö`ø}ûhþÔ¿¿j‚þ8øÍñÃágìqª~Ó7ÿ ²ü6G…¾,xßöÁø‘û=[§‰æøûðWãm ü0ý¡tŸÙ“Æÿ n, ýµ‰>>Ñ?kK¯€ÖZ÷ƒ¾&êŸð‚ø‹ÀÊœ9vyŠÌøržw„ʧ[_^¥¦ºp•JôëU¡
/Œ§„…(JtÔªU«B¥MÊÔ*TŠ¥?§ã/r.ñ£á~Ǹ|»‡2Ìß*Áæ¾ bxЧ‚ʱùn5ÄæqáÎÆñ#ˆÃáñ’£„ÀåÙ¦+
ÅBŠy¦^¦;
ôìíãÏØƒöñÅÿ †þxÅCྥá­+^ñ—‡þ
ü6>    ñ%ω£ñ‘/ƒõˆ5+‹¯éº}ß…õ{­iôÛ
#R’+}GÃÞ Ð¯m5i¼“öDýº?à–ß´—ÄO€Ÿ    <5û,øÇAðßímÿ 
Ÿ²gÆ|øgðÓö‰?²î·>—ñQ|%¦økâ7‹þ-øìúm†­âüvøYðŒjú‘yl'¸Ò¼7©ußþ ~Ö>ý¥¿à °ZëºßÀÿ ø“ß±÷‡¼+ñ§àìûáχZDü?ø{mi¡ÃðLøóiûD|´ð׃ü+§j¾ xfÿ „3kö—º§ðÓSÒtë)8/ø ÇÂŽ¿³oü»à߇þ)üGý¡¾øóY±øÇ¦Øüøðû᷁µÙ²îÚã´¶úÏ€4oàž…ñ"MGÇö^!Ñ~#ßGñÿ ZøÁ¤KxÚ5ǃt½ÁÓx{QŽÌ3lÃ%xœëìó*yŸa*Ò¥FhÔ§—ç™–
èRx¬Da    ápô#    TÅTFe^­)½N8GÃîñ6žIá¦mõ®
Æð?„<AÇc³,Vu_Šã
ø/‰óõšfò,ž®#C=Î3:¸ŠL‹S    ,¾YV…¯•a>«Óÿ hOø&ÿ ‡þ0j    o?eÝÄOÚ.×ö@_ŒCàWÁãðñh‹}9µ3à4²¸ñ*üUktÕü*<`>I®Æ×‘øü(WįùÇÿ LðgÂmö³Ötÿ ü.ø9§hÐøÀße³O„~‘aΗ&å¶ôRã·÷/üOöJøËµûVø¯âF³ñoNÓõ/Û'ãv££hŸ|#áOi_luGÀ·ö_l&µøsákV¸ñjÚÞÙ[ê^Õì~^ÃñÐ|!kyl.mþ-ÿ ‚¾Û[é?¶v½d›Ù#øðûaãî"Eú.ÆfùŽYý¡›^L]zÓ£ƒž–¦
œ+T£ìTèâkªÔ³Œè:ц&ÓUjW‹§8éôáÏ87Ž?ÕU<f‡ò¼«
˜ñ?Çç8.%Åâ²¼aý ðùŽK•Ï-Í)Ï_™Ã/¯_%Ä8ae€Àåic0õt¾ÿ ÁW~?|%ø#ðSá÷†~|    ºðö—à    ¤±]{Ã^>Õ/`hµ
KfÛŸøYqƒû¬O"¬jÿ ðW_Úź&—¬k
gé.®<È!ðŸâ·Ž(ÆQb‹þ{ìÇûÆŠ+éÏÃ+ð_üÆÞ¹Ö_Ãß¿fO7ˆüE¨ø»Ä?Ø>ñvŽ5ßj“Cý©â]gû;â%¿ö¦¿ª}ží-bûÏÔo¼˜Õ̦4ÇОÿ ‚Í~ÓÙÒ†Ÿ³°ˆS‚|t¬V?º·ÄçÎ(¢¢:t ©Ò„)Â7å…8ƍۓ´b’Wm·e«m½YÑŠÅâñÕêb±¸œF3W—ÚâqUªb+Ôä„iÃÚV­)ÔŸ%8Bœy¤ùaÅZ1IAwÿ ½ý« Ôaµ¿g9"cƒæø3â    cÈî¿P~˜©µ¯ø,_íª[Foþ~Íw,Ù¤ðGËuõÿ …§žzóŸËŠ(«9ÌËø-§íS¦I¯éšgÃÏÙÛO³Ñl4óa¯ƒ|O2ëþ.‘Þ'ŒÞ¿/¿n¯Û_ÆŸþ:ŸxÛáoÁGÄ:Ÿ¼—W1hÞ<†2–ús¤H‘ÂÄ}ŠªNãÖŠ(ÿÙ

Untitled PHP (17-Feb @ 21:23)

Syntax Highlighted Code

  1. <?php
  2.  $brugernavn = $_POST["brugernavn"];
  3.  $password = $_POST["password"];
  4. [42 more lines...]

Plain Code

<?php
session_start();
 $brugernavn = $_POST["brugernavn"];
 $password = $_POST["password"];
 $gentag = $_POST["gentag"];
 $kontaktperson = $_POST["kontaktperson"];
 $errorCount = 0;
 
 if($brugernavn == "")
 {
    echo "Du skal indtaste et brugernavn.<br>";
    $errorCount++;
 }
 if($password == "")
 {
    echo "Du skal indtaste et password.<br>";
    $errorCount++;
 }
 if($gentag == "" || $gentag != $password)
 {
    echo "De to passwordfelter skal have ens indhold.<br>";
    $errorCount++;
 }
 if($kontaktperson == "")
 {
     echo "Du skal indtaste en kontaktperson.<br>";
     $errorCount++;
     }
include "db/conn.php";
 
 $bruger = mysql_query("SELECT * FROM brugere WHERE brugernavn='$brugernavn'");
if(mysql_num_rows($bruger) > 0)
{
    echo "Brugernavnet er allerede taget.<br>";
    $errorCount++;
}
 
 if($errorCount == 0)
 {
   
   $insert = mysql_query("INSERT INTO brugere (brugernavn,password,kontaktperson) VALUES ('$brugernavn','$password','$kontaktperson')");
   if(!$insert)
     echo "Der skete en fejl. Prøv igen. <a href=\"javascript:history.back(-1)\">Tilbage</a><br>";
   else
     echo "Brugeren blev oprettet. <a href=\"safe.php\">Forside</a><br>";
 }
 ?>

Untitled PHP (30-Jan @ 23:09)

remy

Syntax Highlighted Code

  1. // first convert tabs to 4 width spaces
  2. $Inputs['code'] = preg_replace('/\t/', '    ', $Inputs['code']);
  3.  
  4. $lines = split("\n", $Inputs['code']);
  5. [24 more lines...]

Plain Code

// first convert tabs to 4 width spaces
$Inputs['code'] = preg_replace('/\t/', '    ', $Inputs['code']);

$lines = split("\n", $Inputs['code']);
$indent = -1;
$no_indent = false;
foreach ($lines as $line) {
    if (preg_match('/^\s+/', $line, $match)) {
        $len = strlen($match[0]);
        if ($indent == -1) {
            $indent = $len;
        } else if (preg_match('/^\s+$/', $line)) {
            // do nothing - blank line
        } else if ($len < $indent) {
            $indent = $len;
        }
    } else if ($line != '') {
        $no_indent = true;
    }
}

if ($indent && !$no_indent) {
    $new_code = '';
    foreach ($lines as $line) {
        $new_code .= preg_replace('/^\s{' . $indent . '}/', '', $line) . "\n";
    }
    $Inputs['code'] = $new_code;
}

Untitled PHP (24-Jan @ 09:03)

Syntax Highlighted Code

  1. MäèÑøÿÿëՍMôèÇøÿÿ

Plain Code

MäèÑøÿÿëՍMôèÇøÿÿ

Untitled PHP (15-Dec @ 04:43)

Syntax Highlighted Code

  1. <?php
  2. echo "Hello World !";
  3. ?>

Plain Code

<?php
echo "Hello World !";
?>

Untitled PHP (9-Nov @ 22:15)

Syntax Highlighted Code

  1. <?php
  2. /*
  3.     Class:
  4.         Authentication
  5. [65 more lines...]

Plain Code

<?php
/*
    Class:
        Authentication
    
    Description:
        Authenticatates the user.
    
    Functions:
        
*/
class Authentication
{
    //Authenticates the user, setting session values.
    public static function authenticate($user, $pass, $conn)
    {
        //hash pass
        $pass = self::hashFactory($pass);
        
        if ($stmt = $conn->prepare("SELECT id, DATE_FORMAT(lastlogin, \"%b %e, %r\" ), username FROM users where username = ? and password = ?")) {
            /* Execute the prepared Statement */
            $stmt->bind_param('ss', $user, $pass);
            $stmt->execute();
        
            /* Bind results to variables */
            $stmt->bind_result($id, $lastlogin, $username);
            while ($stmt->fetch()) {
                $_SESSION['userid'] = $id;
                $_SESSION['lastlogin'] = $lastlogin;
                $_SESSION['username'] = $username;
            }
            $stmt->close();
            if(!isset($_SESSION['userid']))
            {
                echo "<center><h1><font style='color: red'>Invalid Username or Password</font></h1></center>";
            }
            else
            {
                if($stmt = $conn->prepare("UPDATE users SET lastlogin=NOW() where id= ".$_SESSION['userid']))
                {
                    $stmt->execute();
                }
                else {
                    /* Error */
                    printf("SQL Syntax Error: %s\n", $conn->error);
                }
            }
            $stmt->close();
            }
            else {
                /* Error */
                printf("SQL Syntax Error: %s\n", $conn->error);
            }        
    }
    
    public static function logout()
    {
        session_destroy();
    }
    //creates the password hash to check against the database.
    public static function hashFactory($pass)
    {
        $salt = hash('sha256', $pass);
        $hash = $salt;
        $hash = hash('sha256', $salt.$pass);
        return $hash;
    }
}
?> 

Untitled PHP (9-Nov @ 20:02)

Syntax Highlighted Code

  1. <?php
  2. function relativePath($distance)
  3. {
  4. [30 more lines...]

Plain Code

<?php
session_start();
function relativePath($distance)
{
    $header_to_root_distance = $distance;
    $header_dir = dirname(__FILE__);
    $root_distance = substr_count($header_dir, DIRECTORY_SEPARATOR) - $header_to_root_distance;
    $includer_distance = substr_count(dirname($_SERVER['SCRIPT_FILENAME']), "/");
    $relative_path = str_repeat('../', $includer_distance - $root_distance);
    return $relative_path;
}

function includeRain($distance)
{
    $relative_path = relativePath($distance);
    include_once($relative_path."lib/rain.tpl.class.php");
    raintpl::configure("base_url", null);
    raintpl::configure("tpl_dir", $relative_path."public_html/tpl/");
    raintpl::configure("cache_dir", $relative_path."tmp/");
    raintpl::configure("path_replace", false);
    //init
    $tpl = new RainTPL;
    return $tpl;
}

function includeClasses($distance)
{
    $relative_path = relativePath($distance);
    ini_set('include_path', $relative_path.'/classes');
}
includeClasses(1);
$tpl = includeRain(1);
$tpl->assign('loggedIn', false);

?>

Untitled PHP (8-Nov @ 20:18)

Syntax Highlighted Code

  1. <?php
  2. function includeRain($distance)
  3. {
  4.     $relative_path = relativePath($distance);
  5. [32 more lines...]

Plain Code

<?php
function includeRain($distance)
{
    $relative_path = relativePath($distance);
    include_once($relative_path."lib/rain.tpl.class.php");
    raintpl::configure("base_url", null );
    raintpl::configure("tpl_dir", $relative_path."public_html/tpl/" );
    raintpl::configure("cache_dir", $relative_path."tmp/" );
    //initialize a Rain TPL object
    $tpl = new RainTPL;
    return $tpl;
}

function includeClasses($distance)
{
    $relative_path = relativePath($distance);
    ini_set('include_path', $relative_path.'/classes');
}


function relativePath($distance)
{
    $header_to_root_distance = $distance;
    $header_dir = dirname(__FILE__);
    $root_distance = substr_count($header_dir, DIRECTORY_SEPARATOR) - $header_to_root_distance;
    $includer_distance = substr_count(dirname($_SERVER['SCRIPT_FILENAME']), "/");
    $relative_path = str_repeat('../', $includer_distance - $root_distance);
    return $relative_path;
}


$relative_path = relativePath(1);
include_once($relative_path."config.php");
echo $mysql_host;

$tpl = includeRain(1);
?>

Untitled PHP (8-Nov @ 20:17)

Syntax Highlighted Code

  1.  
  2. $relative_path = relativePath(1);
  3. include_once($relative_path."config.php");
  4. echo $mysql_host;

Plain Code


$relative_path = relativePath(1);
include_once($relative_path."config.php");
echo $mysql_host;

Untitled PHP (8-Nov @ 19:42)

Syntax Highlighted Code

  1. <?php
  2. /*
  3.     Class:
  4.         Demo
  5. [18 more lines...]

Plain Code

<?php
/*
    Class:
        Demo
    
    Description:
        Shows how our class files should be made..
    
    Functions:
        Demo
        Add(int1, int1) 
*/
class Demo
{

    /*Returns the string Demo*/
    function Demo()
    {
        return "Demo";
    }
}
?> 

Untitled PHP (8-Nov @ 18:16)

Syntax Highlighted Code

  1. <?php
  2. function includeRain($distance)
  3. {
  4. $relative_path = relativePath($distance);
  5. [22 more lines...]

Plain Code

<?php
function includeRain($distance)
{
$relative_path = relativePath($distance);
include_once($relative_path."lib/rain.tpl.class.php");
raintpl::configure("base_url", null );
raintpl::configure("tpl_dir", $relative_path."public_html/tpl/" );
raintpl::configure("cache_dir", $relative_path."tmp/" );
//initialize a Rain TPL object
$tpl = new RainTPL;
return $tpl;
}

function includeClasses($distance)
{
$relative_path = relativePath($distance);
ini_set('include_path', $relative_path.'/classes');
}
function relativePath($distance)
{
$header_to_root_distance = $distance;
$header_dir = dirname(__FILE__);
$root_distance = substr_count($header_dir, DIRECTORY_SEPARATOR) - $header_to_root_distance;
$includer_distance = substr_count(dirname($_SERVER['SCRIPT_FILENAME']), "/");
$relative_path = str_repeat('../', $includer_distance - $root_distance);
return $relative_path;
}

Untitled PHP (8-Nov @ 08:04)

Syntax Highlighted Code

  1. <?php
  2. echo 'Hello World!';
  3. ?>

Plain Code

<?php 
echo 'Hello World!';
?>

Untitled PHP (11-Oct @ 15:42)

Syntax Highlighted Code

  1. <?php
  2. /**
  3.  * Created by IntelliJ IDEA.
  4.  * User: Vladimir Chanov
  5. [83 more lines...]

Plain Code

<?php
/**
 * Created by IntelliJ IDEA.
 * User: Vladimir Chanov
 * Date: 12.07.11
 * Time: 17:16
 * To change this template use File | Settings | File Templates.
 */

  abstract class DictionaryEntity {

    /**
     * Метод возвращает имя таблицы
     * @abstract
     * @return str
     */
    abstract public function getName();

 /**
  * Метод возвращает объект с формами
  * @abstract
  * @param $edit_data
  * @param HTML_QuickForm $form
  * @return void
  */

    abstract public function getForm($edit_data,HTML_QuickForm $form);

    /**
     * Метод обрабатывает данные из формы
     * @abstract
     * @param $form
     * @param $rowId
     * @return mixed
     */
    abstract public function handleForm(HTML_QuickForm $form, $id);

   /**
    * Метод возвращает массив с названием полей таблицы
    * @abstract
    * @return void
    */
    abstract public function getField();

    /**
     * Метод возвращает данныые из таблицы
     * @abstract
     * @return void
     */
    abstract  public function getData();
    /**
     * Метод возвращает данныые из таблицы
     * @param $id
     * @return mixed
     */
    public function getDataForForm($id){
      $result = eF_getTableData($this->getName(), "*","id = " . $id);
      return $result;
    }
    /**
     * Метод удаляет строку из табилцы
     * @param $id
     * @return void
     */
    public function delete($id) {
      eF_deleteTableData($this->getName(), "id=" . $id);
    }

  /**
   * Метод делает запись в таблицу
   * @param $fields
   * @return mixed
   */
    public function create($fields) {
      return eF_insertTableData($this->getName(), $fields);
    }

  /**
   * Метод делает обновеление строки
   * @param $fields
   * @param $id
   * @return mixed
   */
    public function update($fields, $id) {
      return eF_updateTableData($this->getName(), $fields, "id =" . $id);
    }
  }

Untitled PHP (6-Oct @ 16:33)

Syntax Highlighted Code

  1.  
  2. //See what file is being requested by the web client, also store the arguments just in case.
  3. list($file,$arguments) = explode("?", $_SERVER['REQUEST_URI']);
  4. [15 more lines...]

Plain Code

session_start();
 
//See what file is being requested by the web client, also store the arguments just in case.
list($file,$arguments) = explode("?", $_SERVER['REQUEST_URI']);
 
//if the user just logged out, destroy this session and redirect them to root
if("/wp-login.php?loggedout=true" == $file ."?" .$arguments || "action=logout" == substr($arguments, 0, 13))
{ session_destroy(); header("location: /"); }
 
//If our sentinel variable is set and true do nothing, allow normal script execution
if(isset($_SESSION['valid_entrance']) && $_SESSION['valid_entrance'] == true) { /* As they say, "Silence is golden" */ }
 
//Now if the user is requesting wp-login.php and our sentinel is not true, redirect the "attacker" to root.
elseif(stripos($file, 'wp-login') && !isset($_SESSION['valid_entrance']))
{  header("Location: /"); exit(); }
 
//If the user is requesting the right login entrance set the sentinel to true
elseif ($file == "/secure-login")
{  $_SESSION['valid_entrance'] = true; }

Untitled PHP (29-Sep @ 18:50)

Syntax Highlighted Code

  1. $orita = D
  2.  
  3. print $orienta

Plain Code

$orita = D

print $orienta

Untitled PHP (5-Sep @ 04:43)

Syntax Highlighted Code

  1. éÕë   R‹Ãf3Ûº è4 éQ.ˆ Pf¶Tf·f÷âfÁè.£ ŒÁÈŽÁXè0 ‚ è ëôZ鍋ʋÐRQfSŠDÿf[ŒÁ. ŽÁYZBâåJ‹ÂÃfSfSPèÊ è: f‹ÈXf‹Úè€ f[ƒúÿ… 3Òùë‹ÂPè© f;È„ è f· fËf‹ÚXè( øf[ÃfPfRfQfSf·LfÈf‰M°ÿ]f[fYfZfXÃPfQ3Éè$ Aƒúÿ„ @;Â… fXfPf;؃ ‹Âëß‹ÑfYXÃP&g‹.€>  „ $„ ÁêfCfCâÿúø‚ ºÿÿëfƒÃƒúø‚ ºÿÿXÃfQf·À.€>  „ f‹ÈfÑèfÁëfÑàf· f3Òf÷ñfYÃfPfSfQf·L É… f‹Lf¶\f·D f÷ãf+Èf·DfÁàf·fÃfHf3Òf÷óf+Èf·Df+Èf‹Áf¶Lf3Òf÷ñ2Òf=õ  ƒ þÂfYf[fXéBþ»0/ÁëŒÈÎм(RŽØŽÀf·ÐfÁâfÂ   f‰¾ 3íf·íf·äŒ¼èÿfh    f‹Ü‹W3ÀŽèŽÀj0¡ú¨°¾òÇDh ¾îÇDh  À Ò„ f
  2.   €"À‡Ûë
  3. fƒÈ"À‡ÛëjXhm˸` ŽØŽÐ3Û Ó Ò… »(  ÛÃÈ   WVÄ~&‹- s&ÇÿÿëRÑà= r&ÇEÿÿëB‹Ø.‹‡ WP&‹E&‹]&‹M&‹U
  4. &‹u &ŽEÃ_œ&E&‰E&‰]&‰M&‰U
  5. [16 more lines...]

Plain Code

éÕë   R‹Ãf3Ûº è4 éQ.ˆ Pf¶Tf·f÷âfÁè.£ ŒÁÈŽÁXè0 ‚ è ëôZ鍋ʋÐRQfSŠDÿf[ŒÁ. ŽÁYZBâåJ‹ÂÃfSfSPèÊ è: f‹ÈXf‹Úè€ f[ƒúÿ… 3Òùë‹ÂPè© f;È„ è f·fËf‹ÚXè( øf[ÃfPfRfQfSf·LfÈf‰M°ÿ]f[fYfZfXÃPfQ3Éè$ Aƒúÿ„ @;Â… fXfPf;؃ ‹Âëß‹ÑfYXÃP&g‹.€>  „ $„ ÁêfCfCâÿúø‚ ºÿÿëfƒÃƒúø‚ ºÿÿXÃfQf·À.€>  „ f‹ÈfÑèfÁëfÑàf·f3Òf÷ñfYÃfPfSfQf·LÉ… f‹Lf¶\f·Df÷ãf+Èf·DfÁàf·fÃfHf3Òf÷óf+Èf·Df+Èf‹Áf¶Lf3Òf÷ñ2Òf=õ  ƒ þÂfYf[fXéBþ»0/ÁëŒÈÎм(RŽØŽÀf·ÐfÁâfÂ   f‰¾3íf·íf·äŒ¼èÿfh    f‹Ü‹W3ÀŽèŽÀj0¡ú¨°¾òÇDh ¾îÇDh  ÀÒ„ f
  €"À‡Ûë
fƒÈ"À‡ÛëjXhm˸` ŽØŽÐ3Û ÓÒ… »(  ÛÃÈ   WVÄ~&‹- s&ÇÿÿëRÑà= r&ÇEÿÿëB‹Ø.‹‡ WP&‹E&‹]&‹M&‹U
&‹u&ŽEÃ_œ&E&‰E&‰]&‰M&‰U
&‰u&ŒE^_ÉÃÍë×ÍëÓÍëÏÍëËÍëÇÍëÃÍë¿Íë»Íë·Íë³øü È   f‹vf‹~f‹NfÁé¸ ŽØŽÀüógf¥f‹Nfƒáóg¤ÉÃÈ   f‹~f‹NfÁé¸ ŽÀf3Àüógf«f‹NfƒáógªÉúò¸ îè°ÿ6¼¸` ŽÀŽàŽè Àf%þÿÿ"À됐 ؐ"ØêÐ  XŽØŽÐ¾òÇD ¸¾îÇD ¸¶ûÃgf‹\$f3À¡¼¹ ŽÑf¼ü ŽÙŽÁfÁàf3ɹfÁfPhhfjfSfËU‹ìƒìÄ6Èf3À&f‰D&f‰VÍf·ÀfÁà
fPfÁèf‰Füf3ÀfPè?ƒÄ´ˆÍ‰Fúf%ÿÿ  fÁà
fPfÁèFüf¸   fPèƒÄ¸èÍrM;Fút= <uCfãÿÿ  t:fÁãfÃ   ‹Fúf%ÿÿ  fÁà
f   f+ØvfSfÁë^üfPèɃÄf%ÿÿ  ^f‹Fü‹å]ÃfU‹ì‹nfWfVfSf‹^f‹N~f¸ è  fºPAMSÍf‰^f‰NfÉf-PAMSfÈf‰N f[f^f_f]à     fUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSèOþ¸@ ŽØÇr 4°þædëþfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèöýU‹ìƒÅf‹F‹ØƒãfÁèŽÀ‹N†éÀáNŠf ŠFŠvŠV€ú…e €ü^ €ü „ €üŒP SWj ¿&‹x ‰&‹z ‰]» &‰x ŒÛ&‰z _[ÍSWj ¿‹&‰x ‹]&‰z _[‚ f3Àë    Í‚ f3Àf%ÿÿ  ]ƒÄfÁá‹ÊfPjè¶ûƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇÛfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèÎüU‹ìƒÅVSj ¾Ç ‹F‰Df‹F‹Øƒã‰\fÁè‰Df‹Ff‰Df‹Ff‰DŠf2ÀŠV Í‚ f3Àf%ÿÿ  [^]ƒÄfÁá‹ÊfPjèßúƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇېfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSè#ü¸ Í…     f¸    ë¸  Íf%ÿÿ  fPjèwúƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇېfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSè»û´ Í‹ÁfÁà‹ÂfPjè úƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfËfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïè:ûU‹ìƒÅf‹V f3À» 0ŽÃ‹ø¹ @üóf«¹ @ŽÁóf«è6R¸ ÍZ¸  ŽØŽÀŽàŽè¸ ŽÐf¼   f½    f¾    f¿    ÷Âÿÿ„ ¸ÀŽØ¸ 
ŽÀú3ÀŽÐ¼ |ûh 
hVë    j h |º€ Ëjè+ùƒÄƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇÛfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèBúU‹ìƒÅf‹Ff‹V fú   €…
 f‹ØfÁë됊𴷠Í]ƒÄjè†øƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfËfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïè¢ùU‹ìƒÅ´Íf3ÀŠÆ2äÁÀÀÈÕ
f·ÐŠÁ2äÁÀÀÈÕ
ÁàЊÅ2äÁÀÀÈÕ
fÁàfÐf‹F‹ØƒãfÁèŽÀ&f‰´Íf3ÀŠÂ2äÁÀÀÈÕ
ŠÞf·ÐŠÃ2äÁÀÀÈÕ
ÁàЊÁ2äÁÀÀÈÕ
ŠÈŠÅ2äÁÀÀÈÕ
´döä2íÁfÁà    fÐf‹F ‹ØƒãfÁèŽÀ&f‰]ƒÄjèW÷ƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfːfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèrøh1h j ˃ÄjèØöƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇÛfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèò÷U‹ìƒÅŠfŠF‹V Í]ƒÄjèPöƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇÛfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSè—÷úWV¸  ŽØ¿p ‹
‹U¸_‰X‰Ef¸    f»    ‹ôƒî.‰6].Ç[Aûfƒû tú.Ç[NfƒÀuúú‰
‰Uû^_ë    UP.‹.].¡[‰F X]Ïf‹Ðf¹   fÓ깦Ö÷ñf%ÿÿ  f@fPjèõƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfːfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSèÇö¸»  Íjè2õƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfËfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèNöU‹ìƒÅf‹F ‹èƒåfÁèŽÀ&f‹^&f‹N~f¸ è  fºPAMSÍ&f‰^&f‰NfÉf-PAMSfÈ&f‰N ]ƒÄjèrôƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfËfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèŽõU‹ìƒÅRSVf‹F ‹Øƒã‹ófÁèŽØŠV¸KÍ‚ f3Àf%ÿÿ  ^[Z]ƒÄfPjèÇóƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfˇېfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSf¹   f‹ófƒÆjƒìf3ÿ‹üg‹&g‰fƒÆfƒÇâïèÞôU‹ìƒÅRSV´A»ªUŠVÍ‚5 ûUª…- öÁ„& f‹F ‹Øƒã‹ófÁèŽØÇ ŠV´HÍ‚ °ƒ 2Àf¶À^[Z]ƒÄfPjèôòƒÄfXf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfËfUfSfVfWf‹Ü¸` ŽØŽÐ¼þfSè;ôf¸ S  f»    Í‚z €ûM…s €ÿP…l €üŽ ´<Ž °P¸S»  ÍX‚M P‹È»  ¸SÍX‚= ¸ S»  Í‚1 QP¸S»  ÍXY‚! ƒù„ PQ¸S»  ÍYX‚
 ‹È¸S»  Íjè"òƒÄf[º ŽÚŽÒŽÂf‹ãf_f^f[f]fZfh   fRfË  

Untitled PHP (5-Sep @ 04:36)

Syntax Highlighted Code

  1. <?php
  2. echo "xx";
  3. ?>

Plain Code

<?php
echo "xx";
?>

Untitled PHP (17-Aug @ 21:35)

Syntax Highlighted Code

  1. 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  2.                 'Accept-Language: de-de,de;q=0.8,en;q=0.5,en-us;q=0.3',
  3.                 'Accept-Encoding: gzip, deflate',
  4.                 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7',
  5. [3 more lines...]

Plain Code

'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
                'Accept-Language: de-de,de;q=0.8,en;q=0.5,en-us;q=0.3',
                'Accept-Encoding: gzip, deflate',
                'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7',
                'Keep-Alive: 115',
                'Connection: keep-alive',
                'Cache-Control: max-age=0'
            );

Untitled PHP (10-Aug @ 22:01)

Syntax Highlighted Code

  1. spamplanet.org

Plain Code

spamplanet.org

Untitled PHP (30-Jul @ 10:51)

Syntax Highlighted Code

  1. <?php
  2. function bbcode($text){
  3.  
  4.     $text = nl2br($text); # Change \n\r into <br />  (enters)
  5. [40 more lines...]

Plain Code

<?php
function bbcode($text){

    $text = nl2br($text); # Change \n\r into <br />  (enters)
    $text = htmlspecialchars($text, ENT_QUOTES); # Change all html and '" code into kind of &lt; Characters
    $text = str_replace('=javascript', '=#javascript', $text); # Hack prevent

    $tags = array( # BBCODE
        '#\[b\](.*?)\[/b\]#si' => '<strong>\\1</strong>',
        '#\[i\](.*?)\[/i\]#si' => '<em>\\1</em>',
        '#\[s\](.*?)\[/s\]#si' => '<span style="text-decoration: line-through;">\\1</style>',
        '#\[u\](.*?)\[/u\]#si' => '<span style="text-decoration: underline;">\\1</style>',
        '#\[img\](.*?)\[/img\]#si' => '<img src="\\1" alt="" />',
        '#\[url=(.*?)\](.*?)\[/url\]#si' => '<a href="\\1">\\2</a>',
        '#\[url\](.*?)\[/url\]#si' => '<a href="\\1">\\1</a>',
        '#\[youtube\](.*?)\[/youtube\]#si' => '<a href="\\1">\\1</a>', # You may like to change this one, for a player ^^
        '#\[quote\](.*?)\[/quote\]#si' => '<strong>QUOTE</strong><blockquote style="border:1px dashed #000;">\\1</blockquote>',
        '#\[code\](.*?)\[/code\]#si' => '<strong>CODE</strong><blockquote style="border:1px dotted #000;">\\1</blockquote>', # Powerfull when added a code-highlighter
    );
    foreach ($tags AS $search => $replace){ $text = preg_replace($search, $replace, $text); } return $text;

    $smile = array( # SMILEYS
        ':D' => '<img src="/images/smileys/Heel_blij.gif" alt="" />',
        ':)' => '<img src="/images/smileys/Blij.gif" alt="" />',
        ':P' => '<img src="/images/smileys/Tong.gif" alt="" />',
        ':(' => '<img src="/images/smileys/Niet_blij.gif" alt="" />',
        ':S' => '<img src="/images/smileys/Wird.gif.gif" alt="" />',
        ':*(' => '<img src="/images/smileys/cry.gif" alt="" />',
        'XD' => '<img src="/images/smileys/marlinde.gif" alt="" />',
        '(a)' => '<img src="/images/smileys/angel.gif" alt="" />',
        '8|' => '<img src="/images/smileys/huh.gif" alt="" />',
        ':O' => '<img src="/images/smileys/ohmy.gif" alt="" />',
        ';-)' => '<img src="/images/smileys/wink.gif" alt="" />',
        '8)' => '<img src="/images/smileys/cool.gif" alt="" />',
        ':*)' => '<img src="/images/smileys/zielig.gif" alt="" />',
        ':?' => '<img src="/images/smileys/dry.gif" alt="" />',
        ':@' => '<img src="/images/smileys/mad.gif" alt="" />',
        '8-)' => '<img src="/images/smileys/unsure.gif" alt="" />',
        ':|' => '<img src="/images/smileys/blink.gif" alt="" />',
        '|:-|' => '<img src="/images/smileys/ph34r.gif" alt="" />',
        '|-)' => '<img src="/images/smileys/sleep.gif" alt="" />',
    );
    foreach ($smile AS $search => $replace){ $text = str_replace($search, $replace, $text); } return $text;
};
?>

OOP Server.class 4 SAP (6-Jul @ 05:56)

Syntax Highlighted Code

  1. <?php
  2. // serverMain.class.php by djcrackhome --Try for OOP on Streamers Admin Panel
  3. class serverMain {
  4.    
  5. [159 more lines...]

Plain Code

<?php
// serverMain.class.php by djcrackhome --Try for OOP on Streamers Admin Panel
class serverMain {
    
    private $ownerId;
    private $ownerStatus;
    private $serverType;
    protected $serverSettings;
    protected $outputType;
    
    function __construct(&$serverControlArray=NULL, $serverSettings=NULL, $outputType=NULL) {
        $checkValues = 
            array($serverControlArray['ownerId'], $serverControlArray['ownerStatus'], $serverSettings, $outputType);
        $setValues = 
            array($this->ownerId, $this->ownerStatus, $this->serverSettings, $this->outputType);
        if (count($checkValues) == count($setValues)) {
            for ($i=0; $i<count($checkValues); $i++){
                if (!empty($checkValues[$i])) {
                    $setValues[$i] = $checkValues[$i];
                }
                else processOutput('', $this->outputType);
            }
        }
        else processOutput('', $this->outputType);
    }
    
    public function __set($setKey, $setVal) {
        if (inputHandler($setVal)) {
            if (isset($this->$setKey)) {
                $this->$setKey = $setVal;
            }
            else processOutput('', $this->outputType);
        }
    }
    
    public function __get($getKey) {
        if (isset($this->$getKey)) {
            return $this->$getKey;
        }
        else processOutput('', $this->outputType);
    }
    
    private function inputHandler($checkInput='') {
        if (!empty($checkInput)) return TRUE;
        else return FALSE;
    }
    
}


//    serverControl.class.php by djcrackhome --Try for OOP on Streamers Admin Panel
//    considering to be about 65% finished, --this file!!

class serverControl extends serverMain {
    
    private $systemShellDir;
    private $sudoCall;
    
    function __construct() {
        parent::__construct();
        $systemShellDir = $this->serverSettings['panelDir']."system/system.sh";
        if (isset($this->serverSettings['systemSudoUser'])) {
            if (!empty($this->serverSettings['systemSudoUser']))
                $sudoCall = 'sudo -u '.$this->serverSettings['systemSudoUser'];
            else 
                $sudoCall = 'sudo';
        }
    }
    
    private function serverConfigCreate() {
        foreach($this->serverSettings as $serverSettingsField => $serverSettingsValue) {
            $internalConfigCont .= $serverSettingsField."=".$serverSettingsValue."\n";
        }
        $internalConfig = $this->serverSettings['clientsDir'].$this->serverSettings['clientsId']."/configs/".$this->serverType.time().".conf";
        try {
            if (!$internalConfigHandler = fopen($internalConfig, 'w+')) {
                throw new Exception('File could not be opened/created. Check CHMOD!');
                fclose($internalConfig);
            }
            elseif (fwrite($internalConfigHandler, $internalConfig) === FALSE) {
                throw new Exception('File could not filled with data. Check CHMOD!');
                fclose($internal_function_server_start_filename_handler);
            }
        } catch (Exception $e) {
            return $e->getMessage();
        }
        return $internalConfig;
    }
    
    private function serverStart($systemPlaylist=NULL) {
        $systemFileName;
        switch ($this->serverType) {
            case 'streamShout1':
                $systemFileName = 'sc_serv_1_98';
                break;
            case 'streamShout2':
                $systemFileName = 'sc_serv_2_beta_build10';
                break;
            case 'streamTrans1':
                $systemFileName = 'sc_trans_0_40';
                break;
            case 'streamTrans2':
                $systemFileName = 'sc_trans_2_beta_6';
                break;
            case 'transcode':
                $systemFileName = 'trancoder_1_0';
                break;    
            case 'videoNsv':
                $systemFileName = 'sc_nsv_10';
                break;    
        }
        $fileChmod = substr(sprintf('%o', fileperms($this->serverSettings['systemDir'].$systemFileName)), -4);
        if (!file_exists($this->serverSettings['systemDir'].$systemFileName) || 
           (($fileChmod!='0777') && ($fileChmod!='0755'))) {
            processOutput('', $this->outputType);
        }
        if (!empty($internalConfig)) {    
            try {
                switch ($this->serverType) {
                    case 'streamTrans1':
                    case 'streamTrans2':
                        if (!is_null($systemPlaylist)) {
                            $systemShellPid = 
                                shell_exec($this->sudoCall.' nohup '.$this->systemShellDir.' '.$this->serverSettings['panelDir'].' '.$systemFileName.' start '.$internalConfig.' '.$systemPlaylist);
                        }
                        break;
                    default:
                        $systemShellPid = 
                            shell_exec($this->sudoCall.' nohup '.$this->systemShellDir.' '.$this->serverSettings['panelDir'].' '.$systemFileName.' start '.$internalConfig);
                        break;
                }
                sleep(4);
                if (empty(substr($systemShellPid, 6, -1))) throw new Exception('Server could not be started. Check Server!');
            }
            catch (Exception $e) {
                return $e->getMessage();
            }
            parent::processController('db', 'set', 'pid', $systemShellPid);
            processOutput('', $this->outputType);    
        }
        else processOutput('', $this->outputType);
        if ($this->serverSettings['streamConfig']) {
            unlink($internal_function_server_start_filename);
        }
    }
    private function serverStop() {
        if (!fsockopen($this->serverSettings['panelHost'], $this->serverSettings['serverPort'], &$errnum, &$errstr, 1)) {
            processOutput('', $this->outputType);
        }
        else {
            $systemShellPid = parent::processController('db', 'get', 'pid');
            shell_exec($this->sudoCall.' nohup '.$this->systemShellDir.' stop '.$systemShellPid);
            sleep(3);
        }
        processOutput('', $this->outputType);
    }
    private function serverKick() {
        if ($serverCheck=fsockopen($this->serverSettings['panelHost'], $this->serverSettings['serverPort'], &$errnum, &$errstr, 2)) {
            fwrite($serverCheck, "GET /admin.cgi?pass=".urlencode($this->serverSettings['serverAdminPass'])."&mode=kicksrc HTTP/1.0\r\nUser-Agent:Streamers_Admin_Panel.3\r\n\r\n");
            processOutput('', $this->outputType);
        }
        else processOutput('', $this->outputType);
    }
}

Untitled PHP (3-Jul @ 11:28)

Syntax Highlighted Code

  1. for($i=0; $i<10; $i++)
  2. {
  3.   echo "hello \n";
  4. }
  5.  

Plain Code

for($i=0; $i<10; $i++)
{
  echo "hello \n";
}

Kohana user systeem, enkel login (24-May @ 21:03)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class Controller_User extends Controller_Default
  4. {
  5. [22 more lines...]

Plain Code

<?php

class Controller_User extends Controller_Default
{
    public function action_login($_POST)
    {
        $post = Validation::factory($_POST)
                ->rule(TRUE, 'not_empty')
                ->rule('username', 'not_empty')
                ->rule('username', 'alpha_numeric')
                ->rule('username', 'matches', array('username', dataresource))
                ->rule('password', 'not_empty')
                ->rule('password', 'matches', array('password', dataresource))
            
            if($post->check()):
            
                //actie als t is gelukt
            
            else:
            
            //actie als het is mislukt
    
            endif;
    }
    

}

Untitled PHP (22-May @ 14:18)

Syntax Highlighted Code

  1. <?php
  2. $page = 'Menu';
  3. include 'header.php';
  4. $_m = new Menu();
  5. [115 more lines...]

Plain Code

<?php 
$page = 'Menu';
include 'header.php'; 
$_m = new Menu();
$categories = $_m->getCategories();
?>

    <div id="carte">
        <div id="carte-top" class="wrap"></div>
        <div id="content-block" class="wrap">
                    
            <div class="separator top-separator content left"></div>
            <div class="separator top-separator content right"></div>

            <div id="main" class="content">
            <?php
            foreach($categories as $category){
                $gerechten = $_m->getMenu($category);
            ?>
                <div class="dmtmenu dmtmenu-category active" name="voorgerechten">
                    <h1><?php echo $category; ?></h1>
                    <table class="fulltable">
                    <?php
                    foreach($gerechten as $gerecht){
                    ?>
                        <tr class="dmtmenu-item">
                            <td>
                                <h5><span><?php echo $gerecht["name"]; ?></span></h5>
                                <details class="small">
                                    <p><?php echo $gerecht["description"]; ?></p>
                                  </details>
                              </td>
                            <td class="dmtmenu-price">&euro;<?php echo $gerecht["price"]; ?></td>
                          </tr>
                    <?php
                    }
                    ?>
                    </table>
                </div>
            <?php
            }
            ?>
            </div><!-- end main -->
    
            <div class="sidebar content">

                <div class="module">
                    <h3>Kies een menu</h3>
                    <nav class="clearfix">
                        <div class="cols-2 col-first">
                            <div>
                                <ul class="menu" id="kaartmenu">
                                    <li class="active"><a href="#">Voorgerechten</a></li>
                                    <li><a href="#">Soepen</a></li>
                                    <li><a href="#">Broodjes</a></li>
                                    <li><a href="#">Wraps</a></li>
                                    <li><a href="#">Borrelkaart</a></li>
                                    <li>&nbsp;</li>
                                    <li><a href="#">Buffetten</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="cols-2 col-last">
                            <div>
                                <ul class="menu" id="kaartmenu">
                                    <li><a href="#">Hoofdgerechten</a></li>
                                    <li><a href="#">Seizoensgebonden</a></li>
                                    <li><a href="#">Vegetarisch</a></li>
                                    <li><a href="#">Desserts</a></li>
                                    <li><a href="#">Dranken</a></li>
                                    <li>&nbsp;</li>
                                    <li><a href="#">Drank Arrangementen</a></li>
                                </ul>
                            </div>
                        </div>
                    </nav>
                </div>
                
                <div class="separator clear"></div>
                
                <div class="module">
                    <h3>Aanraders van de Chef</h3>
                    
                    <div id="slider2" class="nivoSlider">
                        <img src="demo_images/slider/1.jpg" title="#caption1" alt="" />
                        <img src="demo_images/slider/2.jpg" title="#caption2" alt="" />
                        <img src="demo_images/slider/3.jpg" title="#caption3" alt="" />
                    </div>
                    

                    <div id="caption1" class="nivo-html-caption">
                        <h4><a href="#">Biercaf&#233;</a></h4>
                        <p>Old Inn is van oorsprong een biercaf&#233;. Bij ons heeft u keuze uit een brede selectie van tapbieren.</p>
                    </div>
                    <div id="caption2" class="nivo-html-caption">
                        <h4><a href="#">Feestjes</a></h4>
                        <p>Heeft u iets te vieren? Bij Old Inn kunt u altijd terecht!</p>
                    </div>
                    <div id="caption3" class="nivo-html-caption">
                        <h4><a href="#">Terras</a></h4>
                        <p>Lekker genieten van het zonnetje onder het genot van een hapje en een drankje na een vermoeiende wandeling? Bij Old Inn kan het!</p>
                    </div>
                </div>
                
            </div><!-- end sidebar -->
                        
                        
            <?php 
                include 'carte-footer.php'; 
                ?>
            
        </div><!-- end #content-block -->
        
        <div id="carte-bottom" class="clear wrap"></div>
    </div><!-- end #carte -->
    
<?php 
$DBH = null;
    include 'footer.php'; 
    ?>

Untitled PHP (22-May @ 14:14)

Syntax Highlighted Code

  1. <?php
  2. /**
  3. * Algemene Class voor Old-inn Websites
  4. */
  5. [93 more lines...]

Plain Code

<?php
/**
* Algemene Class voor Old-inn Websites
*/
class OldInn
{
    public $DBH;

    function __construct()
    {
        try{
            $this->DBH = new PDO("sqlite:database.sqlite");
        }
        catch(PDOException $e) {  
            echo $e->getMessage();  
        }
    }
}

/**
* Functies voor de Fotogallerij
*/
class Gallerij extends OldInn
{
    
    function __construct()
    {
        
    }
    function getGallerys(){
        $xml = simplexml_load_file("gallerij/photos.xml");
        $gallerys = array();
        foreach($xml->gallery as $gallery){
            $gallerys[] = array("name"=>(string)$gallery->attributes()->name,"dir"=>(string)$gallery->attributes()->dir,"pic"=>(string)$gallery->attributes()->pic);
        }
        return $gallerys;
    }
    function getDirFromName($name){
        $xml = simplexml_load_file("gallerij/photos.xml");
        foreach($xml->gallery as $gallery){
            if((string)$gallery->attributes()->name == $name){
                return (string)$gallery->attributes()->dir;
            }
        }
        return null;
    }
    function getGalleryPhotos($galleryname){
        $xml = simplexml_load_file("gallerij/photos.xml");
        $photos = array();
        foreach($xml->gallery as $gallery){
            if((string)$gallery->attributes()->name == $galleryname){
                foreach($gallery as $photo){
                    $photos[] = array("title"=>(string)$photo->title,"url"=>(string)$photo->url);
                }
            }
        }
        return $photos;
    }
}
/**
* Functies voor de menukaart
*/
class Menu extends OldInn
{
    
    function __construct()
    {
    }
    function getMenu($category){
        $STH = parent::$DBH->query("SELECT * FROM gerechten WHERE category='".$category."'");
        $STH->setFetchMode(PDO::FETCH_ASSOC);
        $results = array();
        $i=0;
        while($row = $STH->fetch()) {
            //money_format only works on Linux servers, it formats "1" to "1,00"
            if(function_exists("money_format")){
                $row["price"] = money_format("%.2n",$row["price"]);    
            }
            $results[$i] = $row;
            $i++;
        }
        return $results;
    }
    function getCategories(){
        $STH = parent::$DBH->query("SELECT category FROM gerechten");
        $STH->setFetchMode(PDO::FETCH_ASSOC);
        $categories = array();
        $i=0;
        while($row = $STH->fetch()) {
            if(!in_array($row["category"],$categories)){
                $categories[$i] = $row["category"];
                $i++;
            }
        }
        return $categories;
    }
}
?>

Untitled PHP (10-May @ 13:08)

Syntax Highlighted Code

  1. invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: HbTqÃ);3âinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: 7Vx€áa= >°invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: youtube-uilgoogleÀÀ-invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Host: wiki.wireshark.org
  2. invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( )
  3. invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  4. invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
  5. [114 more lines...]

Plain Code

invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: HbTqÃ);3âinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: 7Vx€áa= >°invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: youtube-uilgoogleÀÀ-invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Host: wiki.wireshark.org
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( )
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Encoding: gzip,deflate
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: 115
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: keep-alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Referer: http://wiki.wireshark.org/SampleCaptures
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Cookie: __utma=44101410.762173423.1300913753.1301022551.1301028272.3; __utmz=44101410.1300913753.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=87653150.565203656.1301022264.1301022264.1301022264.1; __utmc=87653150; __utmz=87653150.1301022264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=44101410; __utmb=44101410
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm:  invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Date: Fri, 25 Mar 2011 04:45:01 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Server: Apache
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Vary: Cookie,User-Agent,Accept-Language,Accept-Encoding
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Encoding: gzip
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Length: 11450
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: timeout=15, max=100
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: Keep-Alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Type: text/html
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: X-Pad: avoid browser bug
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ‹invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: æë!rI‡Ü‰,@)¡ª´ýÊNÌzuâÕsœSÇs÷´}ä‘“×''GÎëC”0ïc×puâ¼&‰H‰n„‡èBÍÙ>äÎuœ#÷ÐvÜvÛ;µ=[vOÜãv§ëw{¾åYý3$§VÓkε`×:Ü'îÉák÷)‹ma‚.tË͵½c[HnSÛ”§~J‡Êææ8‡v(FB¶Ÿ¡oKÓBóûu džíž"ù,±invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ëÑ:o¿úÕ…îy§º™¦ÿã%Q‚x‡'I„cÀCÞnßÛ½‹–•2P¾tÜ[1áñI{¨wÞßwÉã£ñ@¤¥\ÝÆ„\ô#¿tou:Ý~þI¸B”#¦ïéÍbœ¡–5 ­Æº7Ò³;ŸˆJépÈ}2€1Zûé5œÅLéR&¹Ni„3·\׏˜²T7~rÊ.àæÑi[Óé”dQæd8Q£©Í*ä$CªEª´ýÊ×í77Jâ„4Ï~µMkÍVíûâÌî_ÞÚ=Ý©¿>·‘binvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ó²uqÖ}¶‰­Ðý>nÎ.ºö—¾8}ªXˆ“D;°€—˳®åZH3Ø²YEBºä“’½ïý¥KÚöé%7t Ã€ãinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ð=rŽí«Ç„\aMÛ
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ­ããÃõŘ*¬9¥Û˜OpqÏÌ>}¸q²x:»½êwn‘&7Vi2V͵"ŠÛÏ7÷í"­#]çAê]rqvsCt]OÞ¿vŸßÈÜ$Â.û·×84H¹fwS¡„/Bœ1ê-HÀÃíÍ…y“9ÅÔ²­îÍ}Ï2ŘȔÙ|    'Ghæ\£i7Fs®Ñ\h@.ûËYQÄ’æ—ñÈ¢±Å"Ê‘¦kÅ4)Òœk4iÜ,iinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: “~½²$Ç[s¾yç„ôö«¸¯9¿±¹C~bªtŒå¢‚´f    ëÜ_à<×e +²°ÇØÃ½Žö:p¿~¿Ô3^‚invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ø0órŸß%˜cöký…¦\dòsïü’M8Ú$ãXÀ‹ÐWžš­ˆžï¡ŠÛ¯ýËY—˜ý=O[®g·]rqy{f}Ž¬ÞÕéN­îÇ>1“2xl¸¼¹0›ó<XNdmÓn~Žš½»¦ÑnnÓn:ubԐ9ÿõö†èÞÑ„›·f-Y7“HmCPinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ùi­N    iJN"š¡°*ØbMS¼¨_'Öp |cÙ,„ç*#Ò÷ç?E*i/?!t=Yð/Finvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: …#þÂýVJ§î–(@s¥‰9ºc‚“­«¸ýÚ쯹Þ}œ~I{}Ùí$éÇOwŸgùþz2‘¶|¨§8õÇÜEÊÖe $-FÙŠòä]¼µ-»ÉOr佘#ïIŽdŠòH—Y°*jÐë‡7ÔOy>Ò¶®rmžLŽW}êç›Ø~’©2¤W0;ÁOòSLFzG¾]ÇOÖ    ¯áinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: |Lxh'<!%uh?2߯\¹„ôž²ùvÄ4#ÀɁ»ÀûýýGˤË/¸0B¿†ƒ´³ƒT$vèêg^ßVhÊum9)ÎPÇd=X%Ò:¯¦:Ê£X¥ÁÊ8ÕøŠ(jFa-=_´ƒuc±÷÷Wîé©e[Cúhñ¯V'¾áCf™óinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Vinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ÿùVöÒg*ùÁC:a^³þäx5Ï’×WÛ£ŒI™P)§"Å©¸·S÷;1šFi£ž
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ҍ©9_Wš”+8@©¹8ªÕNáÉÕÓb2ËÇ\ÎR0›fùV—ˆV<H=cmsZfªéÌì|ò,—Y€ª,v!î‘wÔzŒÂçkoaÅö\jL2)"UŠÖ)ÛO‡ÉHzhѲ„º“+ß/Iû‘ÆukâŽ=¯]œ}Áé#Z—o;µ®“TáíY±Z׉BÜôp;rr¼æÁÆð@S¤cÖW$HQIórKµL”Ù—/”D2ސ7€€>Ò`ý¸Ö8½™T„ÙˆÌ÷&ù´©tg€¨î`™©%SÓkjVæHef·™óU‰þÌ#Äó¾k=Ño¾qS,•„ÆA)^È6 ¸—i1{XÈdhֵݜÝ=ßâ6(ì)~dͺW%XŠK¤¨KÆm/l–°>J3·æ^øù5ÔÍ&±†ƒÑWŽì­†rÞøý’°ÚÆP;°û½ðÃAg‚ÚŠ(vó½ÏÈ€K^)ÒKÄXÀÖŽ¼ÞŽœ1vâxîÑ¡M¥>/ŽNÉß    `µ0ëhinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ûˆD#m³†ƒµ3dñ¬¾úXߥÿ"iWh€2—‘9T*߬ԖùN¶™b€5Š
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: |«?¼Ý{ëhinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: øàl†¤¾BÕÐ$‰DÚŸ~i§ÂC9ÇnE¨îÏÆÙ£•OM…îæ"|An®“aGSëf¶´“¹-¤î|‰Ý|Lš6à*ÂÛ¦½ÌTc¬    ó+ (°æƒ¯H âHH“q+0P—+‘2a²ØûH³Ñ—ØfzJÄÌŽ™2ã8híŒ\ÈM"ü/hñQ‚AºY¬ìinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ðej Ý    Λ›5¨ŠÎre¨jv€°bñÀ‘&™Î‘Íò0ÅRžÖÒšm.ò§ØÞ‚=LðæþTi°2ÞÉÝU cÍ@Y‘invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ùHÒØS    h2Õ×52kM"i¦8ci·‹¸™ÁŠ/ÁÀÇ{7‘5<`ŠW`€.ì”áLâ.³invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ½æ6·p7Ibœ†YbGYlÎðÐßÏ7³zAŠŠz;¤$æÌQ˧Jã‘Ærd³‚„<ˆRëcI'Ôv\;@ÚfXC€öÌWh€²J&HoJ(@s2”ê<ÅMâ~¿:ÁÉb%Ô~Í4_´^Œù£(oinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ðë¢iÖÔÓ8cúÀ†”#u‰v`/cš"­¶(¡ ÍY8¡„bt±ÎÔCEX½
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ґ–Ó¬H€b4P"Íßz¢ÈVqOÑFi m!þ{&ô­H‘^ÅAÚ    R‰²invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: VS)G¬`õt½C(‡ª4@™ÑÔ¬åĉé2ÒÕMw”ݍV$P16»À
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ñ€µ³Øä<äõÕá¼¾rÝö‘ë M&©«SË­y'ˆéjɃÔ#¬\ÕË‘XÛ_®H°"Ò0y    UCÓk#ª.`°.    é M–G<¢È¯3a>ñbb?ž‹u&ì¢h­zùSéxî©ùïÒ¼Mˆ»ÃÚ‚¹Ìª§ªk,¼H¨invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ï^ë…Ìm©éÓÌW¦¥x?±=ì„Ý-xŒ(³”2œfû$à!溵Ù>‘1›ÄZH21#ù;’©N܃=ûêbÃÅ
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: èʁnFéêd¦Ýri’ÐvêÓœàC+<ÑaÀÌÆO/épCt8ÎhMî5¨½Jk$õ*°ž>Þ®<›Äý&ÇöX!M2,³ Uœ¼·àinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Q=”y5Ô^7e«§4RTý*±†Ä÷2ë<X]×    n¬aËiXªDÀÁábU´ÖÍ$Rc;µ®ԝ!w`/GÎiq~©y“€RlAqtkiùHg5®H"Vðê„ï+3o¨2=[oEùhÀ˜ýEðØ¦™³Øôì+;Pinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: )i:[^ø‹Hƒ-×}`á*@æ‡Oñµy£ÌséÁ˜ÑàÝ«Wo"˜YVHãÑÛFÀVÀÓ·0?ÈôÕ›€O,¼m˜‹YñÕPcò¹Í+bj,ôw:Ö<ÂÖ#Ò¨jžþ/“LYj–èó `qÊi¤*nmXùñÚof襐iì½Íœ~Ï2žßçž8ytÐ-ípa6'4Þõ2_??½9È/X’W*®›KäB(ç/e–ä_õ¿žÓxeé?"
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ?“ʵùá5æòdžþÝ Ì–FÎõçùoæw>°Y–,~}1ÖÉÁV·úùÏÛKCµÌa• ä9|{sû•¯ŠÐÉlqU¸˜Kç=VÀVže•_Jœ9¾üÍnzeøµ¾ÍêÏçuYäÀä+ý¯ôSž¨RJ|¡Z|k.ÿζ¬Ņ¡N«Ð7‰½šÐÔZo­@'„™ŠÓÒÙó*invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: î™Éöyy¿G!—•E¦ŸžxO/ó™õpÿÒ¤‡ØgaÿGjë’G}eéÿ—.{    ,]u;éyÉu3Þºgnv-ÐEµnØe)×Eænf—ê"`´xŠŒo%ô©ý÷õf±_½ÉÌÙë–Žß{çKFô špCƒ}Îé„™(gæQO÷\ò€õŒÙwˏ«‹ó¢÷ (™ç?•{¢ó.ÎÊ—ün^f/;3õ;1–©6_Í«Ð[ýÙ|ùÃ÷Õá÷[úË>S^/Ï\‹6T¹áÕØÞÛϯYþœ_í­ÁÒÕVÕù@̯Uf–û²-=ö–}«õý¢ýý½ne{¥ÆI ¦±yÛùäÁÝÁ*½¬&!}`ifV]„tÑy¤ù_ýÌXôAeºaÖGÝWç£,Í{
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: –¹:(+ Òºâñ€)“Íu7ÇÊa-{S62ùŸé¦«´n;·Wv–H‹&Ébeʁ¹,6uDë'ê=!X‹Oyˆv¥Á@èVl´L†õÞ™IüÕ%óŽv‘AV…PùPÏíî?ÚÝ´»ÿhwÿÑîþ£ÝýG»ûv÷íîúíîWo”‰ëåÈijZPº0偿mœžüi5nùºlMÌF̺]ü¤N~þ“    Е΃¯Z>ŠßêÆö»WŸR>â1Õ­´¢™®kà¼6³Ì'Kÿ«ËÃÜG›Æ¬Òïû»ÏÖûb°ÕÍT[7Üg±d-ÓH~Õc,¿nÕtÿZ'zñÁ´A,Ó”4/Yt#YiÙš'—
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: V^«ÚäXU|wÅTGj`f+•ùKŠHðØüm™Ñêü/´vÐxw«¿5ú+·æÓËfºÙ›    œúŽnþƒ¹¾õ*Z7dT?½ˆ¿WV¢ÃÉã<¨‰aÕ¿þ7invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Host: www.google-analytics.com
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( )
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept: image/png,image/*;q=0.8,*/*;q=0.5
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Encoding: gzip,deflate
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: 115
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: keep-alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Referer: http://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=view&target=http.cap
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Date: Wed, 23 Mar 2011 13:38:44 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Length: 35
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Pragma: no-cache
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Expires: Wed, 19 Apr 2000 11:43:00 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Last-Modified: Wed, 21 Jan 2004 19:51:30 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Type: image/gif
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Server: GFE/2.0
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: GIF89ainvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Host: wiki.wireshark.org
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( )
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Encoding: gzip,deflate
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: 115
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: keep-alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Referer: http://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=view&target=http.cap
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Cookie: __utma=44101410.762173423.1300913753.1301022551.1301028272.3; __utmz=44101410.1300913753.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=87653150.565203656.1301022264.1301022264.1301022264.1; __utmc=87653150; __utmz=87653150.1301022264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=44101410; __utmb=44101410
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Date: Fri, 25 Mar 2011 04:45:05 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Server: Apache
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Vary: Cookie,User-Agent,Accept-Language
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Expires: Thu, 25 Mar 2010 04:45:05 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Disposition: inline; filename="http.cap"
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Last-Modified: Fri, 28 Jan 2005 14:25:21 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Length: 25803
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: timeout=15, max=99
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: Keep-Alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Type: application/cap
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Ôò¡invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Host: www.ethereal.com
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Language: en-us,en;q=0.5
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Encoding: gzip,deflate
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: 300
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: keep-alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Referer: http://www.ethereal.com/development.html
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: $K£@ìóinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Date: Thu, 13 May 2004 10:17:12 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Server: Apache
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Last-Modified: Tue, 20 Apr 2004 13:17:00 GMT
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: ETag: "9a01a-4696-7e354b00"
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Accept-Rainvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Length: 18070
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Keep-Alive: timeout=15, max=100
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Connection: Keep-Alive
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: Content-Type: text/html; charset=ISO-8859-1
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <?xml version="1.0" encoding="UTF-8"?>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <!DOCTYPE html
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: "DTD/xhtml1-strict.dtd">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <head>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <title>Ethereal: Download</title>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <style type="text/css" media="all">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: @import url("mm/css/ethereal-3-0.css");
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </style>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </head>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <body>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <div class="top">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <tr>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td valign="middle" width="1">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <a href="/"><img class="logo" title="Ethereal home" src="mm/image/elogo-64-trans.gif" alt="" width="64" height="64"></img></a>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td align="left" valign="middle">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <h2>Ethereal</h2>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <h5 style="white-space: nowrap;">Download</h5>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td align="right">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <table style="margin-right: 10px;" cellspacing="0" cellpadding="0" border="0" summary="">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <form name="search" method="post" action="http://www.ethereal.com/cgi-bin/htsearch">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <tr>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <div class="topformtext">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: %K£@¶ãinvalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </div>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <input type="text" size="12" name="words">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <input type="hidden" name="config" value="ethereal">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </div>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: </td>
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <td valign="bottom">
invalid line in C:\Dokumente und Einstellungen\alpha78\Desktop\Neuer Ordner\quellen\TRICE.txt.htm: <input type="image" class="gobutton" src="mm/image/go-button.gif

Untitled PHP (14-Apr @ 15:40)

Syntax Highlighted Code

  1. Bonjour
  2.  
  3. Je Sabah est casse couille

Plain Code

Bonjour

Je Sabah est casse couille

Untitled PHP (3-Apr @ 22:34)

Syntax Highlighted Code

  1. fff

Plain Code

fff

Untitled PHP (30-Mar @ 15:54)

Syntax Highlighted Code

  1. header {  
  2.     width: 980px;  
  3.     background: hotpink;  
  4.     border: solid 1px #ccc;  
  5. [7 more lines...]

Plain Code

header {  
    width: 980px;  
    background: hotpink;  
    border: solid 1px #ccc;  
}  
  
footer {  
    width: 980px;  
    clear: both;  
    font-size: 10px;  
}  

Untitled PHP (19-Mar @ 23:04)

Syntax Highlighted Code

  1. //index.php
  2.  
  3. include ("../php/Company.php");
  4. $company = new Company();
  5. [14 more lines...]

Plain Code

//index.php

include ("../php/Company.php");
$company = new Company();
$company->addCompany($_POST['name'], $_POST['description'], "url1", "url2");

//Company.php

    public function addCompany($title, $description, $photo1, $photo2)
    {
        $this->title = $title;
        $this->description = $description;
        $this->photo1 = $photo1;
        $this->photo2 = $photo2;
        
        $query = "INSERT INTO `dawibo_companies` (`title`, `description`, `picture1`, `picture2`) VALUES ('".$this->title."', '".$this->description."', '".$this->photo1."', '".$this->photo2."')";

        mysqli_query($this->myDb, $query);
    }

Untitled PHP (4-Mar @ 21:27)

Syntax Highlighted Code

  1. <?php
  2. echo "test";

Plain Code

<?php
echo "test";

Allah (4-Mar @ 10:07)

Syntax Highlighted Code

  1. <?php
  2.   echo "Allah is the only God";
  3. ?>

Plain Code

<?php
  echo "Allah is the only God";
?>

Untitled PHP (21-Jan @ 10:05)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpInfo();
?>

Untitled PHP (13-Jan @ 10:31)

Syntax Highlighted Code

  1. <?PHP
  2.  
  3. echo "ghallo ghaylhords.nl";
  4.  
  5. ?>

Plain Code

<?PHP

echo "ghallo ghaylhords.nl";

?>

Untitled PHP (26-Nov @ 07:37)

mrgenixus

Syntax Highlighted Code

  1. <?php
  2.  
  3. class AbstractPostType{
  4.  
  5. [20 more lines...]

Plain Code

<?php 

class AbstractPostType{

    protected $_typeObj;
    protected $_metaObj;
    protected $_taxonomyObj;
    
    private names = array('label','singular_label',YADDA_YADDA);
    
    private $label = __('Portfolio');
    private $singular_label = 
     
    private function __construct(){
    
    }
    
    protected constructionHelper(){
        $args = array();
        foreach ($names as $name) {
            $args[$name] = $this->$name;
        }
        $this->typeObj = new customPostType($this->typeName,$args);
    }
}

Untitled PHP (9-Nov @ 21:13)

Syntax Highlighted Code

  1. function smarty_modifier_required(&$val) {
  2.   global $smarty;
  3.   //check if the output is empty;
  4.   if (empty($val)) {
  5. [6 more lines...]

Plain Code

function smarty_modifier_required(&$val) {
  global $smarty;
  //check if the output is empty;
  if (empty($val)) {
    $var_name = vname($val, $smarty->get_template_vars());
    //if so; write to the log, and trigger a php error
    $error_msg = "Empty variable, ".$name." in ...";
    trigger_error($error_msg, E_USER_ERROR);
  }
  return $val;
}

Untitled PHP (9-Nov @ 20:35)

Syntax Highlighted Code

  1. function _parse_var($var_expr)
  2.     {
  3.         $_has_math = false;
  4.         $_math_vars = preg_split('~('.$this->_dvar_math_regexp.'|'.$this->_qstr_regexp.')~', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE);
  5. [123 more lines...]

Plain Code

function _parse_var($var_expr)
    {
        $_has_math = false;
        $_math_vars = preg_split('~('.$this->_dvar_math_regexp.'|'.$this->_qstr_regexp.')~', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE);

        if(count($_math_vars) > 1) {
            $_first_var = "";
            $_complete_var = "";
            $_output = "";
            // simple check if there is any math, to stop recursion (due to modifiers with "xx % yy" as parameter)
            foreach($_math_vars as $_k => $_math_var) {
                $_math_var = $_math_vars[$_k];

                if(!empty($_math_var) || is_numeric($_math_var)) {
                    // hit a math operator, so process the stuff which came before it
                    if(preg_match('~^' . $this->_dvar_math_regexp . '$~', $_math_var)) {
                        $_has_math = true;
                        if(!empty($_complete_var) || is_numeric($_complete_var)) {
                            $_output .= $this->_parse_var($_complete_var);
                        }

                        // just output the math operator to php
                        $_output .= $_math_var;

                        if(empty($_first_var))
                            $_first_var = $_complete_var;

                        $_complete_var = "";
                    } else {
                        $_complete_var .= $_math_var;
                    }
                }
            }
            if($_has_math) {
                if(!empty($_complete_var) || is_numeric($_complete_var))
                    $_output .= $this->_parse_var($_complete_var);

                // get the modifiers working (only the last var from math + modifier is left)
                $var_expr = $_complete_var;
            }
        }

        // prevent cutting of first digit in the number (we _definitly_ got a number if the first char is a digit)
        if(is_numeric(substr($var_expr, 0, 1)))
            $_var_ref = $var_expr;
        else
            $_var_ref = substr($var_expr, 1);

        if(!$_has_math) {

            // get [foo] and .foo and ->foo and (...) pieces
            preg_match_all('~(?:^\w+)|' . $this->_obj_params_regexp . '|(?:' . $this->_var_bracket_regexp . ')|->\$?\w+|\.\$?\w+|\S+~', $_var_ref, $match);

            $_indexes = $match[0];
            $_var_name = array_shift($_indexes);

            /* Handle $smarty.* variable references as a special case. */
            if ($_var_name == 'smarty') {
                /*
                 * If the reference could be compiled, use the compiled output;
                 * otherwise, fall back on the $smarty variable generated at
                 * run-time.
                 */
                if (($smarty_ref = $this->_compile_smarty_ref($_indexes)) !== null) {
                    $_output = $smarty_ref;
                } else {
                    $_var_name = substr(array_shift($_indexes), 1);
                    $_output = "\$this->_smarty_vars['$_var_name']";
                }
            } elseif(is_numeric($_var_name) && is_numeric(substr($var_expr, 0, 1))) {
                // because . is the operator for accessing arrays thru inidizes we need to put it together again for floating point numbers
                if(count($_indexes) > 0)
                {
                    $_var_name .= implode("", $_indexes);
                    $_indexes = array();
                }
                $_output = $_var_name;
            } else {
                $_output = "\$this->_tpl_vars['$_var_name']";
            }

            foreach ($_indexes as $_index) {
                if (substr($_index, 0, 1) == '[') {
                    $_index = substr($_index, 1, -1);
                    if (is_numeric($_index)) {
                        $_output .= "[$_index]";
                    } elseif (substr($_index, 0, 1) == '$') {
                        if (strpos($_index, '.') !== false) {
                            $_output .= '[' . $this->_parse_var($_index) . ']';
                        } else {
                            $_output .= "[\$this->_tpl_vars['" . substr($_index, 1) . "']]";
                        }
                    } else {
                        $_var_parts = explode('.', $_index);
                        $_var_section = $_var_parts[0];
                        $_var_section_prop = isset($_var_parts[1]) ? $_var_parts[1] : 'index';
                        $_output .= "[\$this->_sections['$_var_section']['$_var_section_prop']]";
                    }
                } else if (substr($_index, 0, 1) == '.') {
                    if (substr($_index, 1, 1) == '$')
                        $_output .= "[\$this->_tpl_vars['" . substr($_index, 2) . "']]";
                    else
                        $_output .= "['" . substr($_index, 1) . "']";
                } else if (substr($_index,0,2) == '->') {
                    if(substr($_index,2,2) == '__') {
                        $this->_syntax_error('call to internal object members is not allowed', E_USER_ERROR, __FILE__, __LINE__);
                    } elseif($this->security && substr($_index, 2, 1) == '_') {
                        $this->_syntax_error('(secure) call to private object member is not allowed', E_USER_ERROR, __FILE__, __LINE__);
                    } elseif (substr($_index, 2, 1) == '$') {
                        if ($this->security) {
                            $this->_syntax_error('(secure) call to dynamic object member is not allowed', E_USER_ERROR, __FILE__, __LINE__);
                        } else {
                            $_output .= '->{(($_var=$this->_tpl_vars[\''.substr($_index,3).'\']) && substr($_var,0,2)!=\'__\') ? $_var : $this->trigger_error("cannot access property \\"$_var\\"")}';
                        }
                    } else {
                        $_output .= $_index;
                    }
                } elseif (substr($_index, 0, 1) == '(') {
                    $_index = $this->_parse_parenth_args($_index);
                    $_output .= $_index;
                } else {
                    $_output .= $_index;
                }
            }
        }

        return $_output;
    }

Untitled PHP (9-Nov @ 20:34)

Syntax Highlighted Code

  1. /**
  2.      * parse modifier chain into PHP code
  3.      *
  4.      * sets $output to parsed modified chain
  5. [62 more lines...]

Plain Code

/**
     * parse modifier chain into PHP code
     *
     * sets $output to parsed modified chain
     * @param string $output
     * @param string $modifier_string
     */
    function _parse_modifiers(&$output, $modifier_string)
    {
        preg_match_all('~\|(@?\w+)((?>:(?:'. $this->_qstr_regexp . '|[^|]+))*)~', '|' . $modifier_string, $_match);
        list(, $_modifiers, $modifier_arg_strings) = $_match;

        for ($_i = 0, $_for_max = count($_modifiers); $_i < $_for_max; $_i++) {
            $_modifier_name = $_modifiers[$_i];

            if($_modifier_name == 'smarty') {
                // skip smarty modifier
                continue;
            }

            preg_match_all('~:(' . $this->_qstr_regexp . '|[^:]+)~', $modifier_arg_strings[$_i], $_match);
            $_modifier_args = $_match[1];

            if (substr($_modifier_name, 0, 1) == '@') {
                $_map_array = false;
                $_modifier_name = substr($_modifier_name, 1);
            } else {
                $_map_array = true;
            }

            if (empty($this->_plugins['modifier'][$_modifier_name])
                && !$this->_get_plugin_filepath('modifier', $_modifier_name)
                && function_exists($_modifier_name)) {
                if ($this->security && !in_array($_modifier_name, $this->security_settings['MODIFIER_FUNCS'])) {
                    $this->_trigger_fatal_error("[plugin] (secure mode) modifier '$_modifier_name' is not allowed" , $this->_current_file, $this->_current_line_no, __FILE__, __LINE__);
                } else {
                    $this->_plugins['modifier'][$_modifier_name] = array($_modifier_name,  null, null, false);
                }
            }
            $this->_add_plugin('modifier', $_modifier_name);

            $this->_parse_vars_props($_modifier_args);

            if($_modifier_name == 'default') {
                // supress notifications of default modifier vars and args
                if(substr($output, 0, 1) == '$') {
                    $output = '@' . $output;
                }
                if(isset($_modifier_args[0]) && substr($_modifier_args[0], 0, 1) == '$') {
                    $_modifier_args[0] = '@' . $_modifier_args[0];
                }
            }
            if (count($_modifier_args) > 0)
                $_modifier_args = ', '.implode(', ', $_modifier_args);
            else
                $_modifier_args = '';

            if ($_map_array) {
                $output = "((is_array(\$_tmp=$output)) ? \$this->_run_mod_handler('$_modifier_name', true, \$_tmp$_modifier_args) : " . $this->_compile_plugin_call('modifier', $_modifier_name) . "(\$_tmp$_modifier_args))";

            } else {

                $output = $this->_compile_plugin_call('modifier', $_modifier_name)."($output$_modifier_args)";

            }
        }
    }

Untitled PHP (5-Nov @ 21:46)

Syntax Highlighted Code

  1. <?php
  2. $mysql=mysql_connect('localhost','root','') or error(1);
  3. mysql_select_db('blog',$mysql) or error(1);
  4. if(isset($_GET['page'])){
  5. [19 more lines...]

Plain Code

<?php
$mysql=mysql_connect('localhost','root','') or error(1);
mysql_select_db('blog',$mysql) or error(1);
if(isset($_GET['page'])){
switch($_GET['page']){
case 'faq':
echo file_get_contents('faq.php');
exit;
case 'debug':
echo file_get_contents('debug.php');
exit;
break;
case 'contact':
break;
case 'link':
break;
}
}
function error($a){
echo "<b>Site inaccessible.</b><br>";
if($a==1){echo mysql_error();}
exit();
}
?>

Untitled PHP (5-Nov @ 21:45)

Syntax Highlighted Code

  1. <?php
  2. $mysql=mysql_connect('localhost','root','') or error(1);
  3. mysql_select_db('blog',$mysql) or error(1);
  4.  
  5. [22 more lines...]

Plain Code

<?php
$mysql=mysql_connect('localhost','root','') or error(1);
mysql_select_db('blog',$mysql) or error(1);

if(isset($_GET['page'])){
    switch($_GET['page']){
        case 'faq':
            echo file_get_contents('faq.php');
            exit;
        case 'debug':
            echo file_get_contents('debug.php');
            exit;
            break;
        case 'contact':
            
            break;
        case 'link':
            
            break;
    }
}
function error($a){
    echo "<b>Site inaccessible.</b><br>";
    if($a==1){echo mysql_error();}
    exit();
}
?>

Untitled PHP (3-Nov @ 19:56)

Syntax Highlighted Code

  1. if ($referer = $this->getRequest()->getParam(Mage_Customer_Helper_Data::REFERER_QUERY_PARAM_NAME)) {
  2.                         $referer = Mage::helper('core')->urlDecode($referer);
  3.                         if ($this->_isUrlInternal($referer)) {
  4.                             $session->setBeforeAuthUrl($referer);
  5. [1 more lines...]

Plain Code

if ($referer = $this->getRequest()->getParam(Mage_Customer_Helper_Data::REFERER_QUERY_PARAM_NAME)) {
                        $referer = Mage::helper('core')->urlDecode($referer);
                        if ($this->_isUrlInternal($referer)) {
                            $session->setBeforeAuthUrl($referer);
                        }
                    }

Untitled PHP (25-Sep @ 07:20)

Syntax Highlighted Code

  1. <?php phpinfo(); ?>

Plain Code

<?php phpinfo(); ?>

Untitled PHP (21-Sep @ 20:53)

Syntax Highlighted Code

  1. <?php
  2.  
  3.     $test = "test";
  4.  
  5. ?>

Plain Code

<?php

    $test = "test";

?>

Untitled PHP (21-Sep @ 20:45)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $test = test
  4.  
  5. [3 more lines...]

Plain Code

<?php

$test = test


?>

Untitled PHP (7-Sep @ 22:00)

Syntax Highlighted Code

  1. This is the working code:
  2.  
  3. if($id > $pages) {
  4.     $end = $this->totalImages;
  5. [20 more lines...]

Plain Code

This is the working code:

if($id > $pages) {
    $end = $this->totalImages;
    $start = $this->totalImages - ($this->totalImages % $this->imgsPerPage);
} else if($id < 0) {
    echo 'ID is kleiner dan 0';
    return 0;
} else if($pages == $id){
    $end = $this->totalImages;
    $start = $this->totalImages - ($this->totalImages % $this->imgsPerPage);
}

but next code gives the else a higher priority

if($id > $pages) {
    $end = $this->totalImages;
    $start = $this->totalImages - ($this->totalImages % $this->imgsPerPage);
} else if($id < 0) {
    echo 'ID is kleiner dan 0';
    return 0;
} else{
    $end = $this->totalImages;
    $start = $this->totalImages - ($this->totalImages % $this->imgsPerPage);
}

Untitled PHP (27-Aug @ 09:59)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /**
  4.  * WordPress User Page
  5. [649 more lines...]

Plain Code

<?php

/**
 * WordPress User Page
 *
 * Handles authentication, registering, resetting passwords, forgot password,
 * and other user handling.
 *
 * @package WordPress
 */

/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );

// Redirect to https login if forced to use SSL
if ( force_ssl_admin() && !is_ssl() ) {
    if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
        wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
        exit();
    } else {
        wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
        exit();
    }
}

/**
 * Outputs the header for the login page.
 *
 * @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
 *        header.
 * @uses apply_filters() Calls 'login_headerurl' for the top login link.
 * @uses apply_filters() Calls 'login_headertitle' for the top login title.
 * @uses apply_filters() Calls 'login_message' on the message to display in the
 *        header.
 * @uses $error The error global, which is checked for displaying errors.
 *
 * @param string $title Optional. WordPress Log In Page title to display in
 *        <title/> element.
 * @param string $message Optional. Message to display in header.
 * @param WP_Error $wp_error Optional. WordPress Error Object
 */
function login_header($title = 'Log In', $message = '', $wp_error = '') {
    global $error, $is_iphone, $interim_login, $current_site;

    // Don't index any of these forms
    add_filter( 'pre_option_blog_public', '__return_zero' );
    add_action( 'login_head', 'noindex' );

    if ( empty($wp_error) )
        $wp_error = new WP_Error();

    // Shake it!
    $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
    $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );

    if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
        add_action( 'login_head', 'wp_shake_js', 12 );

    ?>
<!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" <?php language_attributes(); ?>>
<head>
    <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
    wp_admin_css( 'login', true );
    wp_admin_css( 'colors-fresh', true );

    if ( $is_iphone ) { ?>
    <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
    <style type="text/css" media="screen">
    form { margin-left: 0px; }
    #login { margin-top: 20px; }
    </style>
<?php
    } elseif ( isset($interim_login) && $interim_login ) { ?>
    <style type="text/css" media="all">
    .login #login { margin: 20px auto; }
    </style>
<?php
    }

    do_action('login_head'); ?>
</head>
<body class="login">
<?php   if ( !is_multisite() ) { ?>
<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
<?php   } else { ?>
<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
<?php   }

    $message = apply_filters('login_message', $message);
    if ( !empty( $message ) ) echo $message . "\n";

    // Incase a plugin uses $error rather than the $errors object
    if ( !empty( $error ) ) {
        $wp_error->add('error', $error);
        unset($error);
    }

    if ( $wp_error->get_error_code() ) {
        $errors = '';
        $messages = '';
        foreach ( $wp_error->get_error_codes() as $code ) {
            $severity = $wp_error->get_error_data($code);
            foreach ( $wp_error->get_error_messages($code) as $error ) {
                if ( 'message' == $severity )
                    $messages .= '    ' . $error . "<br />\n";
                else
                    $errors .= '    ' . $error . "<br />\n";
            }
        }
        if ( !empty($errors) )
            echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";
        if ( !empty($messages) )
            echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
    }
} // End of login_header()
function wp_shake_js() {
    global $is_iphone;
    if ( $is_iphone )
        return;
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
function s(id,pos){g(id).left=pos+'px';}
function g(id){return document.getElementById(id).style;}
function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
</script>
<?php
}

/**
 * Handles sending password retrieval email to user.
 *
 * @uses $wpdb WordPress Database object
 *
 * @return bool|WP_Error True: when finish. WP_Error on error
 */
function retrieve_password() {
    global $wpdb, $current_site;

    $errors = new WP_Error();

    if ( empty( $_POST['user_login'] ) && empty( $_POST['user_email'] ) )
        $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));

    if ( strpos($_POST['user_login'], '@') ) {
        $user_data = get_user_by_email(trim($_POST['user_login']));
        if ( empty($user_data) )
            $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
    } else {
        $login = trim($_POST['user_login']);
        $user_data = get_userdatabylogin($login);
    }

    do_action('lostpassword_post');

    if ( $errors->get_error_code() )
        return $errors;

    if ( !$user_data ) {
        $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
        return $errors;
    }

    // redefining user_login ensures we return the right case in the email
    $user_login = $user_data->user_login;
    $user_email = $user_data->user_email;

    do_action('retreive_password', $user_login);  // Misspelled and deprecated
    do_action('retrieve_password', $user_login);

    $allow = apply_filters('allow_password_reset', true, $user_data->ID);

    if ( ! $allow )
        return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
    else if ( is_wp_error($allow) )
        return $allow;

    $key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login));
    if ( empty($key) ) {
        // Generate something random for a key...
        $key = wp_generate_password(20, false);
        do_action('retrieve_password_key', $user_login, $key);
        // Now insert the new md5 key into the db
        $wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login));
    }
    $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
    $message .= network_site_url() . "\r\n\r\n";
    $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";

    if ( is_multisite() )
        $blogname = $GLOBALS['current_site']->site_name;
    else
        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
        // we want to reverse this for the plain text arena of emails.
        $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

    $title = sprintf( __('[%s] Password Reset'), $blogname );

    $title = apply_filters('retrieve_password_title', $title);
    $message = apply_filters('retrieve_password_message', $message, $key);

    if ( $message && !wp_mail($user_email, $title, $message) )
        wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );

    return true;
}

/**
 * Handles resetting the user's password.
 *
 * @uses $wpdb WordPress Database object
 *
 * @param string $key Hash to validate sending user's password
 * @return bool|WP_Error
 */
function reset_password($key, $login) {
    global $wpdb;

    $key = preg_replace('/[^a-z0-9]/i', '', $key);

    if ( empty( $key ) || !is_string( $key ) )
        return new WP_Error('invalid_key', __('Invalid key'));

    if ( empty($login) || !is_string($login) )
        return new WP_Error('invalid_key', __('Invalid key'));

    $user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_activation_key = %s AND user_login = %s", $key, $login));
    if ( empty( $user ) )
        return new WP_Error('invalid_key', __('Invalid key'));

    // Generate something random for a password...
    $new_pass = wp_generate_password();

    do_action('password_reset', $user, $new_pass);

    wp_set_password($new_pass, $user->ID);
    update_user_option($user->ID, 'default_password_nag', true, true); //Set up the Password change nag.
    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
    $message .= site_url('wp-login.php', 'login') . "\r\n";

    if ( is_multisite() )
        $blogname = $GLOBALS['current_site']->site_name;
    else
        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
        // we want to reverse this for the plain text arena of emails.
        $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

    $title = sprintf( __('[%s] Your new password'), $blogname );

    $title = apply_filters('password_reset_title', $title);
    $message = apply_filters('password_reset_message', $message, $new_pass);

    if ( $message && !wp_mail($user->user_email, $title, $message) )
          wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );

    wp_password_change_notification($user);

    return true;
}

/**
 * Handles registering a new user.
 *
 * @param string $user_login User's username for logging in
 * @param string $user_email User's email address to send password and add
 * @return int|WP_Error Either user's ID or error on failure.
 */
function register_new_user( $user_login, $user_email ) {
    $errors = new WP_Error();

    $sanitized_user_login = sanitize_user( $user_login );
    $user_email = apply_filters( 'user_registration_email', $user_email );

    // Check the username
    if ( $sanitized_user_login == '' ) {
        $errors->add( 'empty_username', __( '<strong>ERROR</strong>: Please enter a username.' ) );
    } elseif ( ! validate_username( $user_login ) ) {
        $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
        $sanitized_user_login = '';
    } elseif ( username_exists( $sanitized_user_login ) ) {
        $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered, please choose another one.' ) );
    }

    // Check the e-mail address
    if ( $user_email == '' ) {
        $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address.' ) );
    } elseif ( ! is_email( $user_email ) ) {
        $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct.' ) );
        $user_email = '';
    } elseif ( email_exists( $user_email ) ) {
        $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) );
    }

    do_action( 'register_post', $sanitized_user_login, $user_email, $errors );

    $errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );

    if ( $errors->get_error_code() )
        return $errors;

    $user_pass = wp_generate_password();
    $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
    if ( ! $user_id ) {
        $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );
        return $errors;
    }

    update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.

    wp_new_user_notification( $user_id, $user_pass );

    return $user_id;
}

//
// Main
//

$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';
$errors = new WP_Error();

if ( isset($_GET['key']) )
    $action = 'resetpass';

// validate action so as to default to the login screen
if ( !in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login'), true) && false === has_filter('login_form_' . $action) )
    $action = 'login';

nocache_headers();

header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));

if ( defined('RELOCATE') ) { // Move flag is set
    if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
        $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );

    $schema = is_ssl() ? 'https://' : 'http://';
    if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
        update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
}

//Set a cookie now to see if they are supported by the browser.
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH )
    setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

// allow plugins to override the default actions, and to add extra actions if they want
do_action('login_form_' . $action);

$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
switch ($action) {

case 'logout' :
    check_admin_referer('log-out');
    wp_logout();

    $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?loggedout=true';
    wp_safe_redirect( $redirect_to );
    exit();

break;

case 'lostpassword' :
case 'retrievepassword' :
    if ( $http_post ) {
        $errors = retrieve_password();
        if ( !is_wp_error($errors) ) {
            $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm';
            wp_safe_redirect( $redirect_to );
            exit();
        }
    }

    if ( isset($_GET['error']) && 'invalidkey' == $_GET['error'] ) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.'));
    $redirect_to = apply_filters( 'lostpassword_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );

    do_action('lost_password');
    login_header(__('Lost Password'), '<p class="message">' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '</p>', $errors);

    $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : '';

?>

<form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username or E-mail:') ?><br />
        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    </p>
<?php do_action('lostpassword_form'); ?>
    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
</form>

<p id="nav">
<?php if (get_option('users_can_register')) : ?>
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a>
<?php else : ?>
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a>
<?php endif; ?>
</p>

</div>

<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>

<script type="text/javascript">
try{document.getElementById('user_login').focus();}catch(e){}
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php
break;

case 'resetpass' :
case 'rp' :
    $errors = reset_password($_GET['key'], $_GET['login']);

    if ( ! is_wp_error($errors) ) {
        wp_redirect('wp-login.php?checkemail=newpass');
        exit();
    }

    wp_redirect('wp-login.php?action=lostpassword&error=invalidkey');
    exit();

break;

case 'register' :
    if ( is_multisite() ) {
        // Multisite uses wp-signup.php
        wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
        exit;
    }

    if ( !get_option('users_can_register') ) {
        wp_redirect('wp-login.php?registration=disabled');
        exit();
    }

    $user_login = '';
    $user_email = '';
    if ( $http_post ) {
        require_once( ABSPATH . WPINC . '/registration.php');

        $user_login = $_POST['user_login'];
        $user_email = $_POST['user_email'];
        $errors = register_new_user($user_login, $user_email);
        if ( !is_wp_error($errors) ) {
            $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
            wp_safe_redirect( $redirect_to );
            exit();
        }
    }

    $redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
    login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
?>

<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username') ?><br />
        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
    </p>
    <p>
        <label><?php _e('E-mail') ?><br />
        <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
    </p>
<?php do_action('register_form'); ?>
    <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
    <br class="clear" />
    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p>
</form>

<p id="nav">
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
</p>

</div>

<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>

<script type="text/javascript">
try{document.getElementById('user_login').focus();}catch(e){}
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php
break;

case 'login' :
default:
    $secure_cookie = '';
    $interim_login = isset($_REQUEST['interim-login']);

    // If the user wants ssl but the session is not ssl, force a secure cookie.
    if ( !empty($_POST['log']) && !force_ssl_admin() ) {
        $user_name = sanitize_user($_POST['log']);
        if ( $user = get_userdatabylogin($user_name) ) {
            if ( get_user_option('use_ssl', $user->ID) ) {
                $secure_cookie = true;
                force_ssl_admin(true);
            }
        }
    }

    if ( isset( $_REQUEST['redirect_to'] ) ) {
        $redirect_to = $_REQUEST['redirect_to'];
        // Redirect to https if user wants ssl
        if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
            $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
    } else {
        $redirect_to = admin_url();
    }

    $reauth = empty($_REQUEST['reauth']) ? false : true;

    // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
    // cookie and redirect back to the referring non-secure admin page.  This allows logins to always be POSTed over SSL while allowing the user to choose visiting
    // the admin via http or https.
    if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
        $secure_cookie = false;

    $user = wp_signon('', $secure_cookie);

    $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);

    if ( !is_wp_error($user) && !$reauth ) {
        if ( $interim_login ) {
            $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
            login_header( '', $message ); ?>
            <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script>
            <p class="alignright">
            <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p>
            </div></body></html>
<?php        exit;
        }
        // If the user can't edit posts, send them to their profile.
        if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
            $redirect_to = admin_url('profile.php');
        wp_safe_redirect($redirect_to);
        exit();
    }

    $errors = $user;
    // Clear errors if loggedout is set.
    if ( !empty($_GET['loggedout']) || $reauth )
        $errors = new WP_Error();

    // If cookies are disabled we can't log in even with a valid user+pass
    if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
        $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));

    // Some parts of this script use the main login form to display a message
    if        ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )
        $errors->add('loggedout', __('You are now logged out.'), 'message');
    elseif    ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
        $errors->add('registerdisabled', __('User registration is currently not allowed.'));
    elseif    ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
        $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
    elseif    ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
        $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
    elseif    ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
        $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
    elseif    ( $interim_login )
        $errors->add('expired', __('Your session has expired. Please log-in again.'), 'message');

    // Clear any stale cookies.
    if ( $reauth )
        wp_clear_auth_cookie();

    login_header(__('Log In'), '', $errors);

    if ( isset($_POST['log']) )
        $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : '';
    $rememberme = ! empty( $_POST['rememberme'] );
?>

<form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username') ?><br />
        <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    </p>
    <p>
        <label><?php _e('Password') ?><br />
        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    </p>
<?php do_action('login_form'); ?>
    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    <p class="submit">
        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
<?php    if ( $interim_login ) { ?>
        <input type="hidden" name="interim-login" value="1" />
<?php    } else { ?>
        <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
<?php     } ?>
        <input type="hidden" name="testcookie" value="1" />
    </p>
</form>

<?php if ( !$interim_login ) { ?>
<p id="nav">
<?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
<?php elseif ( get_option('users_can_register') ) : ?>
<a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
<?php else : ?>
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
<?php endif; ?>
</p>
</div>
<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
<?php } else { ?>
</div>
<?php } ?>

<script type="text/javascript">
function wp_attempt_focus(){
setTimeout( function(){ try{
<?php if ( $user_login || $interim_login ) { ?>
d = document.getElementById('user_pass');
<?php } else { ?>
d = document.getElementById('user_login');
<?php } ?>
d.value = '';
d.focus();
} catch(e){}
}, 200);
}

<?php if ( !$error ) { ?>
wp_attempt_focus();
<?php } ?>
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php

break;
} // end action switch
?>

Untitled PHP (27-Aug @ 09:58)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /**
  4.  * WordPress User Page
  5. [649 more lines...]

Plain Code

<?php

/**
 * WordPress User Page
 *
 * Handles authentication, registering, resetting passwords, forgot password,
 * and other user handling.
 *
 * @package WordPress
 */

/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );

// Redirect to https login if forced to use SSL
if ( force_ssl_admin() && !is_ssl() ) {
    if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
        wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
        exit();
    } else {
        wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
        exit();
    }
}

/**
 * Outputs the header for the login page.
 *
 * @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
 *        header.
 * @uses apply_filters() Calls 'login_headerurl' for the top login link.
 * @uses apply_filters() Calls 'login_headertitle' for the top login title.
 * @uses apply_filters() Calls 'login_message' on the message to display in the
 *        header.
 * @uses $error The error global, which is checked for displaying errors.
 *
 * @param string $title Optional. WordPress Log In Page title to display in
 *        <title/> element.
 * @param string $message Optional. Message to display in header.
 * @param WP_Error $wp_error Optional. WordPress Error Object
 */
function login_header($title = 'Log In', $message = '', $wp_error = '') {
    global $error, $is_iphone, $interim_login, $current_site;

    // Don't index any of these forms
    add_filter( 'pre_option_blog_public', '__return_zero' );
    add_action( 'login_head', 'noindex' );

    if ( empty($wp_error) )
        $wp_error = new WP_Error();

    // Shake it!
    $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
    $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );

    if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
        add_action( 'login_head', 'wp_shake_js', 12 );

    ?>
<!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" <?php language_attributes(); ?>>
<head>
    <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
    wp_admin_css( 'login', true );
    wp_admin_css( 'colors-fresh', true );

    if ( $is_iphone ) { ?>
    <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
    <style type="text/css" media="screen">
    form { margin-left: 0px; }
    #login { margin-top: 20px; }
    </style>
<?php
    } elseif ( isset($interim_login) && $interim_login ) { ?>
    <style type="text/css" media="all">
    .login #login { margin: 20px auto; }
    </style>
<?php
    }

    do_action('login_head'); ?>
</head>
<body class="login">
<?php   if ( !is_multisite() ) { ?>
<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
<?php   } else { ?>
<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
<?php   }

    $message = apply_filters('login_message', $message);
    if ( !empty( $message ) ) echo $message . "\n";

    // Incase a plugin uses $error rather than the $errors object
    if ( !empty( $error ) ) {
        $wp_error->add('error', $error);
        unset($error);
    }

    if ( $wp_error->get_error_code() ) {
        $errors = '';
        $messages = '';
        foreach ( $wp_error->get_error_codes() as $code ) {
            $severity = $wp_error->get_error_data($code);
            foreach ( $wp_error->get_error_messages($code) as $error ) {
                if ( 'message' == $severity )
                    $messages .= '    ' . $error . "<br />\n";
                else
                    $errors .= '    ' . $error . "<br />\n";
            }
        }
        if ( !empty($errors) )
            echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";
        if ( !empty($messages) )
            echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
    }
} // End of login_header()
function wp_shake_js() {
    global $is_iphone;
    if ( $is_iphone )
        return;
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
function s(id,pos){g(id).left=pos+'px';}
function g(id){return document.getElementById(id).style;}
function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
</script>
<?php
}

/**
 * Handles sending password retrieval email to user.
 *
 * @uses $wpdb WordPress Database object
 *
 * @return bool|WP_Error True: when finish. WP_Error on error
 */
function retrieve_password() {
    global $wpdb, $current_site;

    $errors = new WP_Error();

    if ( empty( $_POST['user_login'] ) && empty( $_POST['user_email'] ) )
        $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));

    if ( strpos($_POST['user_login'], '@') ) {
        $user_data = get_user_by_email(trim($_POST['user_login']));
        if ( empty($user_data) )
            $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
    } else {
        $login = trim($_POST['user_login']);
        $user_data = get_userdatabylogin($login);
    }

    do_action('lostpassword_post');

    if ( $errors->get_error_code() )
        return $errors;

    if ( !$user_data ) {
        $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
        return $errors;
    }

    // redefining user_login ensures we return the right case in the email
    $user_login = $user_data->user_login;
    $user_email = $user_data->user_email;

    do_action('retreive_password', $user_login);  // Misspelled and deprecated
    do_action('retrieve_password', $user_login);

    $allow = apply_filters('allow_password_reset', true, $user_data->ID);

    if ( ! $allow )
        return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
    else if ( is_wp_error($allow) )
        return $allow;

    $key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login));
    if ( empty($key) ) {
        // Generate something random for a key...
        $key = wp_generate_password(20, false);
        do_action('retrieve_password_key', $user_login, $key);
        // Now insert the new md5 key into the db
        $wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login));
    }
    $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
    $message .= network_site_url() . "\r\n\r\n";
    $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";

    if ( is_multisite() )
        $blogname = $GLOBALS['current_site']->site_name;
    else
        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
        // we want to reverse this for the plain text arena of emails.
        $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

    $title = sprintf( __('[%s] Password Reset'), $blogname );

    $title = apply_filters('retrieve_password_title', $title);
    $message = apply_filters('retrieve_password_message', $message, $key);

    if ( $message && !wp_mail($user_email, $title, $message) )
        wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );

    return true;
}

/**
 * Handles resetting the user's password.
 *
 * @uses $wpdb WordPress Database object
 *
 * @param string $key Hash to validate sending user's password
 * @return bool|WP_Error
 */
function reset_password($key, $login) {
    global $wpdb;

    $key = preg_replace('/[^a-z0-9]/i', '', $key);

    if ( empty( $key ) || !is_string( $key ) )
        return new WP_Error('invalid_key', __('Invalid key'));

    if ( empty($login) || !is_string($login) )
        return new WP_Error('invalid_key', __('Invalid key'));

    $user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_activation_key = %s AND user_login = %s", $key, $login));
    if ( empty( $user ) )
        return new WP_Error('invalid_key', __('Invalid key'));

    // Generate something random for a password...
    $new_pass = wp_generate_password();

    do_action('password_reset', $user, $new_pass);

    wp_set_password($new_pass, $user->ID);
    update_user_option($user->ID, 'default_password_nag', true, true); //Set up the Password change nag.
    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
    $message .= site_url('wp-login.php', 'login') . "\r\n";

    if ( is_multisite() )
        $blogname = $GLOBALS['current_site']->site_name;
    else
        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
        // we want to reverse this for the plain text arena of emails.
        $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

    $title = sprintf( __('[%s] Your new password'), $blogname );

    $title = apply_filters('password_reset_title', $title);
    $message = apply_filters('password_reset_message', $message, $new_pass);

    if ( $message && !wp_mail($user->user_email, $title, $message) )
          wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );

    wp_password_change_notification($user);

    return true;
}

/**
 * Handles registering a new user.
 *
 * @param string $user_login User's username for logging in
 * @param string $user_email User's email address to send password and add
 * @return int|WP_Error Either user's ID or error on failure.
 */
function register_new_user( $user_login, $user_email ) {
    $errors = new WP_Error();

    $sanitized_user_login = sanitize_user( $user_login );
    $user_email = apply_filters( 'user_registration_email', $user_email );

    // Check the username
    if ( $sanitized_user_login == '' ) {
        $errors->add( 'empty_username', __( '<strong>ERROR</strong>: Please enter a username.' ) );
    } elseif ( ! validate_username( $user_login ) ) {
        $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
        $sanitized_user_login = '';
    } elseif ( username_exists( $sanitized_user_login ) ) {
        $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered, please choose another one.' ) );
    }

    // Check the e-mail address
    if ( $user_email == '' ) {
        $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address.' ) );
    } elseif ( ! is_email( $user_email ) ) {
        $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct.' ) );
        $user_email = '';
    } elseif ( email_exists( $user_email ) ) {
        $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) );
    }

    do_action( 'register_post', $sanitized_user_login, $user_email, $errors );

    $errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );

    if ( $errors->get_error_code() )
        return $errors;

    $user_pass = wp_generate_password();
    $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
    if ( ! $user_id ) {
        $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );
        return $errors;
    }

    update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.

    wp_new_user_notification( $user_id, $user_pass );

    return $user_id;
}

//
// Main
//

$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';
$errors = new WP_Error();

if ( isset($_GET['key']) )
    $action = 'resetpass';

// validate action so as to default to the login screen
if ( !in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login'), true) && false === has_filter('login_form_' . $action) )
    $action = 'login';

nocache_headers();

header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));

if ( defined('RELOCATE') ) { // Move flag is set
    if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
        $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );

    $schema = is_ssl() ? 'https://' : 'http://';
    if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
        update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
}

//Set a cookie now to see if they are supported by the browser.
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH )
    setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

// allow plugins to override the default actions, and to add extra actions if they want
do_action('login_form_' . $action);

$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
switch ($action) {

case 'logout' :
    check_admin_referer('log-out');
    wp_logout();

    $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?loggedout=true';
    wp_safe_redirect( $redirect_to );
    exit();

break;

case 'lostpassword' :
case 'retrievepassword' :
    if ( $http_post ) {
        $errors = retrieve_password();
        if ( !is_wp_error($errors) ) {
            $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm';
            wp_safe_redirect( $redirect_to );
            exit();
        }
    }

    if ( isset($_GET['error']) && 'invalidkey' == $_GET['error'] ) $errors->add('invalidkey', __('Sorry, that key does not appear to be valid.'));
    $redirect_to = apply_filters( 'lostpassword_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );

    do_action('lost_password');
    login_header(__('Lost Password'), '<p class="message">' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '</p>', $errors);

    $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : '';

?>

<form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username or E-mail:') ?><br />
        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    </p>
<?php do_action('lostpassword_form'); ?>
    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
</form>

<p id="nav">
<?php if (get_option('users_can_register')) : ?>
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a>
<?php else : ?>
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a>
<?php endif; ?>
</p>

</div>

<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>

<script type="text/javascript">
try{document.getElementById('user_login').focus();}catch(e){}
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php
break;

case 'resetpass' :
case 'rp' :
    $errors = reset_password($_GET['key'], $_GET['login']);

    if ( ! is_wp_error($errors) ) {
        wp_redirect('wp-login.php?checkemail=newpass');
        exit();
    }

    wp_redirect('wp-login.php?action=lostpassword&error=invalidkey');
    exit();

break;

case 'register' :
    if ( is_multisite() ) {
        // Multisite uses wp-signup.php
        wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
        exit;
    }

    if ( !get_option('users_can_register') ) {
        wp_redirect('wp-login.php?registration=disabled');
        exit();
    }

    $user_login = '';
    $user_email = '';
    if ( $http_post ) {
        require_once( ABSPATH . WPINC . '/registration.php');

        $user_login = $_POST['user_login'];
        $user_email = $_POST['user_email'];
        $errors = register_new_user($user_login, $user_email);
        if ( !is_wp_error($errors) ) {
            $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
            wp_safe_redirect( $redirect_to );
            exit();
        }
    }

    $redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
    login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
?>

<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username') ?><br />
        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
    </p>
    <p>
        <label><?php _e('E-mail') ?><br />
        <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
    </p>
<?php do_action('register_form'); ?>
    <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
    <br class="clear" />
    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p>
</form>

<p id="nav">
<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
</p>

</div>

<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>

<script type="text/javascript">
try{document.getElementById('user_login').focus();}catch(e){}
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php
break;

case 'login' :
default:
    $secure_cookie = '';
    $interim_login = isset($_REQUEST['interim-login']);

    // If the user wants ssl but the session is not ssl, force a secure cookie.
    if ( !empty($_POST['log']) && !force_ssl_admin() ) {
        $user_name = sanitize_user($_POST['log']);
        if ( $user = get_userdatabylogin($user_name) ) {
            if ( get_user_option('use_ssl', $user->ID) ) {
                $secure_cookie = true;
                force_ssl_admin(true);
            }
        }
    }

    if ( isset( $_REQUEST['redirect_to'] ) ) {
        $redirect_to = $_REQUEST['redirect_to'];
        // Redirect to https if user wants ssl
        if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
            $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
    } else {
        $redirect_to = admin_url();
    }

    $reauth = empty($_REQUEST['reauth']) ? false : true;

    // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
    // cookie and redirect back to the referring non-secure admin page.  This allows logins to always be POSTed over SSL while allowing the user to choose visiting
    // the admin via http or https.
    if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
        $secure_cookie = false;

    $user = wp_signon('', $secure_cookie);

    $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);

    if ( !is_wp_error($user) && !$reauth ) {
        if ( $interim_login ) {
            $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
            login_header( '', $message ); ?>
            <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script>
            <p class="alignright">
            <input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p>
            </div></body></html>
<?php        exit;
        }
        // If the user can't edit posts, send them to their profile.
        if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
            $redirect_to = admin_url('profile.php');
        wp_safe_redirect($redirect_to);
        exit();
    }

    $errors = $user;
    // Clear errors if loggedout is set.
    if ( !empty($_GET['loggedout']) || $reauth )
        $errors = new WP_Error();

    // If cookies are disabled we can't log in even with a valid user+pass
    if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
        $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));

    // Some parts of this script use the main login form to display a message
    if        ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )
        $errors->add('loggedout', __('You are now logged out.'), 'message');
    elseif    ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
        $errors->add('registerdisabled', __('User registration is currently not allowed.'));
    elseif    ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
        $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
    elseif    ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
        $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
    elseif    ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
        $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
    elseif    ( $interim_login )
        $errors->add('expired', __('Your session has expired. Please log-in again.'), 'message');

    // Clear any stale cookies.
    if ( $reauth )
        wp_clear_auth_cookie();

    login_header(__('Log In'), '', $errors);

    if ( isset($_POST['log']) )
        $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : '';
    $rememberme = ! empty( $_POST['rememberme'] );
?>

<form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post">
    <p>
        <label><?php _e('Username') ?><br />
        <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    </p>
    <p>
        <label><?php _e('Password') ?><br />
        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    </p>
<?php do_action('login_form'); ?>
    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    <p class="submit">
        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
<?php    if ( $interim_login ) { ?>
        <input type="hidden" name="interim-login" value="1" />
<?php    } else { ?>
        <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
<?php     } ?>
        <input type="hidden" name="testcookie" value="1" />
    </p>
</form>

<?php if ( !$interim_login ) { ?>
<p id="nav">
<?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
<?php elseif ( get_option('users_can_register') ) : ?>
<a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> |
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
<?php else : ?>
<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
<?php endif; ?>
</p>
</div>
<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
<?php } else { ?>
</div>
<?php } ?>

<script type="text/javascript">
function wp_attempt_focus(){
setTimeout( function(){ try{
<?php if ( $user_login || $interim_login ) { ?>
d = document.getElementById('user_pass');
<?php } else { ?>
d = document.getElementById('user_login');
<?php } ?>
d.value = '';
d.focus();
} catch(e){}
}, 200);
}

<?php if ( !$error ) { ?>
wp_attempt_focus();
<?php } ?>
if(typeof wpOnload=='function')wpOnload();
</script>
</body>
</html>
<?php

break;
} // end action switch
?>

Untitled PHP (23-Aug @ 19:38)

Syntax Highlighted Code

  1. <?
  2.   echo "hola <br>dos.";
  3. ?>

Plain Code

<?
  echo "hola <br>dos.";
?>

Untitled PHP (23-Jun @ 18:35)

Syntax Highlighted Code

  1. <?php echo "Hello World";?>

Plain Code

<?php echo "Hello World";?>

Untitled PHP (3-Jun @ 12:31)

Syntax Highlighted Code

  1. while($rw=$r->fetch()) {
  2.         //new item
  3.         $rssItem=$channel->addChild('item');
  4.  
  5. [28 more lines...]

Plain Code

while($rw=$r->fetch()) {
        //new item
        $rssItem=$channel->addChild('item');

        //set title
        $rssItem->addChild('title',stripslashes(strip_tags($rw['nume'])));

        if ($type=='stiri') {
            //same link for all news
            $rssItem->addChild('link',$CFG['rss']['stiri']['link']);

            //description
            $rssItem->addChild(
                'description',
                substr(
                    strip_tags(
                        html_entity_decode(
                            stripslashes(
                                str_replace(
                                    array("\n\r","\r\n","\r"),
                                    "\n",
                                    $rw['descr']
                                )
                            ),
                            ENT_QUOTES,
                            'UTF-8'
                        )
                    ),
                    0,
                    $CFG['rss']['common']['textLimit']
                )
            );
        }

groups of 3 or 4 (27-May @ 23:16)

mrgenixus

Syntax Highlighted Code

  1. <?php
  2. for ($i = 1; $i < 50; $i++){
  3.     if ($total != 5 && $total > 2) {
  4.         $fours = ceil($total / 4) - ($threes = ($total % 4) ? (4 - ($total % 4)) : 0);
  5. [59 more lines...]

Plain Code

<?php 
for ($i = 1; $i < 50; $i++){
    if ($total != 5 && $total > 2) { 
        $fours = ceil($total / 4) - ($threes = ($total % 4) ? (4 - ($total % 4)) : 0);
        echo "$i = (4 x $fours) + (3 x $threes); check: " . ((3* $threes) + (4 * $fours)) . "\n";
    }
    else 
    {
        $fours = floor($i / 4); $threes = floor( ($remainder = ($i - (4 * $fours))) / 3);  
        echo "$i: (4x$fours) + (3x$threes) + $remainder = " . (($i == (4 * $fours + 3 * $threes + $remainer )) ? $i : 'invalid') . " : remainer invalid\n";
    }
}
?>
output: 

1: (4x0) + (3x0) + 1 = invalid : remainer invalid
2: (4x0) + (3x0) + 2 = invalid : remainer invalid
3: (4x0) + (3x1) + 0 = 3 : number is divisible by 3 plus 0 fours
4: (4x1) + (3x0) + 0 = 4 : number is divisible by 4 plus 0 threes
5: (4x1) + (3x0) + 1 = invalid : remainer invalid
6: (4x0) + (3x2) + 0 = 6 : number is divisible by 3 plus 0 fours
7: (4x1) + (3x1) + 0 = 7 : number is divisible by 3 plus 1 fours
8: (4x2) + (3x0) + 0 = 8 : number is divisible by 4 plus 0 threes
9: (4x0) + (3x3) + 0 = 9 : number is divisible by 3 plus 0 fours
10: (4x1) + (3x2) + 0 = 10 : number is divisible by 3 plus 1 fours
11: (4x2) + (3x1) + 0 = 11 : number is divisible by 3 plus 2 fours
12: (4x3) + (3x0) + 0 = 12 : number is divisible by 4 plus 0 threes
13: (4x1) + (3x3) + 0 = 13 : number is divisible by 3 plus 1 fours
14: (4x2) + (3x2) + 0 = 14 : number is divisible by 3 plus 2 fours
15: (4x0) + (3x5) + 0 = 15 : number is divisible by 3 plus 0 fours
16: (4x4) + (3x0) + 0 = 16 : number is divisible by 4 plus 0 threes
17: (4x2) + (3x3) + 0 = 17 : number is divisible by 3 plus 2 fours
18: (4x0) + (3x6) + 0 = 18 : number is divisible by 3 plus 0 fours
19: (4x1) + (3x5) + 0 = 19 : number is divisible by 3 plus 1 fours
20: (4x5) + (3x0) + 0 = 20 : number is divisible by 4 plus 0 threes
21: (4x0) + (3x7) + 0 = 21 : number is divisible by 3 plus 0 fours
22: (4x1) + (3x6) + 0 = 22 : number is divisible by 3 plus 1 fours
23: (4x2) + (3x5) + 0 = 23 : number is divisible by 3 plus 2 fours
24: (4x6) + (3x0) + 0 = 24 : number is divisible by 4 plus 0 threes
25: (4x1) + (3x7) + 0 = 25 : number is divisible by 3 plus 1 fours
26: (4x2) + (3x6) + 0 = 26 : number is divisible by 3 plus 2 fours
27: (4x0) + (3x9) + 0 = 27 : number is divisible by 3 plus 0 fours
28: (4x7) + (3x0) + 0 = 28 : number is divisible by 4 plus 0 threes
29: (4x2) + (3x7) + 0 = 29 : number is divisible by 3 plus 2 fours
30: (4x0) + (3x10) + 0 = 30 : number is divisible by 3 plus 0 fours
31: (4x1) + (3x9) + 0 = 31 : number is divisible by 3 plus 1 fours
32: (4x8) + (3x0) + 0 = 32 : number is divisible by 4 plus 0 threes
33: (4x0) + (3x11) + 0 = 33 : number is divisible by 3 plus 0 fours
34: (4x1) + (3x10) + 0 = 34 : number is divisible by 3 plus 1 fours
35: (4x2) + (3x9) + 0 = 35 : number is divisible by 3 plus 2 fours
36: (4x9) + (3x0) + 0 = 36 : number is divisible by 4 plus 0 threes
37: (4x1) + (3x11) + 0 = 37 : number is divisible by 3 plus 1 fours
38: (4x2) + (3x10) + 0 = 38 : number is divisible by 3 plus 2 fours
39: (4x0) + (3x13) + 0 = 39 : number is divisible by 3 plus 0 fours
40: (4x10) + (3x0) + 0 = 40 : number is divisible by 4 plus 0 threes
41: (4x2) + (3x11) + 0 = 41 : number is divisible by 3 plus 2 fours
42: (4x0) + (3x14) + 0 = 42 : number is divisible by 3 plus 0 fours
43: (4x1) + (3x13) + 0 = 43 : number is divisible by 3 plus 1 fours
44: (4x11) + (3x0) + 0 = 44 : number is divisible by 4 plus 0 threes
45: (4x0) + (3x15) + 0 = 45 : number is divisible by 3 plus 0 fours
46: (4x1) + (3x14) + 0 = 46 : number is divisible by 3 plus 1 fours
47: (4x2) + (3x13) + 0 = 47 : number is divisible by 3 plus 2 fours
48: (4x12) + (3x0) + 0 = 48 : number is divisible by 4 plus 0 threes
49: (4x1) + (3x15) + 0 = 49 : number is divisible by 3 plus 1 fours

Untitled PHP (21-May @ 12:42)

Syntax Highlighted Code

  1. echo "Hello World";

Plain Code

echo "Hello World";

Untitled PHP (17-May @ 23:14)

mrgenixus

Syntax Highlighted Code

  1. <?php if(is_front_page() and is_page()):
  2. $thisPage = $post
  3. ?>
  4. <h2>Recent Posts</h2>
  5. [6 more lines...]

Plain Code

<?php if(is_front_page() and is_page()): 
$thisPage = $post
?>
<h2>Recent Posts</h2>
<ul>
<?php foreach(wp_get_recent_posts('numberposts=5') as $post): 
setup_postdata($post); ?>
<li><a href="' .  . '" title="Look ' <?php the_title_attribute(); ?>'" > <?php the_title(); ?></a> </li>
<?php endforeach; ?>
</ul>
<?php endif; ?>

Untitled PHP (6-May @ 03:52)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "this is a test of the website";
  4.  
  5. ?>

Plain Code

<?php

echo "this is a test of the website";

?>

sdfs (5-May @ 12:15)

Syntax Highlighted Code

  1. sdfsdfs

Plain Code

sdfsdfs

Untitled PHP (4-May @ 13:53)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "hello";
  4.  
  5. ?>

Plain Code

<?php

echo "hello";

?>

Untitled PHP (4-May @ 00:59)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpinfo();
?>

Untitled PHP (30-Apr @ 09:25)

Syntax Highlighted Code

  1. dsdfsdfsdfdsfsdfsdf

Plain Code

dsdfsdfsdfdsfsdfsdf

Untitled PHP (30-Apr @ 05:09)

mrgenixus

Syntax Highlighted Code

  1. <?php
  2. $STATES = array("WAIT","SCOPE","CRITERIA","ITEM","QUOTE");
  3. function debug_this($value)
  4. {
  5. [206 more lines...]

Plain Code

<?php
$STATES = array("WAIT","SCOPE","CRITERIA","ITEM","QUOTE");
function debug_this($value)
{
    echo $value;
}
function is_escaped($escape_index,$current_index)
{
    return ($escape_index != -1 && $escape_index == ($current_index - 1));
}
function add_and_reset_scope(&$context, &$scope,&$criteria = array())
{
    if (isset($context[$scope]) && is_array($context[$scope])) $criteria = array_merge($criteria,$context[$scope]);
    $context[$scope] = $criteria;
    $criteria = array();
    $scope = "";
}
function add_new_criteria(&$criteria,$initial_character)
{
    $criteria[] = $initial_character;
    debug_this( "\10\tNEW CRITERIA BEGINS: " . $criteria[count($criteria) - 1] . "\n");
}
function add_to_current_criteria(&$criteria,$value){
    $last = count($criteria) - 1;
    $criteria[$last] .= $value;
    debug_this("\10\tCURRENT: " . $criteria[$last] . "\n");
}
function setState(&$state,$newState,$line = -1) {
    global $STATES; $out = "[$line]: STATE ";
    if(isset($state)) if (isset($STATES[($index = log($state,2))])) $out .= $STATES[$index]. "($state)";
        else $out .=  "\"$state\"";
    else $out .= "NULL";
    $out .= ", CHANGING TO " . $STATES[log($newState,2)] . "($newState)\n";
    debug_this($out);
    $state = $newState;
}
function BBranch($branch,$state,$value,$line = -1)
{
    global $STATES;
    debug_this("[$line] BRANCH {$branch} [" . $STATES[log($state,2)] . "]: $value \n" ); 
}

function parse($str,$default_scope = 'group'){
    //states
    global $STATES;
    
    foreach ($STATES as $INDEX => $STATENAME) { 
        $$STATENAME = pow(2,$INDEX); 
        debug_this($STATENAME . " = " . $$STATENAME . "\n");
    }
    debug_this("\$WAIT = $WAIT\n");
    $ERRORS = array();
    $escape = -1;
    $context = array();
    $criteria = array();
    $quote = $item = $scope = "";
    setState($state,($pre_quote_state = $WAIT),__LINE__);
    $str .= " ";
    foreach (str_split($str) as $index => $value)
    {
        if ($state > $QUOTE) setState($state,$WAIT,__LINE__);
        if(preg_match("/\s/",$value)){
        BBranch('WHITESPACE',$state,$value,__LINE__);
            if($state == $ITEM)
            {
                if (is_escaped($escape,$index)) $item .= $value;
                else {
                    add_to_current_criteria($criteria,"",__LINE__);
                    if(count($scope)) add_and_reset_scope($context,$scope,$criteria);                        
                    setState($state,$WAIT,__LINE__);
                }
            }
            elseif($state == $QUOTE)
            {
                add_to_current_criteria($criteria,$value);
            }
            elseif($state == $SCOPE)
            {
                if($default_scope != ""){
                    add_new_criteria($criteria,$scope);
                    add_and_reset_scope($context,$default_scope,$criteria);
                    setState($state,$WAIT,__LINE__);
                }
                else add_and_reset_scope($context,$scope);
                setState($state,$WAIT,__LINE__);
            }
        }
        elseif(preg_match("/[\:\=]/",$value)) {
            BBranch('EQUIV',$state,$value,__LINE__);
            if($state == $SCOPE && strlen($scope)) {
                //add_and_reset_scope($context,$scope);
                setState($state,$CRITERIA,__LINE__);
            }
            elseif($state & ( $ITEM | $QUOTE )) add_to_current_criteria($criteria,$value);
        }
        elseif(strstr("\\",$value)){
            BBranch('ESCAPE',$state,$value,__LINE__);
            if (! is_escaped($escape,$index)) $escape = $index;
            else {
                if($state & ( $ITEM | $QUOTE )) {
                    add_to_current_criteria($criteria,$value);
                }
                if($state & $CRITERIA)
                {
                    add_new_criteria($criteria,$value);
                    setState($state,$ITEM);
                }
            }
        }
        elseif(strstr(",",$value)){
            BBranch('COMMA',$state,$value,__LINE__); 
            if($state == $ITEM)
            {
                setState($state,$CRITERIA,__LINE__);
            }
            elseif($state == $SCOPE)
            {
                add_new_criteria($criteria,$scope);
                if($default_scope != ""){
                    $scope = $default_scope;
                    setState($state,$CRITERIA,__LINE__);
                }
                else {
                    add_and_reset_scope($context,$scope = null,$criteria);
                    $ERRORS[] = "UNEXPECTED T_COMMA ENCOUNTERED <INDEX: $Index>";
                    setState($state,$WAIT,__LINE__);
                }
            }
            elseif($state & ( $CRITERIA | $WAIT)) $ERRORS[] = "UNEXPECTED T_COMMA ENCOUNTERED <INDEX: $Index>";
            
        }
        elseif(preg_match("/[\"']/",$value)){
            BBranch('QUOTE',$state,$value,__LINE__);
            
            if($state == $QUOTE){
                debug_this("IS QUOTE ESCAPED: " . ((is_escaped($escape,$index)) ? "YES" : "NO") . "\n");
                if ($value == $quote && !is_escaped($escape,$index))
                {
                    
                    setState($state,$pre_quote_state,__LINE__);
                    $quote = "";
                }
                elseif($pre_quote_state & ( $CRITERIA | $ITEM))
                {
                    add_to_current_criteria($criteria,$value);
                }
                elseif($pre_quote_state & ( $WAIT | $SCOPE ))
                {
                    $scope .= $value;
                }
            }
            elseif($state & ( $WAIT | $CRITERIA ))
            {
                $pre_quote_state = $state;
                $quote = $value;
                setState($state,$QUOTE,__LINE__);
            }
        }
        else {
            BBranch('WORD',$state,$value,__LINE__);
            if($state == $WAIT) {
                
                setState($state,$SCOPE,__LINE__);
                $scope = $value;
            }
            elseif($state == $SCOPE) $scope .= $value;
            elseif ($state == $CRITERIA)
            {
                setState($state,$ITEM,__LINE__);
                add_new_criteria($criteria,$value);
            }
            elseif ($state == $ITEM) add_to_current_criteria($criteria,$value);
            elseif($state == $QUOTE){
                
                if($pre_quote_state == $WAIT){
                    
                    $pre_quote_state = $SCOPE;
                    $scope = $value;
                }
                elseif($pre_quote_state == $CRITERIA) {
                    
                    $pre_quote_state = $ITEM;
                    add_new_criteria($criteria,$value);
                }
                else
                {
                    add_to_current_criteria($criteria,$value);
                }
            }
                
        }
    }
    return $context;
}
function interpret($arr){
    $str = "";
    $str = print_r($arr,true);
    return $str;
}

$strs = array(
    "file:hello.fa start:0 end:1322251",
    "file:hello.fa group:\"wild dogs\"",
    "file:hello.fa group:\"12 angry men\" group:\"11 'angry' men\"",
    "file:hello.fa group:\"12 angry men\",\"11 \\\"angry\\\" men\""

);
foreach ($strs as $search){
    echo $search . ":\n " . str_replace("\n", "\n\t", interpret(parse($search))). "\n";
}

Untitled PHP (29-Apr @ 09:13)

Syntax Highlighted Code

  1. <?php echo 'hola'; ?>

Plain Code

<?php echo 'hola'; ?>

Untitled PHP (29-Apr @ 08:27)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. echo "hello world";
  5. [1 more lines...]

Plain Code

<?php


echo "hello world";

?>

Untitled PHP (29-Apr @ 04:43)

Syntax Highlighted Code

  1. hellp

Plain Code

hellp

Untitled PHP (29-Apr @ 04:07)

mrgenixus

Syntax Highlighted Code

  1. <?php
  2.  
  3. function myTestFunction($hasDefaultParamters = true)
  4. {
  5. [47 more lines...]

Plain Code

<?php 

function myTestFunction($hasDefaultParamters = true)
{
    echo "Start\n";
    echo "num args: " . ($num = func_num_args()). "\n";
    
    if($num)
    {
        print_r(func_get_args());
    }
    echo "End\n";
}

myTestFunction("hello","world");
myTestFunction();

/*
output:
Start
num args: 2
Array
(
    [0] => hello
    [1] => world
)
End
Start
num args: 0
End
*/

function authenticate($u = null,$p = null,$redirect = 0){
        if ($numArgs = func_num_args() > 0){
            
            if($numArgs >= 2) {
                if($authID = User::__validCredentials($u,$p) {
            
                    $this->session->set_userdata(array('user_id'=>$authID));
                    return $authID;
                }
                else if ($redirect) {
                    
                    redirect('/login');
                    die("Redirecting...");
                }
            }
        }
        
        return 0;
        
    }

Untitled PHP (26-Apr @ 18:34)

Syntax Highlighted Code

  1. <?php
  2. echo 'hello';
  3. ?>

Plain Code

<?php
echo 'hello';
?>

Untitled PHP (26-Apr @ 11:24)

Syntax Highlighted Code

  1. <?
  2. echo ('Hello Word');
  3. ?>

Plain Code

<?
echo ('Hello Word');
?>

Untitled PHP (26-Apr @ 01:42)

Syntax Highlighted Code

  1. ggfdg

Plain Code

ggfdg

Untitled PHP (23-Apr @ 08:38)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
echo phpinfo();
?>

Untitled PHP (22-Apr @ 16:16)

Syntax Highlighted Code

  1. 123

Plain Code

123

Untitled PHP (22-Apr @ 14:30)

Syntax Highlighted Code

  1. echo "what";

Plain Code

echo "what";

Untitled PHP (22-Apr @ 02:06)

Syntax Highlighted Code

  1. Fever Mania Essa onda vai te pegar pelo dedo

Plain Code

Fever Mania Essa onda vai te pegar pelo dedo

Untitled PHP (21-Apr @ 10:26)

Syntax Highlighted Code

  1. efawef

Plain Code

efawef

Untitled PHP (20-Apr @ 21:24)

Syntax Highlighted Code

  1. /**
  2.  * Redimencionar proporcionalmente
  3.  * @param
  4.  * @return void
  5. [35 more lines...]

Plain Code

/**
 * Redimencionar proporcionalmente
 * @param
 * @return void
*/
private function resizeRatio()
{
    // verifica se a imagem é maior do que o tamanho que deseja redimencionar 
    if($this->largura > $this->nova_largura || $this->altura > $this->nova_altura)
    {
        // Se a altura foi maior que a largura ele calcula com base na altura e a largura fica proporcional
        if ($this->altura > $this->largura)
        {
            $this->nova_largura    = $this->largura / ($this->altura / $this->nova_altura);
        }
        // Se a largura for maior que a altura, calcula com  base na largura e a altura fica proporcional
        elseif ($this->largura > $this->altura)
        {
            $this->nova_altura    = $this->altura / ($this->largura / $this->nova_largura);
        }
        // Se a largura for do mesmo tamanho da altura dominui as duas
        else
        {
            $this->nova_largura = $this->largura / ($this->largura / $this->nova_largura);
            $this->nova_altur    = $this->altura / ($this->altura / $this->nova_altura);
        }
    }
    // Se a imagem tiver a altura e a largura menor que o informado ele não redimensiona
    else
    {
        $this->nova_largura     = $this->largura;
        $this->nova_altura        = $this->altura;
    }
    // cria imagem de destino temporária
    $this->img_temp    = imagecreatetruecolor( $this->nova_largura, $this->nova_altura );
    
    imagecopyresampled( $this->img_temp, $this->img, 0, 0, 0, 0, $this->nova_largura, $this->nova_altura, $this->largura, $this->altura );
    $this->img    = $this->img_temp;
}

Untitled PHP (20-Apr @ 19:18)

Syntax Highlighted Code

  1. csz

Plain Code

csz

Untitled PHP (19-Apr @ 14:46)

Syntax Highlighted Code

  1. <?php
  2. echo "eu";
  3. ?>

Plain Code

<?php
echo "eu";
?>

Untitled PHP (19-Apr @ 10:51)

Syntax Highlighted Code

  1. <?php
  2. echo "hello word";
  3. ?>

Plain Code

<?php
echo "hello word";
?>

Untitled PHP (17-Apr @ 13:10)

Syntax Highlighted Code

  1. $tablo = mysql_query("select MAX(tourID) as id from tours");
  2. $a = mysql_fetch_assoc($tablo);
  3.  

Plain Code

$tablo = mysql_query("select MAX(tourID) as id from tours"); 
$a = mysql_fetch_assoc($tablo);

Untitled PHP (16-Apr @ 03:09)

Syntax Highlighted Code

  1. <?
  2. echo "this";
  3. ?>

Plain Code

<?
echo "this";
?>

Untitled PHP (15-Apr @ 15:02)

Syntax Highlighted Code

  1. A
  2. <br>
  3. b

Plain Code

A
<br>
b

Untitled PHP (13-Apr @ 00:57)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. [289 more lines...]

Plain Code

<!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>Phil Coffman - Art Director</title>
    <meta content="I am an Art Director based in Austin, TX with an eye for balance, finely tuned Wacom tablet skills, and an undying hatred of blurry pixels." name="Description"/>
    <meta content="Phil, Coffman, Art Director, Art Direction, Graphic Design, Interface, UI, User Experience, Austin, TX" name="Keywords"/>
    
    <link rel="stylesheet" type="text/css" media="all" href="/css/screen.css" />
    <link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
    
    <script type="text/javascript" src="/code/prototype.js"></script>

<script type="text/javascript" src="/code/scriptaculous.js"></script>
<script type="text/javascript">
    function jsonFlickrFeed(o) {
        var div = document.getElementById('photoBucket');
        for (var i = 0; i < 8; ++i) {
            div.innerHTML += '<a href="' + o.items[i].link + '"><img id="flickr_'+[i]+'" src="' + o.items[i].media.m.replace("_m", "_s") + '" alt="' + o.items[i].title +'"></a>';
        }
    }
</script></head>

<body>

    <div class="container_12" id="site">
        
        <div id="header">
            <p id="mark"><a href="/" title="Phil Coffman: Art Director + Photographer">Phil Coffman</a></p>
            
            <ul>
                <li><a href="/" title="Back to PhilCoffman.com">Home</a></li>

                <li><a href="/about.php" title="About Phil Coffman">About</a></li>
                <li><a href="/blog/" title="Phil Coffman's Blog">Blog</a></li>
                <li><a href="/work.php" title="Phil Coffman's Work">Work</a></li>
                <li><a href="/photos.php" title="Phil Coffman's Photos">Photos</a></li>
                <li><a href="/contact/" title="Contact Phil Coffman">Contact</a></li>
            </ul>

            
            <div id="fusion_ad">
                <script type="text/javascript">
                    /* <![CDATA[ */
                    document.write('<scr' + 'ipt type="text/javascript" src="http://adn.fusionads.net/www/pull/get.php?zoneid=54&charset=UTF-8&withtext=1&cb=' + Math.floor(Math.random() * 99999999999) + '"></scr' + 'ipt>');
                    /* ]]> */
                </script>
                <p id="powered_by"><a href="http://fusionads.net" class="pwr" title="Powered by Fusion Ads">Powered <em>by</em> Fusion</a></p>
            </div>
                        
            <div class="clear"></div>
        </div>

    <div class="grid_12" id="work-listing">
        <h1>Work</h1>
        <div id="projects">
            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/dell_insight.php"><img src="img/work/dell_insight_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/dell_insight.php">Dell INsight</a></h2>

                    </div>
                    <p>A community platform focused on software that empowers users to participate in the beta process.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/gemalto.php"><img src="img/work/gemalto_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/gemalto.php">Gemalto "Go" Campaign</a></h2>
                    </div>

                    <p>Campaign pitch for Gemalto, one of the world's leading security chip manufacturers.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/hrh.php"><img src="img/work/hrh_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/hrh.php">Hard Rock Hotel and Casino</a></h2>
                    </div>
                    <p>RFP pitch to redesign the site for the Hard Rock Hotel and Casino in Las Vegas.</p>

                </div>
                <div class="grid_3 omega" id="project-thumb">
                    <div>
                        <a href="work/trans-poser.php"><img src="img/work/transposer_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/trans-poser.php">Trans-Poser</a></h2>
                    </div>
                    <p>Flash-based app created for Dell and X Games 15 that superimposes your face on various athletes.</p>
                </div>

                <div class="clear"></div>
            </div>

            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/promanage_icons.php"><img src="img/work/promanage_icons_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/promanage_icons.php">ProManage Icons</a></h2>

                    </div>
                    <p>A set of icons I created for an internal Dell portal. Work like this is all about the small details, which I'm a sucker for.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/centralmarket_sommelier.php"><img src="img/work/centralmarket_sommelier_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/centralmarket_sommelier.php">Interactive Sommelier</a></h2>
                    </div>

                    <p>The power of a personal Sommelier at your fingertips, minus the pompousness.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/tre.php"><img src="img/work/tre_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/tre.php">TRE</a></h2>
                    </div>
                    <p>Translated as "three", TRE is a personal piece of art that came rolling out of the brain one day.</p>

                </div>
                <div class="grid_3 omega" id="project-thumb">
                    <div>
                        <a href="work/flytta.php"><img src="img/work/flytta_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/flytta.php">Flytta</a></h2>
                    </div>
                    <p>Experimenting with lines, color and extruded typefaces.</p>
                </div>

                <div class="clear"></div>
            </div>

            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/1978.php"><img src="img/work/1978_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/1978.php">1978</a></h2>

                    </div>
                    <p>A design that came to me after a long stretch of listening to ambient music.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/ethan_durelle.php"><img src="img/work/ethan_durelle_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/ethan_durelle.php">Ethan Durelle</a></h2>
                    </div>

                    <p>A design I put together for my cousin Chris who used to be in the band "Ethan Durelle".</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/classic_rock.php"><img src="img/work/classic_rock_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/classic_rock.php">Classic Rock</a></h2>
                    </div>
                    <p>An ironic design due to the fact that I'm not that big of a fan of the classic rock genre, but that's okay</p>

                </div>
                <div class="grid_3 omega" id="project-thumb">
                    <div>
                        <a href="work/showthelove.php"><img src="img/work/showthelove_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/showthelove.php">Show The Love</a></h2>
                    </div>
                    <p>To promote and organize a weekend of serving their local community, Intereactive built this site for Crossbridge Church.</p>
                </div>

                <div class="clear"></div>
            </div>

            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/paypal_safety.php"><img src="img/work/paypal_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/paypal_safety.php">PayPal Safety Training</a></h2>

                    </div>
                    <p>Visit the PayPal Safety Agent Training Facility and learn how to become a top-notch security agent.</p>
                </div>                       
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/centralmarket.php"><img src="img/work/centralmarket_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/centralmarket.php">Central Market</a></h2>
                    </div>

                    <p>One of Texas' premiere grocery chains came to Springbox with a need to completely overhaul their website.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/simplerwebb.php"><img src="img/work/simplerwebb_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/simplerwebb.php">Simpler-Webb</a></h2>
                    </div>
                    <p>IT infrastructure doesn't have to be all straight lines and linear and I have the whiteboard drawings to prove it.</p>

                </div>
                <div class="grid_3 omega" id="project-thumb">
                    <div>
                        <a href="work/sdxi.php"><img src="img/work/sdxi_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/sdxi.php">SD•X Interactive</a></h2>
                    </div>
                    <p>Bring printed material to life with SD•X Interactive's infrared technology.</p>
                </div>

                <div class="clear"></div>
            </div>

            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/scion_tC.php"><img src="img/work/scion_tC_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/scion_tC.php">Scion tC Banner Campaign</a></h2>

                    </div>
                    <p>Building your own super-collider is probably not a good idea, so the next best thing is to use that idea in a banner campaign.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/einsteinpals.php"><img src="img/work/einsteinpals_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/einsteinpals.php">Einstein Pals</a></h2>
                    </div>

                    <p>Baby Einstein is working on a new addition to their property line-up called Einstein Pals and Springbox did some comps for them.</p>
                </div>
                <div class="grid_3" id="project-thumb">
                    <div>
                        <a href="work/paypal_module.php"><img src="img/work/paypal_module_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/paypal_module.php">PayPal Top Buyer Module</a></h2>
                    </div>
                    <p>A few presentation/e-learning style comps for a module PayPal needed to address various business strategies.</p>

                </div>
                <div class="grid_3 omega" id="project-thumb">
                    <div>
                        <a href="work/mosaic.php"><img src="img/work/mosaic_thumb.png" class="thumbnail"/></a>
                        <h2><a href="work/mosaic.php">Mosaic</a></h2>
                    </div>
                    <p>Identity for a team management web app currently in development.</p>
                </div>

                <div class="clear"></div>                        
            </div>

            <div class="grid_12" id="project-row">
                <div class="grid_3 alpha" id="project-thumb">
                    <div>
                        <a href="work/intereactive.php"><img src="img/work/intereactive_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/intereactive.php">Intereactive</a></h2>
                    </div>

                    <p>Site design for Intereactive, a web design company I co-found. Definitely a labor of love as I am easily my own worst client.</p>
                </div>
                <div class="grid_3 omega suffix_6" id="project-thumb">
                    <div>
                        <a href="work/nls.php"><img src="img/work/nls_thumb.jpg" class="thumbnail"/></a>
                        <h2><a href="work/nls.php">No Longer Strangers</a></h2>
                    </div>
                    <p>Florida-based band No Longer Strangers came to Intereactive to build out a full-flash site.</p>

                </div>

                <div class="clear"></div>                        
            </div>
        </div>
        
        <div class="clear"></div>
    </div>
    

        <div class="clear"></div>

        <div class="grid_12" id="footer">

            <p class="grid_6 suffix_4 alpha">&copy; 2010 Phil Coffman - All Rights Reserved<br />Powered by <a href="http://www.wordpress.org">Wordpress</a>, held together by <a href = "http://www.960.gs">960.gs</a>, and continually under threat of a redesign.</p>
            
            <ul class="grid_2 omega">
                <li><a href="http://dribbble.com/players/philcoffman" title="Phil Coffman on Dribbble"><img src="/img/dribbble_icon.jpg" alt="Dribbble" /></a></li>
                <li><a href="http://www.flickr.com/photos/philcoffman" title="Phil Coffman on Flickr"><img src="/img/flickr_icon.jpg" alt="Flickr" /></a></li>
                <li><a href="http://www.linkedin.com/profile?viewProfile=&amp;key=10771840&amp;locale=en_US&amp;trk=tab_pro" title="Phil Coffman on LinkedIn"><img src="/img/linkedin_icon.jpg" alt="LinkedIn" /></a></li>

                <li class="last"><a href="http://twitter.com/philcoffman" title="Phil Coffman on Twitter"><img src="/img/twitter_icon.jpg" alt="Twitter" /></a></li>
            </ul>
            
            <div class="clear"></div>
        </div>
    </div>
    
    <!-- Google Analytics -->
    <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
        try {
            var pageTracker = _gat._getTracker("UA-7742329-1");
            pageTracker._trackPageview();
        } catch(err) {}
    </script>

</body>
</html>

fsdfsdf (11-Apr @ 08:38)

Syntax Highlighted Code

  1. fsdfsdfsdf

Plain Code

fsdfsdfsdf

Untitled PHP (9-Apr @ 18:55)

Syntax Highlighted Code

  1. <? date('Y')?>

Plain Code

<? date('Y')?>

Untitled PHP (8-Apr @ 22:22)

Syntax Highlighted Code

  1. cv

Plain Code

cv

Untitled PHP (8-Apr @ 00:18)

Syntax Highlighted Code

  1. xcbvxcvbcv

Plain Code

xcbvxcvbcv

Untitled PHP (6-Apr @ 09:55)

Syntax Highlighted Code

  1. <?php
  2. echo("hjallo");
  3.  
  4. ?>

Plain Code

<?php
echo("hjallo");

?>

Untitled PHP (6-Apr @ 08:20)

Syntax Highlighted Code

  1. <?php
  2.  
  3. ?>

Plain Code

<?php

?>

Untitled PHP (6-Apr @ 02:48)

Syntax Highlighted Code

  1. <? phpinfo(); ?>

Plain Code

<? phpinfo(); ?>

Untitled PHP (6-Apr @ 02:32)

Syntax Highlighted Code

  1. echo "yo yo yo";
  2.  

Plain Code

echo "yo yo yo";

Untitled PHP (5-Apr @ 22:25)

Syntax Highlighted Code

  1. <?php
  2. // Läs in maträtterna från menytabellen
  3. $result = dbQuery...;
  4. while($rad=@mysql_fetch...)
  5. [24 more lines...]

Plain Code

<?php
// Läs in maträtterna från menytabellen
$result = dbQuery...;
while($rad=@mysql_fetch...) 
{
    // assigna värdena till matratt, 
    $matratter[$rad['ID']] = $rad['Namn'];
    $matratter_values[$rad['ID']] = 0;
}

if ($_POST) 
{
    // Sätt värdena till maträtt
    foreach($matratter as $key=>$value)
        $matratter_values[$key] = $_POST['matratt_'.$key];
} 
else 
{

        // Ingen post-data här..
}


// I formuläret när du ska skriva ut option..
foreach($matratter as $key => $value) 
{
    echo "Antal: <input type=\"text\" name=\"matratt_".$key."\" size=\"5\" value=\"".$matratter_values[$key]."\">&nbsp;".$value."<br />";

}

Untitled PHP (5-Apr @ 21:49)

Syntax Highlighted Code

  1. <?php
  2. // Läs in maträtterna från menytabellen
  3. $result = dbQuery...;
  4. while($rad=@mysql_fetch...)
  5. [26 more lines...]

Plain Code

<?php
// Läs in maträtterna från menytabellen
$result = dbQuery...;
while($rad=@mysql_fetch...) 
{
    // assigna värdena till matratt, 
    $matratter[$rad['ID']] = $rad['Namn'];
}

if ($_POST) 
{
    // Sätt värdena till maträtt
    foreach($matratter as $key=>$value)
        $matratter_values[$key] = $_POST['matratt_'.$key];
} 
else 
{

    // noll-initiera maträtterna (de är 0 som default)
    foreach($matratter as $key=>$value)
        $matratter_values[$key] = $value;
    
}


// I formuläret när du ska skriva ut option..
foreach($matratter as $key => $value) 
{
    echo "Antal: <input type=\"text\" name=\"matratt_".$key."\" size=\"5\" value=\"".$matratter_values[$key]."\">&nbsp;".$value."<br />";

}

Untitled PHP (5-Apr @ 13:50)

Syntax Highlighted Code

  1. <?
  2.  
  3. ?>

Plain Code

<?

?>

Untitled PHP (4-Apr @ 08:32)

Syntax Highlighted Code

  1. asdasd

Plain Code

asdasd

Untitled PHP (3-Apr @ 16:09)

Syntax Highlighted Code

  1. <?php
  2. echo 'hello world';
  3. ?>

Plain Code

<?php
echo 'hello world';
?>

Untitled PHP (2-Apr @ 19:29)

Syntax Highlighted Code

  1. <?php ?>

Plain Code

<?php ?>

Untitled PHP (1-Apr @ 21:13)

Syntax Highlighted Code

  1. asdad

Plain Code

asdad

generateSlug (31-Mar @ 05:09)

jasonbartholme

Syntax Highlighted Code

  1. function generateSlug($phrase)
  2. {
  3.   $result = strtolower($phrase);
  4.   $result = preg_replace("/[^a-z0-9\s-]/", "", $result);
  5. [4 more lines...]

Plain Code

function generateSlug($phrase)
{
  $result = strtolower($phrase);
  $result = preg_replace("/[^a-z0-9\s-]/", "", $result);
  $result = trim(preg_replace("/\s+/", " ", $result));
  $result = trim(substr($result, 0, 100));
  $result = preg_replace("/\s/", "-", $result);
  return $result;
}

Untitled PHP (30-Mar @ 10:19)

Syntax Highlighted Code

  1. <?Php
  2. echo "hej";
  3. ?>

Plain Code

<?Php
echo "hej";
?>

Untitled PHP (29-Mar @ 19:08)

Syntax Highlighted Code

  1. <?php foreach($noob as $b): ?>
  2. <p><?php echo $b['test'];?></p>
  3. <?php endforeach; ?>

Plain Code

<?php foreach($noob as $b): ?>
<p><?php echo $b['test'];?></p>
<?php endforeach; ?>

Untitled PHP (28-Mar @ 11:42)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class Page extends Admin_Controller {
  4.  
  5. [101 more lines...]

Plain Code

<?php 

class Page extends Admin_Controller {

    function __construct() 
    {
        parent::__construct();
        $this->output->enable_profiler(TRUE);
        $this->load->language('page');
    }
    
    function index()
    {
        $this->load->view('errors/form');
    }
    
    function choose_template($parent_id=0) {
        $this->load->model('template_model');
        $this->title = lang("page.choose_template");
        
        $this->content_data = array(
            "templates" => $this->template_model->get_all()
        );
                        
        $this->_output_master_with('page/choose_template');        
    }

    /**
     * @param integer $template_id                The template_id as selected from page/choose_template
     * @param integer $parent_id[optional]        The id of the parent page 
     */
    function create($template_id, $parent_id=0) {
        //$extra_fields = $this->template_model->get_fields_from($template_id);
        $this->content_data['page'] = array();
        $this->content_data['extra_fields'] = array();
        
        // If we have post data
        if ($this->input->post()) {
            // Run validation
            // Check mode
            // If mode = save_and_publish
            // page_model->save_and_publish
            $mode = $this->input->post('submit');
        }
        // Output.
        $this->_register_js('jquery.idtabs.min.js');
        $this->_output_master_with('page/form');
        
        // Load the template and its extra fields.
    }
    /**
     * Deletes a page, all versions of it plus any extra fields that might exist on those versions.
     * Also clears out cached versions of the removed page via page_model->delete_all_versions. 
     * @return 
     * @param object $id
     */
    function delete($id) {

        //$page = $this->page_model->get_where(array("page_id"=>$id));
        $page = false;
        if (!$page) 
        {
            $this->title = lang("page.page_not_found");
            $this->content_data = array(
                            "header" => lang("page.page_not_found"),
                            "message" => lang("page.page_not_found.message"),
                            "link_url" => "#url-to-list-pages",
                            "link_text" => lang("page.page_not_found.link.text"),
                            );
                            
            $this->_output_master_with('errors/default');
            return;
        }
        
        // So we had a page with that id
        if (!$this->page_model->delete_all_versions($page->page_id)) 
        {
            // But failed deleting all the versions.
            $this->title = lang("page.page_not_found");
            $this->content_data = array(
                            "header" => lang("page.page_not_found"),
                            "message" => lang("page.page_not_found.message"),
                            "link_url" => "#url-to-list-pages",
                            "link_text" => lang("page.page_not_found.link.text"),
                            );
                            
            $this->_output_master_with('errors/default');
            return;
        }
        
        $this->title = lang("page.page_deleted");
        $this->content_data = array(
                        "header" => lang("page.page_deleted"),
                        "message" => lang("page.page_deleted.message"),
                        "link_url" => "#url-to-list-pages",
                        "link_text" => lang("page.page_deleted.link.text"),
                        );
                        
        $this->_output_master_with('messages/default');
        
        //TODO: delete all fields from pages where page_id=$page->page_id
        //TODO: remove all versions of this page
        //TODO: remove cached versions of the page's slug
    
    }    
}

Untitled PHP (25-Mar @ 09:21)

Syntax Highlighted Code

  1. fdgsgsdgsdg dg sdgs<dg <sdg <sdg<sd

Plain Code

fdgsgsdgsdg dg sdgs<dg <sdg <sdg<sd

12 (24-Mar @ 12:20)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">
  3.  
  4. <head>
  5. [162 more lines...]

Plain Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
</head>
<body class="<?php print $body_classes; ?>">

  <div id="page"><div id="page-inner">

    <a name="navigation-top" id="navigation-top"></a>
    <?php if ($primary_links || $secondary_links || $navbar): ?>
      <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>
    <?php endif; ?>

    <div id="header"><div id="header-inner" class="clear-block">

      <?php if ($logo || $site_name || $site_slogan): ?>
        <div id="logo-title">

          <?php if ($logo): ?>
            <div id="logo"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a></div>
          <?php endif; ?>

          <?php if ($site_name): ?>
            <?php if ($title): ?>
              <div id="site-name"><strong>
                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home">
                <?php print $site_name; ?>
                </a>
              </strong></div>
            <?php else: ?>
              <h1 id="site-name">
                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home">
                <?php print $site_name; ?>
                </a>
              </h1>
            <?php endif; ?>
          <?php endif; ?>

          <?php if ($site_slogan): ?>
            <div id="site-slogan"><?php print $site_slogan; ?></div>
          <?php endif; ?>

        </div> <!-- /#logo-title -->
      <?php endif; ?>

      <?php if ($header): ?>
        <div id="header-blocks" class="region region-header">
          <?php print $header; ?>
        </div> <!-- /#header-blocks -->
      <?php endif; ?>

    </div></div> <!-- /#header-inner, /#header -->

    <div id="main"><div id="main-inner" class="clear-block<?php if ($search_box || $primary_links || $secondary_links || $navbar) { print ' with-navbar'; } ?>">

      <div id="content"><div id="content-inner">

        <?php if ($mission): ?>
          <div id="mission"><?php print $mission; ?></div>
        <?php endif; ?>

        <?php if ($content_top): ?>
          <div id="content-top" class="region region-content_top">
            <?php print $content_top; ?>
          </div> <!-- /#content-top -->
        <?php endif; ?>

        <?php if ($breadcrumb || $title || $tabs || $help || $messages): ?>
          <div id="content-header">
            <?php print $breadcrumb; ?>
            <?php if ($title): ?>
              <h1 class="title"><?php print $title; ?></h1>
            <?php endif; ?>
            <?php print $messages; ?>
            <?php if ($tabs): ?>
              <div class="tabs"><?php print $tabs; ?></div>
            <?php endif; ?>
            <?php print $help; ?>
          </div> <!-- /#content-header -->
        <?php endif; ?>

        <div id="content-area">
          <?php print $content; ?>
        </div>

        <?php if ($feed_icons): ?>
          <div class="feed-icons"><?php print $feed_icons; ?></div>
        <?php endif; ?>

        <?php if ($content_bottom): ?>
          <div id="content-bottom" class="region region-content_bottom">
            <?php print $content_bottom; ?>
          </div> <!-- /#content-bottom -->
        <?php endif; ?>

      </div></div> <!-- /#content-inner, /#content -->

      <?php if ($search_box || $primary_links || $secondary_links || $navbar): ?>
        <div id="navbar"><div id="navbar-inner" class="clear-block region region-navbar">

          <a name="navigation" id="navigation"></a>

          <?php if ($search_box): ?>
            <div id="search-box">
              <?php print $search_box; ?>
            </div> <!-- /#search-box -->
          <?php endif; ?>

          <?php if ($primary_links): ?>
            <div id="primary" class="clear-block">
              <?php print theme('links', $primary_links); ?>
            </div> <!-- /#primary -->
          <?php endif; ?>

          <?php if ($secondary_links): ?>
            <div id="secondary" class="clear-block">
              <?php print theme('links', $secondary_links); ?>
            </div> <!-- /#secondary -->
          <?php endif; ?>

          <?php print $navbar; ?>

        </div></div> <!-- /#navbar-inner, /#navbar -->
      <?php endif; ?>

      <?php if ($left): ?>
        <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
          <?php print $left; ?>
        </div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->
      <?php endif; ?>

      <?php if ($right): ?>
        <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
          <?php print $right; ?>
        </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
      <?php endif; ?>

    </div></div> <!-- /#main-inner, /#main -->

    <?php if ($footer || $footer_message): ?>
      <div id="footer"><div id="footer-inner" class="region region-footer">

        <?php if ($footer_message): ?>
          <div id="footer-message"><?php print $footer_message; ?></div>
        <?php endif; ?>

        <?php print $footer; ?>

      </div></div> <!-- /#footer-inner, /#footer -->
    <?php endif; ?>

  </div></div> <!-- /#page-inner, /#page -->

  <?php if ($closure_region): ?>
    <div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div>
  <?php endif; ?>

  <?php print $closure; ?>

</body>
</html>

Untitled PHP (23-Mar @ 22:39)

Syntax Highlighted Code

  1. <?php
  2. $ip = $_SERVER['REMOTE_ADDR'];
  3. echo ip;
  4. ?>

Plain Code

<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo ip;
?>

titulo (23-Mar @ 17:50)

Syntax Highlighted Code

  1. conteudo

Plain Code

conteudo

Untitled HTML (23-Mar @ 01:01)

jerryLee

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. [168 more lines...]

Plain Code

<!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>Custom layout by jerryLee of SEO in Texas</title>
<style type="text/css">
<!--
/*
* AUTHOR       [ jerryLee]
* DATE         [ 03/2010 ]
* AUTHOR URL   [ www.seointexas.com ]
* AUTHOR EMAIL [ contact@seointexas.com ]

===========================================[ATTENTION DEVELOPERS AND GRAPHIC DESIGNERS]=============================================

I am beginning development on a project that is going to revolutionize the SEO world, and it will more than likely make me and a    couple of other people very wealthy. If you are interested, and fairly good with code or graphics, let me know. Email me to the    address above.

*/

body {
    margin:0;
} /* notice how I do not specify pixels here, this is how you make the content snug up to the top of the page */

#wrapper {
    margin:0px auto;
    width:1000px;
    height:auto;
} /* this is where I set my main width, most everything else will style to 100% or whatever percentage applies, so if I want to change the main width later, I only have to change it here, the other widths will automatically adjust because they are in percentages. */

#top {
    margin:0px;
    width:100%;
    height:20px;
} /* this can be used above the entire page as a navigation */

#header {
    margin:0px;
    width:100%;
    height:150px;
    background-color:#cccccc;
}

#navigation {
    margin:0px;
    width:100%;
    height:30px;
}

#content_holder {
    margin:0px;
    width:100%;
    height:auto;
}

#content_left {
    margin:0px;
    padding:10px;
    width:25%;
    height:auto;
    float:left;
} /* notice this is set to 25%, and floated left, this will maintain a 25% wide left column, and the float will pull it to the left */

#content_right {
    margin:0px;
    padding:10px;
    width:25%;
    height:auto;
    float:right;
} /* same as the last one, except floated to the right, and 75%, this can also be set to something like 25%, which would make a middle column without a middle column really being there. */

#main_body {
    margin:0px;
    padding:10px;
    width:auto;
    height:auto;
    float:right;
}

#footer {
    margin:0px;
    width:100%;
    height:150px;
    background-color:#cccccc;
} /* in a lot of cases, the footer actually mirrors the header 
*/

#logo { 
    margin:20px; 
    width:150px; 
}

/* begin menu styles */

#menu { margin:0px;    width:100%;    height:30px; background-color:#000000; }

#menu ul { margin:0px; list-style-type:none; width:70%; line-height:.5; }

#menu li { margin:0px; padding:10px; float:left; width:100px; }

.selected { background-color:#0099CC; } /* this will highlight the selected link, to show which page you are on */

#menu a { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; text-decoration:none; }

#menu a:hover { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#FF3300; text-decoration:underline; }

.clear {
    clear:both;
}
-->
</style>
<!-- styles EOF make sure to put these in a separate file and link to them with the above link, Google external style sheets if you need to -->
</head>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<!-- this signifies the file you will create with the css below and paste into a file called styles.css in your styles folder -->

<body>

<div id="top"><?php include($_SERVER['DOCUMENT_ROOT']."/jerry_teaching/backlinks.php"); ?> </div><!--php code for breadcrumbs aka top links, automatically updated as you go through the site. -->

<!-- top EOF -->
<div id="wrapper">
  
  <div id="header">
    <div id="logo">
    <img src="http://www.seointexas.com/images/logo.png" width="100" />
    <span style="position:absolute; top:-5000px; left:-5000px;">Logo</span><!-- by throwing this text off the page with a position style, I can help my SEO with a little extra keyword action, and no one has to see it, they get to see the nice looking logo! -->
    </div> <!-- logo EOF -->
  </div> <!--header eof-->
  
  <div id="menu">
    <ul>
      <li><a href="#" class="selected">Home</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">About Us</a></li>
      <li><a href="#">Schedule</a></li>
      <li><a href="#">Contact Us</a></li>
   </ul>
  </div> <!-- menu eof -->
 
 
  <div id="content_wrapper">
  
    <div id="content_left">
    <h1>Left Column</h1>
        <p>this is a great place to put navigation, advertising, or whatever else your heart desires.</p>
    </div><!--content left eof-->
    
    <div id="content_right"> 
        <h1>Right Column</h1>
        <p>this is a great place to put Articles, advertising, or whatever else your heart desires.</p>
    </div>
    <!--content right eof-->
    <div id="main_body">
        <h1>Middle  Column</h1>
        <p>this is a great place to put navigation, advertising, or whatever else your heart desires. bz';lcvbmz';clxbmz';clbmz'c;blmz'c;lbmz'x;clbmz';lbmz';lbmz';lbm</p>
   </div><!--main body eof-->
    <div class="clear"></div>
    <div id="footer"> 
    <!--php code for the date, keeps it updated -->
        © Copyright <?php
$today = mktime(0, 0, 0, date("m"), date("d"), date("y"));
echo "Today is ".date("m/d/y", $today); 
?>

    </div>
    <!--footer eof-->
  </div>
  <!--content wrapper EOF-->
</div>
<!--wrapper eof-->
</body>
</html>

Untitled PHP (22-Mar @ 15:26)

Syntax Highlighted Code

  1. 1234

Plain Code

1234

Untitled PHP (21-Mar @ 21:03)

Syntax Highlighted Code

  1. ghjkhjhgj

Plain Code

ghjkhjhgj

Untitled PHP (21-Mar @ 18:47)

Syntax Highlighted Code

  1. asdasda

Plain Code

asdasda

Untitled PHP (21-Mar @ 17:18)

Syntax Highlighted Code

  1. <?
  2. $site ='teste';
  3. $code ='nois';
  4.  
  5. [5 more lines...]

Plain Code

<?
$site ='teste';
$code ='nois';

echo $code;

?>


Untitled PHP (21-Mar @ 01:46)

Syntax Highlighted Code

  1. <?php
  2. $ljhh="fdgfg";
  3. ?>

Plain Code

<?php
$ljhh="fdgfg";
?>

Untitled PHP (20-Mar @ 16:16)

Syntax Highlighted Code

  1. <?php
  2. echo 'this is great';
  3. ?>

Plain Code

<?php 
echo 'this is great';
?>

Untitled PHP (19-Mar @ 09:26)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. print "hello";

Plain Code

<?php


print "hello";

Untitled PHP (18-Mar @ 22:27)

Syntax Highlighted Code

  1. <?php
  2. echo "AKMAL";
  3. ?>

Plain Code

<?php
echo "AKMAL";
?>

Untitled PHP (17-Mar @ 12:32)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $um = 1;
  4. $dois = 2;
  5. [3 more lines...]

Plain Code

<?php

$um = 1;
$dois = 2;

echo $um + $dois;

?>

Untitled PHP (16-Mar @ 11:52)

Syntax Highlighted Code

  1. <? echo date(Y);?>

Plain Code

<? echo date(Y);?>

Untitled PHP (14-Mar @ 11:10)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 123;
  4. ?>

Plain Code

<?php

echo 123;
?>

template (12-Mar @ 01:06)

Syntax Highlighted Code

  1. test

Plain Code

test

Untitled PHP (11-Mar @ 22:22)

Syntax Highlighted Code

  1. <? php
  2. echo: "ciao"
  3. ?>

Plain Code

<? php
echo: "ciao"
?>

Untitled PHP (11-Mar @ 07:07)

Syntax Highlighted Code

  1. big text area

Plain Code

big text area

Untitled PHP (11-Mar @ 00:23)

Syntax Highlighted Code

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML language=VBS><HEAD><TITLE>Welcome to CD4&nbsp; -&nbsp; CD - DVD
  3. Duplication, CD - DVD Replication, CD - DVD Duplicators, CD - DVD Printers,
  4. Blank CDs and DVDs</TITLE>
  5. [415 more lines...]

Plain Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML language=VBS><HEAD><TITLE>Welcome to CD4&nbsp; -&nbsp; CD - DVD 
Duplication, CD - DVD Replication, CD - DVD Duplicators, CD - DVD Printers, 
Blank CDs and DVDs</TITLE>
<META http-equiv=Content-Language content=es-mx>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<SCRIPT>
function popup(url,name,wwidth,wheight) {
window.open(url,name,'width='+wwidth+',height='+wheight+',scrollbars=no');
}
</SCRIPT>

<STYLE type=text/css>A:link {
    COLOR: #006699; FONT-FAMILY: "Verdana"; TEXT-DECORATION: none
}
A:visited {
    COLOR: #006699; FONT-FAMILY: "Verdana"; TEXT-DECORATION: none
}
A:active {
    COLOR: #006699; FONT-FAMILY: "verdana"; TEXT-DECORATION: none
}
</STYLE>

<SCRIPT language=javascript>
<!--
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
// -->    
</SCRIPT>

<META http-equiv=Content-Language content=es>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/FrontPage2003/OFFICE11/fpclass/animate.js">
</script>
</HEAD>
<BODY text=#000000 vLink=#CC9900 aLink=#CC9900 link=#CC9900 bgColor=#E7E7E7 
leftMargin=0 topMargin=0 marginwidth="0" marginheight="0" bgproperties="fixed" onload="dynAnimation()" language="Javascript1.2" background="index/fondofinal.jpg">
<table border="0" width="763" cellspacing="0" cellpadding="0">
    <tr>
        <td>
        <img border="0" src="index/Header.jpg" width="775" height="147"></td>
        <td rowspan="3" style="border-left: 1px dotted #515151; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" width="40">
        <table border="0" width="61" height="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td height="542">
        <table border="0" width="100%" cellspacing="0" cellpadding="0" height="104%">
            <tr>
                <td width="225" background="index/fondoizq.jpg" bgcolor="#242424">
                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="524">
                    <tr>
                        <td colspan="2">
                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP1'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].imgRolln" href="http://www.cd4replications.com/Repl/index1.htm">
                                        <img border="0" src="index/1.jpg" width="192" height="32" id="fpAnimswapImgFP1" name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1" lowsrc="index/1b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP2'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP2'].src=document['fpAnimswapImgFP2'].imgRolln" href="http://www.cd4replications.com/Dupl/index.htm">
                                        <img border="0" src="index/2.jpg" width="192" height="33" id="fpAnimswapImgFP2" name="fpAnimswapImgFP2" dynamicanimation="fpAnimswapImgFP2" lowsrc="index/2b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP3'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP3'].src=document['fpAnimswapImgFP3'].imgRolln" href="http://www.cd4replications.com/Vinyl/vinyl.htm">
                                        <img border="0" src="index/3.jpg" width="192" height="32" id="fpAnimswapImgFP3" name="fpAnimswapImgFP3" dynamicanimation="fpAnimswapImgFP3" lowsrc="index/3b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP4'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP4'].src=document['fpAnimswapImgFP4'].imgRolln" href="http://www.cd4replications.com/mastering.htm">
                                        <img border="0" src="index/4.jpg" width="192" height="32" id="fpAnimswapImgFP4" name="fpAnimswapImgFP4" dynamicanimation="fpAnimswapImgFP4" lowsrc="index/4b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP5'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP5'].src=document['fpAnimswapImgFP5'].imgRolln" href="http://www.cd4replications.com/design/index.htm">
                                        <img border="0" src="index/5.jpg" width="192" height="33" id="fpAnimswapImgFP5" name="fpAnimswapImgFP5" dynamicanimation="fpAnimswapImgFP5" lowsrc="index/5b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP6'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP6'].src=document['fpAnimswapImgFP6'].imgRolln" href="http://www.cd4replications.com/printing/index.htm">
                                        <img border="0" src="index/6.jpg" width="192" height="32" id="fpAnimswapImgFP6" name="fpAnimswapImgFP6" dynamicanimation="fpAnimswapImgFP6" lowsrc="index/6b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP7'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP7'].src=document['fpAnimswapImgFP7'].imgRolln" href="http://www.cd4replications.com/Templates/index.htm">
                                        <img border="0" src="index/7.jpg" width="192" height="33" id="fpAnimswapImgFP7" name="fpAnimswapImgFP7" dynamicanimation="fpAnimswapImgFP7" lowsrc="index/7b.jpg"></a></td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="233">
                                        <a onmouseover="var img=document['fpAnimswapImgFP9'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP9'].src=document['fpAnimswapImgFP9'].imgRolln" href="http://www.cd4replications.com/Forms/forms.htm">
                                        <img border="0" src="index/8.jpg" width="192" height="32" id="fpAnimswapImgFP9" name="fpAnimswapImgFP9" dynamicanimation="fpAnimswapImgFP9" lowsrc="index/8b.jpg"></a></td>
                                    </tr>
                                </table>
                                </td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        <a onmouseover="var img=document['fpAnimswapImgFP8'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP8'].src=document['fpAnimswapImgFP8'].imgRolln" href="http://www.cd4replications.com/Contact/index.htm">
                        <img border="0" src="index/9.jpg" width="192" height="33" align="right" id="fpAnimswapImgFP8" name="fpAnimswapImgFP8" dynamicanimation="fpAnimswapImgFP8" lowsrc="index/9b.jpg"></a></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        <a href="http://www.cd4replications.com/vs1.htm">
                        <img border="0" src="index/minibanner12.jpg" width="191" height="49" align="right"></a></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                        <td width="87%" rowspan="6">
                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                        <a href="http://www.cd4replications.com/printing/index.htm">
                        <img border="0" src="index/PRINTING.jpg" width="191" height="56" align="right"></a></td>
                            </tr>
                            <tr>
                                <td>
                        <hr color="#4F4F4F" size="0"></td>
                            </tr>
                            <tr>
                                <td>
                        <a href="http://www.cd4replications.com/Templates/index.htm">
                        <img border="0" src="index/template1.jpg" width="191" height="32" align="right"></a></td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="13%">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        &nbsp;</td>
                    </tr>
                    </table>
                </td>
                <td background="index/fondoder.jpg" bgcolor="#242424">
                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="536">
                    <tr>
                        <td colspan="2">
                        <table border="0" width="100%" height="309" cellspacing="0" cellpadding="0">
                            <tr>
                                <td height="253" width="3%">&nbsp;</td>
                                <td height="253" width="97%">
                                <img border="0" src="index/BANNER.jpg" width="507" height="257"></td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td>
                                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
                                    <tr>
                                        <td bgcolor="#FFFFFF" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px dotted #808080; border-bottom-width: 1px">
                                        <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
                                            <tr>
                                                <td bgcolor="#000000" style="border-bottom: 1px dotted #FFFFFF">
                                                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td>
                                                        <p align="center" style="margin-left: 8px">
                                                        <font face="Arial" style="font-size: 9pt" color="#FFFFFF">
                                                        We can Supply all 
                                                        your needs.&nbsp;&nbsp;&nbsp;&nbsp; 
                                                        Even if you only need 
                                                        one copy!</font></td>
                                                    </tr>
                                                </table>
                                                </td>
                                            </tr>
                                        </table>
                                        </td>
                                    </tr>
                                </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" height="21">
                                <span style="font-size: 5pt">&nbsp;</span></td>
                            </tr>
                        </table>
                        </td>
                        <td width="5%" rowspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td width="3%" height="237">&nbsp;</td>
                        <td width="92%" height="237">
                        <table border="0" width="100%" height="102%" cellspacing="0" cellpadding="0">
                            <tr>
                                <td height="60">
                                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="223">
                                    <tr>
                                        <td width="264" align="justify" style="border-left: 1px dotted #C0C0C0" height="96">
                                        <p style="margin-left: 10px">
                                        <font face="Tahoma" color="#E8E8E8" style="font-size: 10pt">
                                        CD4 Replications is a full-service 
                                        replication company committed to giving 
                                        you high quality, low prices and 
                                        personalized attention. We offer a 
                                        variety of services for the range of 
                                        your needs.</font></td>
                                        <td width="14" height="96">&nbsp;</td>
                                        <td rowspan="3">
                                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>
                                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                            <tr>
                                <td height="28" align="right" style="border-left: 1px dotted #C0C0C0" width="99%">
                                <table border="0" width="85%" cellspacing="0" cellpadding="0" height="27">
                                    <tr>
                                        <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px dotted #F1D511">
                                <p align="right" style="margin-right: 5px">
                                <i><b>
                                <font face="Arial" color="#F1D511" style="font-size: 9pt">
                                6 easy steps in getting started</font></b></i></td>
                                    </tr>
                                </table>
                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="border-left: 1px dotted #C0C0C0">
                                                <table border="0" width="226" cellspacing="3" cellpadding="0" height="131">
                                                    <!-- MSTableType="nolayout" -->
                                                    <tr>
                                                        <td align="right" colspan="3" height="12">
                        <font size="1">&nbsp;</font></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" rowspan="6" width="37">
                        &nbsp;</td>
                                                        <td align="right">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        Choose your package</font></td>
                                                        <td align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" style="border-top: 1px dotted #C0C0C0">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        CD/DVD Master</font></td>
                                                        <td align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" style="border-top: 1px dotted #C0C0C0">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        CD/DVD Artwork</font></td>
                                                        <td align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" style="border-top: 1px dotted #C0C0C0">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        Printed Material</font></td>
                                                        <td align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" style="border-top: 1px dotted #C0C0C0">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        Fill out the forms</font></td>
                                                        <td align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" width="175" style="border-top: 1px dotted #C0C0C0">
                        <font face="Trebuchet MS" color="#DBDBDB" style="font-size: 9pt">
                        Submit your order</font></td>
                                                        <td width="15" align="right" height="19">
                                                        <img border="0" src="index/dot.jpg" width="3" height="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" colspan="3" height="5">
                        <span style="font-size: 4pt">&nbsp;</span></td>
                                                        </tr>
                                                </table>
                                                </td>
                                            </tr>
                                            </table>
                                                </td>
                                            </tr>
                                        </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="264" align="justify" style="border-left: 1px dotted #C0C0C0" height="19">
                                        <font style="font-size: 6pt">&nbsp;</font></td>
                                        <td width="14" height="19">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="264" align="justify" style="border-left: 1px dotted #C0C0C0" height="64">
                                        <p style="margin-left: 10px">
                                        <font face="Tahoma" color="#E8E8E8" style="font-size: 10pt">
                                        From quick turnaround orders to high 
                                        volume projects. We provide complete 
                                        replication and duplication services, as 
                                        well as design and printing</font></td>
                                        <td width="14" height="64">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="265" align="justify">
                                        &nbsp;</td>
                                        <td width="14">&nbsp;</td>
                                        <td rowspan="2">
                                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>&nbsp; </td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp; </td>
                                            </tr>
                                        </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="265" align="justify">
                                        &nbsp;</td>
                                        <td width="14">&nbsp;</td>
                                    </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="23">&nbsp;</td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    </table>
                </td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td style="border-top: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">
        <table border="0" width="100%" cellspacing="0" cellpadding="0" height="32">
            <tr>
                <td bgcolor="#000000" width="33">&nbsp;</td>
                <td bgcolor="#000000">
                <font face="Arial" style="font-size: 8pt" color="#D9BF0D">
                323-663-7853 | 4242 W. Sunset Blvd, Suite 2 | Los Angeles, CA 
                90029</font></td>
                <td width="278" bgcolor="#000000">
                <p align="right">
                <font face="Arial" style="font-weight: 700" size="1" color="#F1D511">
                <a href="mailto:info@cd4replications.com">
                <font face="Arial" color="#F1D511">Get a Quote </font></a>| 
                <a href="index.htm"><font face="Arial" color="#F1D511">Home</font></a> </font></td>
                <td width="30" bgcolor="#000000">&nbsp;</td>
            </tr>
        </table>
        </td>
    </tr>
</table>

                </BODY></HTML>

Untitled PHP (10-Mar @ 17:59)

Syntax Highlighted Code

  1. asas

Plain Code

asas

Untitled PHP (10-Mar @ 08:36)

Syntax Highlighted Code

  1. sdfsdgdsfg

Plain Code

sdfsdgdsfg

Untitled PHP (9-Mar @ 14:09)

Syntax Highlighted Code

  1. dd

Plain Code

dd

Untitled PHP (8-Mar @ 01:00)

Syntax Highlighted Code

  1. ddssdf
  2. sd
  3. f
  4. sd
  5. sdfdsf

Plain Code

ddssdf
sd
f
sd
sdfdsf

Untitled PHP (7-Mar @ 21:39)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpInfo();
?>

Untitled PHP (7-Mar @ 15:59)

Syntax Highlighted Code

  1. <?php echo 'A ver' ?>

Plain Code

<?php echo 'A ver' ?>

Untitled PHP (6-Mar @ 18:57)

Syntax Highlighted Code

  1. <?php
  2.  echo "nader";
  3. ?>

Plain Code

<?php
 echo "nader";
?>

Untitled PHP (6-Mar @ 11:04)

Syntax Highlighted Code

  1. <?
  2. echo "Hello";
  3. ?>

Plain Code

<?
echo "Hello";
?>

teste (3-Mar @ 14:49)

Syntax Highlighted Code

  1. teste

Plain Code

teste

Untitled PHP (24-Feb @ 19:22)

Syntax Highlighted Code

  1. <?
  2.   include_once '../config/config.php';
  3.   include_once $setts['themDir'] . "/_classes/membersarea/migration/accountMigrationMain.class.php";
  4.  
  5. [163 more lines...]

Plain Code

<?
  include_once '../config/config.php';
  include_once $setts['themDir'] . "/_classes/membersarea/migration/accountMigrationMain.class.php";

  $bbParserObj = new BBparser();

  function parceDetailFinal($text) {
      global $bbParserObj;
      $text = str_replace("\n", "<br>", $text);
      return $bbParserObj->BB_Parse(addSpecialChars($text),false);
  }

  function getUahAmountConverted($amount, $currency) {
      if ($currency == 'UAH') {
          return (float)$amount;
      }

      $currency = empty($currency) ? 'USD' : $currency;
      $getCurrentCurrency = getSqlRow("SELECT * FROM probid_currencies WHERE symbol = '" . $currency . "'");

      $getAllCurrencies = mysql_query("SELECT * FROM probid_currencies WHERE symbol != '" . $currency . "'");
      while($convert = mysql_fetch_array($getAllCurrencies)) {
          $converted = $amount * ($getCurrentCurrency['converter'] / $convert['converter']);
          if ($convert['symbol'] == 'UAH') {
              return (float)$converted;
          }
      }
  }

  function convertFuncCallback(&$e) {
      $e = iconv('windows-1251', 'utf-8//IGNORE', $e);
  }

  function migrationCronCriticalError($migrationID, $soapFault) {
      $faultTrace = $soapFault->getTrace();
      mysql_query("INSERT INTO probid_migration_item_error VALUES (NULL, ".(int)$migrationID.", '".mysql_real_escape_string($faultTrace[1]['function'])."', '".mysql_real_escape_string(soapExceptionFaultEncoded($soapFault->getMessage()))."', NOW())");
      mysql_query("UPDATE probid_migration_item SET state = 'error' WHERE id = ".(int)$migrationID);
  }


  // Some auction options
  $arrayDurationAuction = array( 3 => 0, 5 => 1, 7 => 2, 10 => 3, 14 => 4, 21 => 5);
  $arrayQueryMethods = array(
      'current' => 'SELECT * FROM probid_auctions AS a LEFT JOIN probid_migration_item_state AS s ON (a.id = s.auc_item_id AND a.ownerid = s.auc_user_id) WHERE s.id IS NULL AND a.ownerid = %s AND a.closed = 0 AND a.deleted != 1 AND a.active = 1'
      'closed' => 'SELECT * FROM probid_auctions_closed AS c LEFT JOIN probid_migration_item_state AS s ON (c.id = s.auc_item_id AND c.ownerid = s.auc_user_id) WHERE s.id IS NULL AND c.ownerid = %s AND c.closed = 1 AND c.deleted != 1 AND c.active = 1 AND DATE_ADD(c.enddate, INTERVAL 2 MONTH) > NOW()'
      'limit' => 100
  );

  mb_internal_encoding("UTF-8");

  $query = mysql_query("SELECT * FROM probid_migration_item WHERE state = 'work' ORDER BY id LIMIT 1");

  while ($dataApp = mysql_fetch_assoc($query)) {
      // Connect to SOAP server
      try {
          $soapClient = new SoapClient(accountMigrationMain::$soapConfig['soapURL']);
      } catch (Exception $soapFault) {
          migrationCronCriticalError($dataApp['id'], $soapFault);
          break;
      }
      // Get local version ID
      try {
          $soapSysVersion = $soapClient->doQuerySysStatus(1, accountMigrationMain::$soapConfig['countryID'], accountMigrationMain::$soapConfig['apiKey']);
      } catch (Exception $soapFault) {
          migrationCronCriticalError($dataApp['id'], $soapFault);
          break;
      }

      array_walk($dataApp, 'convertFuncCallback');
      // Try to login
      try {
          $soapUserSession = $soapClient->doLogin($dataApp['aukro_login'], $dataApp['aukro_pass'], accountMigrationMain::$soapConfig['countryID'], accountMigrationMain::$soapConfig['apiKey'], $soapSysVersion['ver-key']);
      } catch (Exception $soapFault) {
          migrationCronCriticalError($dataApp['id'], $soapFault);
          break;
      }
      // Get user personal data
      try {
          $soapUserInfo = $soapClient->doGetMyData($soapUserSession['session-handle-part']);
      } catch (Exception $soapFault) {
          migrationCronCriticalError($dataApp['id'], $soapFault);
          break;
      }
      // Prepare query
      if ($dataApp['move_current'] == 'Y' && $dataApp['move_closed'] == 'N') { // only current item's
          $queryItems = mysql_query(sprintf($arrayQueryMethods['current'], (int)$dataApp['auc_id']) . " LIMIT " . $arrayQueryMethods['limit']);
      } else if ($dataApp['move_current'] == 'N' && $dataApp['move_closed'] == 'Y') { // only closed item's
          $queryItems = mysql_query(sprintf($arrayQueryMethods['closed'], (int)$dataApp['auc_id']) . " LIMIT " . $arrayQueryMethods['limit']);
      } else if ($dataApp['move_current'] == 'Y' && $dataApp['move_closed'] == 'Y') { // all item's
          $queryItems = mysql_query("(" . sprintf($arrayQueryMethods['current'], (int)$dataApp['auc_id']) . ") UNION (" . sprintf($arrayQueryMethods['closed'], (int)$dataApp['auc_id']) . ") LIMIT " . $arrayQueryMethods['limit']);
      }
      if (mysql_num_rows($queryItems) == 0) {
          mysql_query("UPDATE probid_migration_item SET state = 'complete' WHERE id = ".(int)$dataApp['id']);
      }
      while ($dataItem = mysql_fetch_assoc($queryItems)) {
         $dataItem['description'] = parceDetailFinal($dataItem['description']);
         $dataItem['itemname'] = addSpecialChars($dataItem['itemname']);
         array_walk($dataItem, 'convertFuncCallback');
         $affectedArray = array(
             array('fid' => 1, 'fvalue-string' => mb_strcut($dataItem['itemname'], 0, 49)), // itemname
             array('fid' => 2, 'fvalue-int' => 28721), // category
             array('fid' => 4, 'fvalue-int' => array_key_exists($dataItem['duration'], $arrayDurationAuction) ? $arrayDurationAuction[$dataItem['duration']] : 1), // duration
             array('fid' => 5, 'fvalue-int' => 1), // quantity
             array('fid' => 6, 'fvalue-float' => getUahAmountConverted($dataItem['bidstart'], $dataItem['currency'])), // start bid
             array('fid' => 9, 'fvalue-int' => (int)$soapUserInfo['user-data']->{'user-country-id'}), // country
             array('fid' => 10, 'fvalue-int' => (int)$soapUserInfo['user-data']->{'user-state-id'}), // state
             array('fid' => 11, 'fvalue-string' => $soapUserInfo['user-data']->{'user-city'}), // city
             array('fid' => 12, 'fvalue-int' => $dataItem['sc'] == 'SP' ? 0 : 1), // delivery
             array('fid' => 13, 'fvalue-int' => empty($dataItem['shipping_details']) ? 1 : 16), // delivery additional
             array('fid' => 24, 'fvalue-string' => $dataItem['description']), // description
             array('fid' => 27, 'fvalue-string' => mb_strcut($dataItem['shipping_details'], 0, 450)), // shipping_details
             array('fid' => 40, 'fvalue-int' => 1) // pay method
         );

         if ($dataItem['rp'] == 'Y' && $soapUserInfo['user-data']->{'user-rating'} >=3) { // reserv price
            $affectedArray[] = array('fid' => 7, 'fvalue-float' => getUahAmountConverted($dataItem['rpvalue'], $dataItem['currency']));
         }

         if ($dataItem['bn'] == 'Y') { // buy now
            $affectedArray[] = array('fid' => 8, 'fvalue-float' => getUahAmountConverted($dataItem['bnvalue'], $dataItem['currency']));
         }

         if ($dataItem['sc'] == 'SD') { //self delivery
            $affectedArray[] = array('fid' => 35, 'fvalue-int' => 1);
         }

         // Parce image's
         $userImageArray = array_merge((array)$dataItem['picpath'], getUserImages($dataItem['ownerid'], '1 day'));

         $imageInterator = 16;
         foreach ($userImageArray as $singleImage) {
             $fileImageName = strpos($singleImage, "http://") === false ? $site_root . $singleImage : $singleImage;
             if (!empty($singleImage) && file_exists($fileImageName)) {
                 $imageCode = @file_get_contents($fileImageName);
                 if(!empty($imageCode) && $imageInterator < 22) {
                     $affectedArray[] = array('fid' => $imageInterator++, 'fvalue-image' => $imageCode);
                 }
             }
         }


         // Add obligatory field
         $obligatoryField = array('fvalue-string', 'fvalue-int', 'fvalue-float', 'fvalue-image', 'fvalue-text', 'fvalue-datetime', 'fvalue-boolean');

         foreach ($affectedArray as &$propertyArray) {
            foreach ($obligatoryField as $oblField) {
              if (array_key_exists($oblField, $propertyArray)) continue;
              $propertyArray[$oblField] = '';
            }
         }

         // Post new auction to aukro
         try {
             $postResult = $soapClient->doNewAuctionExt($soapUserSession['session-handle-part'], $affectedArray, 0, 565551486);
             mysql_query("INSERT INTO probid_migration_item_state VALUES(NULL, ".(int)$dataItem['ownerid'].", ".(int)$dataItem['id'].", ".(int)$postResult['item-id'].", 'done', NOW())");
         } catch(Exception $soapFault) {
             mysql_query("INSERT INTO probid_migration_item_state VALUES(NULL, ".(int)$dataItem['ownerid'].", ".(int)$dataItem['id'].", 0, 'error', NOW())");
             $lastStateID = mysql_insert_id();
             if ($lastStateID > 0) {
                 mysql_query("INSERT INTO probid_migration_item_state_error VALUES(NULL, ".$lastStateID.", '".mysql_real_escape_string(soapExceptionFaultEncoded($soapFault->getMessage()))."'))");
             }
         }


      }
      mysql_free_result($queryItems);
  }
?>

Untitled PHP (28-Jan @ 22:49)

Syntax Highlighted Code

  1. <?php
  2.     $x++;
  3. ?>

Plain Code

<?php
    $x++;
?>

templates/subsilver2/ucp_register.html (26-Jan @ 13:06)

desbest.myopenid.com

Syntax Highlighted Code

  1. <!-- INCLUDE overall_header.html -->
  2.  
  3. <script type="text/javascript">
  4. // <![CDATA[
  5. [114 more lines...]

Plain Code

<!-- INCLUDE overall_header.html -->

<script type="text/javascript">
// <![CDATA[
    /**
    * Change language
    */
    function change_language(lang_iso)
    {
        document.forms['register'].change_lang.value = lang_iso;
        document.forms['register'].submit.click();
    }

// ]]>
</script>

<form name="register" method="post" action="{S_UCP_ACTION}">

<table class="tablebg" width="100%" cellspacing="1">
<tr>
    <th colspan="2" valign="middle">{L_REGISTRATION}</th>
</tr>

<!-- IF ERROR -->
    <tr>
        <td class="row3" colspan="2" align="center"><span class="gensmall error">{ERROR}</span></td>
    </tr>
<!-- ENDIF -->

<!-- IF L_REG_COND -->
    <tr>
        <td class="row2" colspan="2"><span class="gensmall">{L_REG_COND}</span></td>
    </tr>
<!-- ENDIF -->
<!-- IF .profile_fields -->
    <tr>
        <td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
    </tr>
<!-- ENDIF -->
<!-- desbest edit starts -->
<tr>
    <td class="row1"><span class="gen">What is is 5+2?</span></td>
    <td class="row2">
        <input type="text" class="post" style="width: 200px" name="math_question" value="{MATH_QUESTION}"size="6" maxlength="6" value="" />
    </td>
</tr>
<!-- desbest edit ends -->
<tr>
    <td class="row1" width="38%"><b class="genmed">{L_USERNAME}: </b><br /><span class="gensmall">{L_USERNAME_EXPLAIN}</span></td>
    <td class="row2"><input class="post" type="text" name="username" size="25" value="{USERNAME}" /></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_EMAIL_ADDRESS}: </b></td>
    <td class="row2"><input class="post" type="text" name="email" size="25" maxlength="100" value="{EMAIL}" /></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_CONFIRM_EMAIL}: </b></td>
    <td class="row2"><input class="post" type="text" name="email_confirm" size="25" maxlength="100" value="{EMAIL_CONFIRM}" /></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_PASSWORD}: </b><br /><span class="gensmall">{L_PASSWORD_EXPLAIN}</span></td>
    <td class="row2"><input class="post" type="password" name="new_password" size="25" value="{PASSWORD}" /></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_CONFIRM_PASSWORD}: </b></td>
    <td class="row2"><input class="post" type="password" name="password_confirm" size="25" value="{PASSWORD_CONFIRM}" /></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_LANGUAGE}: </b></td>
    <td class="row2"><select name="lang" onchange="change_language(this.value); return false;">{S_LANG_OPTIONS}</select></td>
</tr>
<tr>
    <td class="row1"><b class="genmed">{L_TIMEZONE}: </b></td>
    <td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
</tr>
<!-- BEGIN profile_fields -->
    <tr>
        <td class="row1" width="35%">
            <b class="genmed">{profile_fields.LANG_NAME}: </b>
            <!-- IF profile_fields.S_REQUIRED --><b>*</b><!-- ENDIF -->
            <!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF -->
        </td>
        <td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall error">{profile_fields.ERROR}</span><!-- ENDIF --></td>
    </tr>
<!-- END profile_fields -->

<!-- IF S_CONFIRM_CODE -->
    <tr>
        <th colspan="2" valign="middle">{L_CONFIRMATION}</th>
    </tr>
    <tr>
        <td class="row3" colspan="2"><span class="gensmall">{L_CONFIRM_EXPLAIN}</span></td>
    </tr>
    <tr>
        <td class="row1" colspan="2" align="center">{CONFIRM_IMG}</td>
    </tr>
    <tr>
        <td class="row1"><b class="genmed">{L_CONFIRM_CODE}: </b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
        <td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /></td>
    </tr>
<!-- ENDIF -->

<!-- IF S_COPPA -->
    <tr>
        <th colspan="2" valign="middle">{L_COPPA_COMPLIANCE}</th>
    </tr>
    <tr>
        <td class="row3" colspan="2"><span class="gensmall">{L_COPPA_EXPLAIN}</span></td>
    </tr>
<!-- ENDIF -->

<tr>
    <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" id="submit" value="{L_SUBMIT}" />  <input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td>
</tr>
</table>
{S_FORM_TOKEN}
</form>

<!-- INCLUDE overall_footer.html -->

includes/ucp/ucp_register.php (26-Jan @ 13:04)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. /**
  3. *
  4. * @package ucp
  5. [575 more lines...]

Plain Code

<?php
/**
*
* @package ucp
* @version $Id: ucp_register.php 8782 2008-08-23 17:20:55Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
    exit;
}

/**
* ucp_register
* Board registration
* @package ucp
*/
class ucp_register
{
    var $u_action;

    function main($id, $mode)
    {
        global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;

        //
        if ($config['require_activation'] == USER_ACTIVATION_DISABLE)
        {
            trigger_error('UCP_REGISTER_DISABLE');
        }

        include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);

        $confirm_id        = request_var('confirm_id', '');
        $coppa            = (isset($_REQUEST['coppa'])) ? ((!empty($_REQUEST['coppa'])) ? 1 : 0) : false;
        $agreed            = (!empty($_POST['agreed'])) ? 1 : 0;
        $submit            = (isset($_POST['submit'])) ? true : false;
        $change_lang    = request_var('change_lang', '');
        $user_lang        = request_var('lang', $user->lang_name);

        if ($agreed)
        {
            add_form_key('ucp_register');
        }
        else
        {
            add_form_key('ucp_register_terms');
        }


        if ($change_lang || $user_lang != $config['default_lang'])
        {
            $use_lang = ($change_lang) ? basename($change_lang) : basename($user_lang);

            if (file_exists($user->lang_path . $use_lang . '/'))
            {
                if ($change_lang)
                {
                    $submit = false;

                    // Setting back agreed to let the user view the agreement in his/her language
                    $agreed = (empty($_GET['change_lang'])) ? 0 : $agreed;
                }

                $user->lang_name = $lang = $use_lang;
                $user->lang = array();
                $user->add_lang(array('common', 'ucp'));
            }
            else
            {
                $change_lang = '';
                $user_lang = $user->lang_name;
            }
        }

        $cp = new custom_profile();

        $error = $cp_data = $cp_error = array();


        if (!$agreed || ($coppa === false && $config['coppa_enable']) || ($coppa && !$config['coppa_enable']))
        {
            $add_lang = ($change_lang) ? '&change_lang=' . urlencode($change_lang) : '';
            $add_coppa = ($coppa !== false) ? '&coppa=' . $coppa : '';

            $s_hidden_fields = ($confirm_id) ? array('confirm_id' => $confirm_id) : array();

            // If we change the language, we want to pass on some more possible parameter.
            if ($change_lang)
            {
                // We do not include the password
                $s_hidden_fields = array_merge($s_hidden_fields, array(
                    'username'            => utf8_normalize_nfc(request_var('username', '', true)),
                    'email'                => strtolower(request_var('email', '')),
                    'email_confirm'        => strtolower(request_var('email_confirm', '')),
                    'confirm_code'        => request_var('confirm_code', ''),
                    'confirm_id'        => request_var('confirm_id', ''),
                    'lang'                => $user->lang_name,
                    'tz'                => request_var('tz', (float) $config['board_timezone']),
                ));
            }

            if ($coppa === false && $config['coppa_enable'])
            {
                $now = getdate();
                $coppa_birthday = $user->format_date(mktime($now['hours'] + $user->data['user_dst'], $now['minutes'], $now['seconds'], $now['mon'], $now['mday'] - 1, $now['year'] - 13), $user->lang['DATE_FORMAT']);
                unset($now);

                $template->assign_vars(array(
                    'L_COPPA_NO'        => sprintf($user->lang['UCP_COPPA_BEFORE'], $coppa_birthday),
                    'L_COPPA_YES'        => sprintf($user->lang['UCP_COPPA_ON_AFTER'], $coppa_birthday),

                    'U_COPPA_NO'        => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register&coppa=0' . $add_lang),
                    'U_COPPA_YES'        => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register&coppa=1' . $add_lang),

                    'S_SHOW_COPPA'        => true,
                    'S_HIDDEN_FIELDS'    => build_hidden_fields($s_hidden_fields),
                    'S_UCP_ACTION'        => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register' . $add_lang),
                ));
            }
            else
            {
                $template->assign_vars(array(
                    'L_TERMS_OF_USE'    => sprintf($user->lang['TERMS_OF_USE_CONTENT'], $config['sitename'], generate_board_url()),

                    'S_SHOW_COPPA'        => false,
                    'S_REGISTRATION'    => true,
                    'S_HIDDEN_FIELDS'    => build_hidden_fields($s_hidden_fields),
                    'S_UCP_ACTION'        => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register' . $add_lang . $add_coppa),
                    )
                );
            }

            $this->tpl_name = 'ucp_agreement';
            return;
        }


        // Try to manually determine the timezone and adjust the dst if the server date/time complies with the default setting +/- 1
        $timezone = date('Z') / 3600;
        $is_dst = date('I');

        if ($config['board_timezone'] == $timezone || $config['board_timezone'] == ($timezone - 1))
        {
            $timezone = ($is_dst) ? $timezone - 1 : $timezone;

            if (!isset($user->lang['tz_zones'][(string) $timezone]))
            {
                $timezone = $config['board_timezone'];
            }
        }
        else
        {
            $is_dst = $config['board_dst'];
            $timezone = $config['board_timezone'];
        }

        //desbest edit: (look for math_question as that is the added edit)
        $data = array(
            'username'            => utf8_normalize_nfc(request_var('username', '', true)),
            'math_question'            => request_var('math_question', '', true),
            'new_password'        => request_var('new_password', '', true),
            'password_confirm'    => request_var('password_confirm', '', true),
            'email'                => strtolower(request_var('email', '')),
            'email_confirm'        => strtolower(request_var('email_confirm', '')),
            'confirm_code'        => request_var('confirm_code', ''),
            'lang'                => basename(request_var('lang', $user->lang_name)),
            'tz'                => request_var('tz', (float) $timezone),
        );

        // Check and initialize some variables if needed
        if ($submit)
        {
            $error = validate_data($data, array(
                'username'            => array(
                    array('string', false, $config['min_name_chars'], $config['max_name_chars']),
                    array('username', '')),
                'new_password'        => array(
                    array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
                    array('password')),
                'password_confirm'    => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
                'email'                => array(
                    array('string', false, 6, 60),
                    array('email')),
                'email_confirm'        => array('string', false, 6, 60),
                'confirm_code'        => array('string', !$config['enable_confirm'], 5, 8),
                'tz'                => array('num', false, -14, 14),
                'lang'                => array('match', false, '#^[a-z_\-]{2,}$#i'),
            ));
            if (!check_form_key('ucp_register'))
            {
                $error[] = $user->lang['FORM_INVALID'];
            }
            
            //desbest edit starts
            if ($data['math_question'] != "7")
            {
                $error[] = "You silly spambot failed to get the question right";
                //echo "<h1>".$data['math_question']."question is wrong</h1>";
                //$error[] = $user->lang['MATH_QUESTION_ERROR'];
            }
            //desbest edit ends

            // Replace "error" strings with their real, localised form
            $error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);

            // DNSBL check
            if ($config['check_dnsbl'])
            {
                if (($dnsbl = $user->check_dnsbl('register')) !== false)
                {
                    $error[] = sprintf($user->lang['IP_BLACKLISTED'], $user->ip, $dnsbl[1]);
                }
            }

            // validate custom profile fields
            $cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);
            
            
            }
            

            //desbest edit: validation begins
            // Visual Confirmation handling
            $wrong_confirm = false;
            if ($config['enable_confirm'])
            {
                if (!$confirm_id)
                {
                    $error[] = $user->lang['CONFIRM_CODE_WRONG'];
                    $wrong_confirm = true;
                }
                else
                {
                    $sql = 'SELECT code
                        FROM ' . CONFIRM_TABLE . "
                        WHERE confirm_id = '" . $db->sql_escape($confirm_id) . "'
                            AND session_id = '" . $db->sql_escape($user->session_id) . "'
                            AND confirm_type = " . CONFIRM_REG;
                    $result = $db->sql_query($sql);
                    $row = $db->sql_fetchrow($result);
                    $db->sql_freeresult($result);

                    if ($row)
                    {
                        if (strcasecmp($row['code'], $data['confirm_code']) === 0)
                        {
                            $sql = 'DELETE FROM ' . CONFIRM_TABLE . "
                                WHERE confirm_id = '" . $db->sql_escape($confirm_id) . "'
                                    AND session_id = '" . $db->sql_escape($user->session_id) . "'
                                    AND confirm_type = " . CONFIRM_REG;
                            $db->sql_query($sql);
                        }
                        else
                        {
                            $error[] = $user->lang['CONFIRM_CODE_WRONG'];
                            $wrong_confirm = true;
                        }
                    }
                    else
                    {
                        $error[] = $user->lang['CONFIRM_CODE_WRONG'];
                        $wrong_confirm = true;
                    }
                }
            }
                //desbest edit
                //$damath = $user->lang['MATH_QUESTION_ERROR']; /* print_r($user->lang); */ exit();
                
                
                                                
            if (!sizeof($error))
            {
                if ($data['new_password'] != $data['password_confirm'])
                {
                    $error[] = $user->lang['NEW_PASSWORD_ERROR'];
                }

                if ($data['email'] != $data['email_confirm'])
                {
                    $error[] = $user->lang['NEW_EMAIL_ERROR'];
                }
            
            
            


            if (!sizeof($error))
            {
                $server_url = generate_board_url();

                // Which group by default?
                $group_name = ($coppa) ? 'REGISTERED_COPPA' : 'REGISTERED';

                $sql = 'SELECT group_id
                    FROM ' . GROUPS_TABLE . "
                    WHERE group_name = '" . $db->sql_escape($group_name) . "'
                        AND group_type = " . GROUP_SPECIAL;
                $result = $db->sql_query($sql);
                $row = $db->sql_fetchrow($result);
                $db->sql_freeresult($result);

                if (!$row)
                {
                    trigger_error('NO_GROUP');
                }

                $group_id = $row['group_id'];

                if (($coppa ||
                    $config['require_activation'] == USER_ACTIVATION_SELF ||
                    $config['require_activation'] == USER_ACTIVATION_ADMIN) && $config['email_enable'])
                {
                    $user_actkey = gen_rand_string(10);
                    $key_len = 54 - (strlen($server_url));
                    $key_len = ($key_len < 6) ? 6 : $key_len;
                    $user_actkey = substr($user_actkey, 0, $key_len);

                    $user_type = USER_INACTIVE;
                    $user_inactive_reason = INACTIVE_REGISTER;
                    $user_inactive_time = time();
                }
                else
                {
                    $user_type = USER_NORMAL;
                    $user_actkey = '';
                    $user_inactive_reason = 0;
                    $user_inactive_time = 0;
                }

                $user_row = array(
                    'username'                => $data['username'],
                    'user_password'            => phpbb_hash($data['new_password']),
                    'user_email'            => $data['email'],
                    'group_id'                => (int) $group_id,
                    'user_timezone'            => (float) $data['tz'],
                    'user_dst'                => $is_dst,
                    'user_lang'                => $data['lang'],
                    'user_type'                => $user_type,
                    'user_actkey'            => $user_actkey,
                    'user_ip'                => $user->ip,
                    'user_regdate'            => time(),
                    'user_inactive_reason'    => $user_inactive_reason,
                    'user_inactive_time'    => $user_inactive_time,
                );

                // Register user...
                $user_id = user_add($user_row, $cp_data);

                // This should not happen, because the required variables are listed above...
                if ($user_id === false)
                {
                    trigger_error('NO_USER', E_USER_ERROR);
                }

                if ($coppa && $config['email_enable'])
                {
                    $message = $user->lang['ACCOUNT_COPPA'];
                    $email_template = 'coppa_welcome_inactive';
                }
                else if ($config['require_activation'] == USER_ACTIVATION_SELF && $config['email_enable'])
                {
                    $message = $user->lang['ACCOUNT_INACTIVE'];
                    $email_template = 'user_welcome_inactive';
                }
                else if ($config['require_activation'] == USER_ACTIVATION_ADMIN && $config['email_enable'])
                {
                    $message = $user->lang['ACCOUNT_INACTIVE_ADMIN'];
                    $email_template = 'admin_welcome_inactive';
                }
                else
                {
                    $message = $user->lang['ACCOUNT_ADDED'];
                    $email_template = 'user_welcome';
                }

                if ($config['email_enable'])
                {
                    include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);

                    $messenger = new messenger(false);

                    $messenger->template($email_template, $data['lang']);

                    $messenger->to($data['email'], $data['username']);

                    $messenger->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
                    $messenger->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
                    $messenger->headers('X-AntiAbuse: Username - ' . $user->data['username']);
                    $messenger->headers('X-AntiAbuse: User IP - ' . $user->ip);

                    $messenger->assign_vars(array(
                        'WELCOME_MSG'    => htmlspecialchars_decode(sprintf($user->lang['WELCOME_SUBJECT'], $config['sitename'])),
                        'USERNAME'        => htmlspecialchars_decode($data['username']),
                        'PASSWORD'        => htmlspecialchars_decode($data['new_password']),
                        'U_ACTIVATE'    => "$server_url/ucp.$phpEx?mode=activate&u=$user_id&k=$user_actkey")
                    );

                    if ($coppa)
                    {
                        $messenger->assign_vars(array(
                            'FAX_INFO'        => $config['coppa_fax'],
                            'MAIL_INFO'        => $config['coppa_mail'],
                            'EMAIL_ADDRESS'    => $data['email'])
                        );
                    }

                    $messenger->send(NOTIFY_EMAIL);

                    if ($config['require_activation'] == USER_ACTIVATION_ADMIN)
                    {
                        // Grab an array of user_id's with a_user permissions ... these users can activate a user
                        $admin_ary = $auth->acl_get_list(false, 'a_user', false);
                        $admin_ary = (!empty($admin_ary[0]['a_user'])) ? $admin_ary[0]['a_user'] : array();

                        // Also include founders
                        $where_sql = ' WHERE user_type = ' . USER_FOUNDER;

                        if (sizeof($admin_ary))
                        {
                            $where_sql .= ' OR ' . $db->sql_in_set('user_id', $admin_ary);
                        }

                        $sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type
                            FROM ' . USERS_TABLE . ' ' .
                            $where_sql;
                        $result = $db->sql_query($sql);

                        while ($row = $db->sql_fetchrow($result))
                        {
                            $messenger->template('admin_activate', $row['user_lang']);
                            $messenger->to($row['user_email'], $row['username']);
                            $messenger->im($row['user_jabber'], $row['username']);

                            $messenger->assign_vars(array(
                                'USERNAME'            => htmlspecialchars_decode($data['username']),
                                'U_USER_DETAILS'    => "$server_url/memberlist.$phpEx?mode=viewprofile&u=$user_id",
                                'U_ACTIVATE'        => "$server_url/ucp.$phpEx?mode=activate&u=$user_id&k=$user_actkey")
                            );

                            $messenger->send($row['user_notify_type']);
                        }
                        $db->sql_freeresult($result);
                    }
                }

                $message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
                trigger_error($message);
            }
        }

        $s_hidden_fields = array(
            'agreed'        => 'true',
            'change_lang'    => 0,
        );

        if ($config['coppa_enable'])
        {
            $s_hidden_fields['coppa'] = $coppa;
        }
        $s_hidden_fields = build_hidden_fields($s_hidden_fields);

        $confirm_image = '';

        // Visual Confirmation - Show images

        if ($config['enable_confirm'])
        {
            if ($change_lang)
            {
                $str = '&change_lang=' . $change_lang;
                $sql = 'SELECT code
                        FROM ' . CONFIRM_TABLE . "
                        WHERE confirm_id = '" . $db->sql_escape($confirm_id) . "'
                            AND session_id = '" . $db->sql_escape($user->session_id) . "'
                            AND confirm_type = " . CONFIRM_REG;
                $result = $db->sql_query($sql);
                if (!$row = $db->sql_fetchrow($result))
                {
                    $confirm_id = '';
                }
                $db->sql_freeresult($result);
            }
            else
            {
                $str = '';
            }
            if (!$change_lang || !$confirm_id)
            {
                $user->confirm_gc(CONFIRM_REG);

                $sql = 'SELECT COUNT(session_id) AS attempts
                    FROM ' . CONFIRM_TABLE . "
                    WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
                        AND confirm_type = " . CONFIRM_REG;
                $result = $db->sql_query($sql);
                $attempts = (int) $db->sql_fetchfield('attempts');
                $db->sql_freeresult($result);

                if ($config['max_reg_attempts'] && $attempts > $config['max_reg_attempts'])
                {
                    trigger_error('TOO_MANY_REGISTERS');
                }

                $code = gen_rand_string(mt_rand(5, 8));
                $confirm_id = md5(unique_id($user->ip));
                $seed = hexdec(substr(unique_id(), 4, 10));

                // compute $seed % 0x7fffffff
                $seed -= 0x7fffffff * floor($seed / 0x7fffffff);

                $sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
                    'confirm_id'    => (string) $confirm_id,
                    'session_id'    => (string) $user->session_id,
                    'confirm_type'    => (int) CONFIRM_REG,
                    'code'            => (string) $code,
                    'seed'            => (int) $seed)
                );
                $db->sql_query($sql);
            }
            $confirm_image = '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_REG . $str) . '" alt="" title="" />';
            $s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';
        }

        //
        $l_reg_cond = '';
        switch ($config['require_activation'])
        {
            case USER_ACTIVATION_SELF:
                $l_reg_cond = $user->lang['UCP_EMAIL_ACTIVATE'];
            break;

            case USER_ACTIVATION_ADMIN:
                $l_reg_cond = $user->lang['UCP_ADMIN_ACTIVATE'];
            break;
        }

        $template->assign_vars(array(
            'ERROR'                => (sizeof($error)) ? implode('<br />', $error) : '',
            'USERNAME'            => $data['username'],
            'PASSWORD'            => $data['new_password'],
            'MATH_QUESTION'            => $data['math_question'],
            'PASSWORD_CONFIRM'    => $data['password_confirm'],
            'EMAIL'                => $data['email'],
            'EMAIL_CONFIRM'        => $data['email_confirm'],
            'CONFIRM_IMG'        => $confirm_image,

            'L_CONFIRM_EXPLAIN'            => sprintf($user->lang['CONFIRM_EXPLAIN'], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>'),
            'L_REG_COND'                => $l_reg_cond,
            'L_USERNAME_EXPLAIN'        => sprintf($user->lang[$config['allow_name_chars'] . '_EXPLAIN'], $config['min_name_chars'], $config['max_name_chars']),
            'L_PASSWORD_EXPLAIN'        => sprintf($user->lang[$config['pass_complex'] . '_EXPLAIN'], $config['min_pass_chars'], $config['max_pass_chars']),

            'S_LANG_OPTIONS'    => language_select($data['lang']),
            'S_TZ_OPTIONS'        => tz_select($data['tz']),
            'S_CONFIRM_CODE'    => ($config['enable_confirm']) ? true : false,
            'S_COPPA'            => $coppa,
            'S_HIDDEN_FIELDS'    => $s_hidden_fields,
            'S_UCP_ACTION'        => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register'),
            )
        );

        //
        $user->profile_fields = array();

        // Generate profile fields -> Template Block Variable profile_fields
        $cp->generate_profile_fields('register', $user->get_iso_lang_id());

        //
        $this->tpl_name = 'ucp_register';
        $this->page_title = 'UCP_REGISTRATION';
    }
}

?>

soundcloud.php debug (15-Jan @ 22:32)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. /**
  3.  * API Wrapper for SoundCloud written in PHP with support for authication using OAuth.
  4.  *
  5. [187 more lines...]

Plain Code

<?php
/**
 * API Wrapper for SoundCloud written in PHP with support for authication using OAuth.
 *
 * @author Anton Lindqvist <anton@qvister.se>
 * @version 1.1
 * @link http://github.com/mptre/php-soundcloud/
 */
        // desbest edit. uncomment the lines below 
        //if the api fails to generate a token
        //one line at a time. working DoWnWaRdS
        //echo "$consumer_key<br> $consumer_secret,<br>  "; 
//        echo "$oauth_token <br> $oauth_token_secret"; 
        //exit();
        //
        
class Soundcloud {
    const VERSION = '1.1';
    const URL_API = 'http://api.soundcloud.com/';
    const URL_OAUTH = 'http://api.soundcloud.com/oauth/';

    function __construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL) {
        $this->sha1_method = new OAuthSignatureMethod_HMAC_SHA1() or die ("could not sha1 method");
        $this->consumer = new OAuthConsumer($consumer_key, $consumer_secret)or die ("could not make a consumer");

        if (!empty($oauth_token) && !empty($oauth_token_secret)) {
            $this->token = new OAuthConsumer($oauth_token, $oauth_token_secret);
        } else {
            echo "<span style=\"background-color: yellow;\">This yellow section is coming from soundcloud.php
            <br>A token could not be generated.
            <br>$oauth_token and $oauth_token_secret
            </span><hr>";
            $this->token = NULL;
        }
    }

    function get_authorize_url($token) {
        if (is_array($token)) {
            $token = $token['oauth_token'];
        }

        return $this->_get_url('authorize') . sprintf('?oauth_token=%s', $token);
    }

    function get_request_token($oauth_callback) {
        $request = $this->request(
            $this->_get_url('request'),
            'POST',
            array('oauth_callback' => $oauth_callback)
        );
        $token = $this->_parse_response($request);

        $this->token = new OAuthConsumer(
            $token['oauth_token'],
            $token['oauth_token_secret']
        );

        return $token;
    }

    function get_access_token($token) {
        $response = $this->request(
            $this->_get_url('access'),
            'POST',
            array('oauth_verifier' => $token)
        );
        $token = $this->_parse_response($response);
        $this->token = new OAuthConsumer(
            $token['oauth_token'],
            $token['oauth_token_secret']
        );

        return $token;
    }

    function request($resource, $method = 'GET', $args = array(), $headers = NULL) {
        if (!preg_match('/http:\/\//', $resource)) {
            $url = self::URL_API . $resource;
        } else {
            $url = $resource;
        }

        if (stristr($headers['Content-Type'], 'multipart/form-data')) {
            $body = FALSE;
        } elseif (stristr($headers['Content-Type'], 'application/xml')) {
            $body = FALSE;
        } else {
            $body = TRUE;
        }

        $request = OAuthRequest::from_consumer_and_token(
            $this->consumer,
            $this->token,
            $method,
            $url,
            ($body === TRUE) ? $args : NULL
        );
        $request->sign_request($this->sha1_method, $this->consumer, $this->token);

        return $this->_curl(
            $request->get_normalized_http_url(),
            $request,
            $args,
            $headers
        );
    }

    private function _build_header($headers) {
        $h = array();

        if (count($headers) > 0) {
            foreach ($headers as $key => $val) {
                $h[] = $key . ': ' . $val;
            }

            return $h;
        } else {
            return $headers;
        }
    }

    private function _curl($url, $request, $post_data = NULL, $headers = NULL) {
        $ch = curl_init();
        $mime = (stristr($headers['Content-Type'], 'multipart/form-data')) ? TRUE : FALSE;
        $headers['User-Agent'] = (isset($headers['User-Agent']))
            ? $headers['User-Agent']
            : 'PHP SoundCloud/' . self::VERSION;
        $headers = (is_array($headers)) ? $this->_build_header($headers) : array();
        $options = array(
            CURLOPT_URL => $url,
            CURLOPT_HEADER => FALSE,
            CURLOPT_RETURNTRANSFER => TRUE
        );

        if (in_array($request->get_normalized_http_method(), array('DELETE', 'PUT'))) {
            $options[CURLOPT_CUSTOMREQUEST] = $request->get_normalized_http_method();
            $options[CURLOPT_POSTFIELDS] = '';
        }

        if (is_array($post_data) && count($post_data) > 0 || $mime === TRUE) {
            $options[CURLOPT_POSTFIELDS] = (is_array($post_data) && count($post_data) == 1)
                ? ((isset($post_data[0])) ? $post_data[0] : $post_data)
                : $post_data;
            $options[CURLOPT_POST] = TRUE;
        }

        $headers[] = $request->to_header();
        $options[CURLOPT_HTTPHEADER] = $headers;

        curl_setopt_array($ch, $options);

        $response = curl_exec($ch);
        $this->http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);

        curl_close($ch);

        return $response;
    }

    private function _get_url($type) {
        switch ($type) {
            case 'access':
                $method = 'access_token';
                break;
            case 'authorize':
                $method = 'authorize';
                break;
            case 'request':
                $method = 'request_token';
                break;
        }

        return self::URL_OAUTH . $method;
    }

    private function _parse_response($response) {
        $return = array();
        $response = explode('&', $response);

        foreach ($response as $r) {
            if (strstr($r, '=')) {
                list($key, $val) = explode('=', $r);

                if (!empty($key) && !empty($val)) {
                    $return[urldecode($key)] = urldecode($val);
                }
            }
        }

        return (count($return) > 0) ? $return : FALSE;
    }
}

Untitled PHP (13-Jan @ 20:38)

Syntax Highlighted Code

  1. <?php
  2.  
  3. for ($i = 0; $i <= 10; $i++){
  4. [4 more lines...]

Plain Code

<?php
session_start();

for ($i = 0; $i <= 10; $i++){
     echo "Bonjour numero $i";
}

session_destroy();
?>

Fresherplay Soundcloud Authentication (import.php) (13-Jan @ 18:43)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. require_once 'oauth.php';
  3. require_once 'soundcloud.php';
  4. [336 more lines...]

Plain Code

<?php
error_reporting(E_ALL);
require_once 'oauth.php';
require_once 'soundcloud.php';

session_start();

// Clear the session i.e delete all stored tokens.
if (isset($_GET['logout'])) {
    session_destroy();
}

// Change these four variables, note the that temporary path must be writable by the server.
$consumer_key = '6Sg4X3oTeaq5U6qJGJehw';
$consumer_secret = '6JBq9Qz2UHBMfSWS26tYx7jP6YUlW6DZqQxSMXENc2c';
$callback_url = 'http://fresherplay.tk/';
$tmp_path = 'temp/';

// Variables used for verifying the status of the "OAuth dance".
$oauth_token = (isset($_GET['oauth_verifier']))
    ? $_GET['oauth_verifier']
    : ((isset($_SESSION['oauth_access_token'])) ? $_SESSION['oauth_access_token'] : NULL);
$oauth_request_token = (isset($_SESSION['oauth_request_token']))
    ? $_SESSION['oauth_request_token']
    : NULL;
$oauth_request_token_secret = (isset($_SESSION['oauth_request_token_secret']))
    ? $_SESSION['oauth_request_token_secret']
    : NULL;

if (isset($oauth_token) && isset($oauth_request_token) && isset($oauth_request_token_secret)) {
    // Retreive access tokens if missing.
    if (!isset($_SESSION['oauth_access_token']) && !isset($_SESSION['oauth_access_token_secret'])) {
        $soundcloud = new Soundcloud(
            $consumer_key,
            $consumer_secret,
            $_SESSION['oauth_request_token'],
            $_SESSION['oauth_request_token_secret']
        );
        $token = $soundcloud->get_access_token($oauth_token);
        $_SESSION['oauth_access_token'] = $token['oauth_token'];
        $_SESSION['oauth_access_token_secret'] = $token['oauth_token_secret'];
    }

    // Construct a fully authicated connection with SoundCloud.
    $soundcloud = new Soundcloud(
        $consumer_key,
        $consumer_secret,
        $_SESSION['oauth_access_token'],
        $_SESSION['oauth_access_token_secret']
    );

    // Get basic info about the authicated visitor.
    $me = $soundcloud->request('me');
    $me = new SimpleXMLElement($me);
    $me = get_object_vars($me);
    $mytracks = $soundcloud->request('me/tracks/');
    $mytracks = new SimpleXMLElement($mytracks);
    $mytracks = get_object_vars($mytracks);
    $x1 = $soundcloud->request('me/tracks/');
    $x1 = new SimpleXMLElement($x1);
    $x2 = $soundcloud->request('me/tracks/');
    $x2 = new SimpleXMLElement($x2);

    // If a track is submitted.
    if (isset($_POST['submit'])) {
        // We have to make sure it's a valid and supported format by SoundCloud.
        // Note that you also can include artwork for your tracks. Use the same
        // procedure as for the tracks. PNG, JPG, GIF allowed and a max size of 5MB.
        // The artwork field is called track[artwork_data].
        $mimes = array(
            'aac' => 'video/mp4',
            'aiff' => 'audio/x-aiff',
            'flac' => 'audio/flac',
            'mp3' => 'audio/mpeg',
            'ogg' => 'audio/ogg',
            'wav' => 'audio/x-wav'
        );
        $extension = explode('.', $_FILES['file']['name']);
        $extension = (isset($extension[count($extension) - 1]))
            ? $extension[count($extension) - 1]
            : NULL;
        $mime = (isset($mimes[$extension])) ? $mimes[$extension] : NULL;

        if (isset($mime)) {
            $tmp_file = $tmp_path . $_FILES['file']['name'];

            // Store the track temporary.
            if (move_uploaded_file($_FILES['file']['tmp_name'], $tmp_file)) {
                $post_data = array(
                    'track[title]' => stripslashes($_POST['title']),
                    'track[asset_data]' => realpath($tmp_file),
                    'track[sharing]' => 'private'
                );

                if ($response = $soundcloud->upload_track($post_data, $mime)) {
                    $response = new SimpleXMLElement($response);
                    $response = get_object_vars($response);
                    $message = 'Success! <a href="' . $response['permalink-url'] . '">Your track</a> has been uploaded!';

                    // Delete the temporary file.
                    unlink(realpath($tmp_file));
                } else {
                    $message = 'Something went wrong while talking to SoundCloud, please try again.';
                }
            } else {
                $message = 'Couldn\'t move file, make sure the temporary path is writable by the server.';
            }
        } else {
            $message = 'SoundCloud support .mp3, .aiff, .wav, .flac, .aac, and .ogg files. Please select a different file.';
        }
    }
} else {
    // This is the first step in the "OAuth dance" where we ask the visitior to authicate himself.
    $soundcloud = new Soundcloud($consumer_key, $consumer_secret);
    $token = $soundcloud->get_request_token($callback_url) 
       or die ("    <h1>Could not connect to soundcloud via the api</h1>    <br>Email fresherplay about this error     <br>Use the back button to go back")
       ;

    $_SESSION['oauth_request_token'] = $token['oauth_token'];
    $_SESSION['oauth_request_token_secret'] = $token['oauth_token_secret'];

    $login = $soundcloud->get_authorize_url($token['oauth_token']);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Fresherplay</title>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="ui-core.js"></script>
<script type="text/javascript" src="flash.js"></script>
<script type="text/javascript" src="localscroll.js"></script>
<script type="text/javascript" src="hide.js"></script>
<script type='text/javascript' src='swfobject.js'></script>

<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=528,height=158');");
}
// End -->
</script>


<script type="text/javascript">

// Array variable to hold a list of all player IDs on the page
var mediaPlayer = ['s1', 's2', 's3', 's4'];

// Add a listener to trigger function stopOtherPlayers whenever an item is played
function playerReady(obj) {
document.getElementById(obj.id).addControllerListener('ITEM', 'stopOtherPlayers');
}

// Loop through all player IDs and, unless the player ID is the currently selected player ID, tell them to stop
function stopOtherPlayers(obj) {
for ( var id in mediaPlayer ) {
if ( obj.id != mediaPlayer[id] ) document.getElementById(mediaPlayer[id]).sendEvent('STOP');
}
}
</script>

<link rel="stylesheet"  type="text/css" href="stylesheet.css">
</head>
<body>
<div class="headerpane" id="thetop">
<img src="header.png" align="left" style="z-index: 3"> 



</div>

<div class="leftpane">    

<div class="menuhere"><div id="navcontainer">
    <ul id="navlist">
    <li id="active"><a>Import Music</a></li>
    <!-- <li id="sel4"><a>Email Fresherplay</a></li> -->

    </ul>
    </div>
</div></div>


    
</div>
<div class="rightpane">  

<div class="content5" id="thechart">    

<div id="rev1">    
    <font class="headline">Import Music from Soundcloud</font>
        <?php if (isset($login)): ?>
            <a class="button" href="<?php echo $login; ?>"><img src="sc-connect.png"></a>
        <?php elseif (isset($me)): ?>
                        <img src="<?php echo $me['avatar-url']; ?>" width="75" height="75" alt="" align="left"/>
                        <a href="<?php echo $me['permalink-url']; ?>"><?php echo $me['permalink']; ?></a>
                    <br><?php echo $me['full-name'] ?>, <?php echo $me['city']; ?>, <?php echo $me['country']; ?></p>
                    <br>
                    <?php if (isset($me)): ?>
                    <br><a class="logout" href="?logout=true">logout from soundcloud</a><br> 
                    <?php endif; ?>
                    <br>You have <?php echo $me['track-count']; ?> <?php echo ($me['track-count'] == 1) ? 'track' : 'tracks'; ?>.</p>
<br>
<?php
    echo "<table cellspacing=\"5\" cellpadding=\"5\">";    
foreach($x2 as $user){
echo "<tr><td>";
if (!isset($numbera)) {$number = "0";}
$numbera = $numbera +1;

    echo '<img src="arrow.png" align="left">'.$user->title.' 
    <!-- Address: '.$user->address.' -->
    <br />
    ';
$stream2 = $user->xpath('stream-url');
$perma2 = $user->xpath('permalink');
//print_r($perma2);
//echo "<b> $perma2[0] </b>";
$stream3 = $stream2[0];
$perma3 = $perma2[0];
$stream4 = urlencode($stream3);
$perma4 = urlencode($perma3);
echo "
<div id=\"YouTubeReloadedPlayer$numbera\">
To play music on this website you need the Adobe Flash Plugin.
<br><a href=\"http://www.adobe.com/go/EN_US-H-GET-FLASH\"><img src=\"getflash.png\"></a>
</div>

<script type='text/javascript'>
  var so = new SWFObject('player2/player.swf','mpl','470','55','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','$stream3');
  so.addVariable('provider','sound');
  so.write('YouTubeReloadedPlayer$numbera');
</script>
";
echo "
</td>
<td>
<img src=\"upload.png\" height=\"60\" width=\"60\">
<br><font size=\"-2\"><a href=\"import2.php?url=$stream4&permalink=$perma4\">Add to Fresherplay</a></font>
</td>
</tr>
";

} echo "</table>";
//print_r($x2->tracks->track);
//print $x2->tracks->track->permalink-XXurl . "\n";

/*
        foreach($x1->story as $story) {
    print("<h2>" . $story->headline . "</h2><br />");
    print($story->description . "<br />_________________________<br />");
    print($story->headline["date"] . "<br /><br />");
    
}
    
    */    
//print_r($x1);
//echo "<hr size=\"30\" color=\"#6633ff\">";



//echo $x1->getName() . "<br />";
//echo "<hr size=\"30\" color=\"#336633\">";
foreach($x1->children() as $child)
{

//print_r($child);
//echo $child->getName() . ": " . $child . "<br />";
//echo "$child[title]";
foreach($child->children() as $childx)
{
//echo ("$childx[0]" );
/*
*/
//echo $childx->getName() . ": " . $childx . "<br />";

}
print($child[tracks][track]);
//echo $child->getName() . ": " . $child . "<br />";
//echo "<hr size=\"30\" bgcolor=\"#cc0000\" color=\"#cc0000\">";
}
  
  
  
          //$myvar = $mytracks->[track]->uri;
        //print_r($);
        ?>                <!-- <h2>Upload a new track</h2>
                <form action="" method="post" enctype="multipart/form-data">
                    <p>
                        <label for="title">Track title</label>
                        <input class="text" type="text" name="title" id="title" />
                    </p>
                    <p>
                        <label for="file">File</label>
                        <input class="file" type="file" name="file" value="" id="file" />
                    </p>
                    <p class="center">
                        <input class="submit" type="submit" name="submit" value="Upload" id="submit" />
                    </p>
                </form>
                -->
                <?php if (isset($message)): ?>
                    <div id="message">
                        <p><?php echo $message; ?></p>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
        </div>
    </div>
</div>
    

    
</div>    <!-- CLOSE content5 -->


</div> <!-- CLOSE rightside -->


<script type="text/javascript" src="//counter.goingup.com/js/tracker.js?st=bc4gyw7&amp;b=5"></script>
<noscript><a href="http://www.goingup.com" title=""><img src="//counter.goingup.com/default.php?st=bc4gyw7&amp;b=5" border="0" /></a></noscript>



</body>
</html>

Untitled PHP (31-Dec @ 13:45)

Syntax Highlighted Code

  1.  
  2. //See what file is being requested by the web client, also store the arguments just in case.
  3. list($file,$arguments) = explode("?", $_SERVER['REQUEST_URI']);
  4. [14 more lines...]

Plain Code

 session_start();
 
//See what file is being requested by the web client, also store the arguments just in case.
list($file,$arguments) = explode("?", $_SERVER['REQUEST_URI']);
 
//if the user just logged out, destroy this session and redirect them to root
if("/wp-login.php?loggedout=true" == $file ."?" .$arguments)
{ session_destroy(); header("location: /"); }
 
//If our sentinel variable is set and true do nothing, allow normal script execution
if(isset($_SESSION['valid_entrance']) &amp;&amp; $_SESSION['valid_entrance'] == true) { /* As they say, "Silence is golden" */ }
 
//Now if the user is requesting wp-login.php and our sentinel is not true, redirect the "attacker" to root.
elseif($file == "/wp-login.php" &amp;&amp; !isset($_SESSION['valid_entrance']))
{  header("Location: /"); exit(); }
 
//If the user is requesting the right login entrance set the sentinel to true
elseif ($file == "/secure-login")
{  $_SESSION['valid_entrance'] = true; }

Untitled PHP (31-Dec @ 10:33)

Syntax Highlighted Code

  1. <?php
  2.  
  3. ?>

Plain Code

<?php

?>

Untitled PHP (25-Dec @ 14:30)

Syntax Highlighted Code

  1. <?php
  2. echo "fdfdf";
  3.  
  4. ?>

Plain Code

<?php
echo "fdfdf";

?>

Untitled PHP (21-Dec @ 09:58)

Syntax Highlighted Code

  1. hi!

Plain Code

hi!

Untitled PHP (9-Dec @ 13:24)

Syntax Highlighted Code

  1. function myFnc(){
  2.  
  3. }

Plain Code

function myFnc(){

}

Untitled PHP (7-Dec @ 12:52)

Syntax Highlighted Code

  1. <?php
  2. echo "hello world";
  3. ?>

Plain Code

<?php
echo "hello world";
?>

jQuery.stickyFooter (25-Nov @ 11:34)

joshuabaker

Syntax Highlighted Code

  1. /**
  2.  * jQuery.stickyFooter - Sticky footer plugin
  3.  * @author Joshua Baker
  4.  * @version 1.0.0
  5. [50 more lines...]

Plain Code

/**
 * jQuery.stickyFooter - Sticky footer plugin
 * @author Joshua Baker
 * @version 1.0.0
 */
;(function($){
  
  // Defined jQuery.stickyFooterPos();
  // Outputs a console message until $(element).stickyFooter(); is run
  $.extend({
    stickyFooterPos: function() { console.log('jQuery.stickyFooterPos() has not been initialized.'); }
  });
  
  // Define jQuery(element).stickyFooter();
  $.fn.extend({
    stickyFooter: function() {
      // Create the footer push element
      var stickyFooterPush = $('<div style="clear:both;"></div>');
      
      // Append a clear to the bottom of the body to handle any potential float issues
      $('body').append('<div style="clear:both;"></div>');
      
      // Place the footer push above the selected footer element
      $(this).before(stickyFooterPush);
      
      // Re-define jQuery.stickyFooterPos();
      // This can be called at any point after
      $.extend({
        stickyFooterPos: function() {
          var documentHeight = $(document.body).height() - stickyFooterPush.height();
          var windowHeight = $(window).height();
          if (documentHeight < windowHeight) {
            stickyFooterPush.height(windowHeight - documentHeight);
          }
        }
      });
      
      // Initial run (on DOM ready)
      $.stickyFooterPos();
      
      // Bind events to loading, resizing and scrolling of the window
      $(window).bind('load resize scroll', $.stickyFooterPos);
    }
  });
  
})(jQuery);



/**
 * jQuery.stickyFooter - Sticky footer plugin
 * @author Joshua Baker
 * @version 1.0.0
 */
;(function(a){a.extend({stickyFooterPos:function(){console.log("jQuery.stickyFooterPos() has not been initialized.")}});a.fn.extend({stickyFooter:function(){var b=a('<div style="clear:both;"></div>');a("body").append('<div style="clear:both;"></div>');a(this).before(b);a.extend({stickyFooterPos:function(){var c=a(document.body).height()-b.height();var d=a(window).height();if(c<d){b.height(d-c)}}});a.stickyFooterPos();a(window).bind("load resize scroll",a.stickyFooterPos)}})})(jQuery);

Untitled PHP (3-Nov @ 18:54)

Syntax Highlighted Code

  1. include_once 'yo.php';
  2. echo 'yo';

Plain Code

include_once 'yo.php';
echo 'yo';

yt-upload a video (1-Nov @ 16:11)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. $ret=YT_upload($token,$media_title, $media_desc, $remote_url,$developerkey,'/tmp/','Funny Stuff','Film');
  3. if($ret['status']==true){
  4.     $vid_id=$ret['video_id'];
  5. [6 more lines...]

Plain Code

<?php
$ret=YT_upload($token,$media_title, $media_desc, $remote_url,$developerkey,'/tmp/','Funny Stuff','Film');
if($ret['status']==true){
    $vid_id=$ret['video_id'];
    echo "Check out your video at <a href='http://www.youtube.com/watch?v={$vid_id}'>Vid!</a>";
}else{
        $errorcode=$ret['errorcode'];
        $errormessage=$ret['error'];
    echo "Sorry.. there has been an error (code: {$errorcode}) Message: {$errormessage}";
}
?>

yt-authenticate (1-Nov @ 16:11)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. include('ytlib.php'); //this is the downloaded YT lib file from our repository.
  3.  
  4. //$user and $pass come from your form, cookies or wherever.
  5. [11 more lines...]

Plain Code

<?php
include('ytlib.php'); //this is the downloaded YT lib file from our repository.

//$user and $pass come from your form, cookies or wherever.
//they are the YouTube username (or google email address) and password respectively

$ret=YT_authenticate($user, $pass);
if($ret!==false){
        //Success!
        echo "Success! You have logged in to YouTube";
        //$ret holds the authentication token.
}else{
        echo "Sorry, your credentials are incorrect";
}

?>

yt-lib_Youtube Class (1-Nov @ 16:10)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. /* Reminder: always indent with 4 spaces (no tabs). */
  3. // +-----------------------------------------------------------------------------+
  4. // | Minimal YouTube library                                                     |
  5. [224 more lines...]

Plain Code

<?php
/* Reminder: always indent with 4 spaces (no tabs). */
// +-----------------------------------------------------------------------------+
// | Minimal YouTube library                                                     |
// | Date: November, 2008                                                        |
// +-----------------------------------------------------------------------------+
// | ytlib.php - custom written youtube handlers to save many hundreds of megs of|
// | ram over the existing Google/Youtube library                                |
// | Please note that this is not a direct replacement of the YT library from    |
// | Google.  This is a streamlined authentication mechanism and uploader        |
// | Please read the disclaimer below before using!                              |
// +-----------------------------------------------------------------------------+
// | Copyright (C) 2008 by the following authors:                                |
// |  Author: Randy Kolenko -- randy@nextide.ca                                  |
// +-----------------------------------------------------------------------------+
// |                                                                             |
// | This program is licensed under the terms of the GNU General Public License  |
// | as published by the Free Software Foundation; either version 2              |
// | of the License, or (at your option) any later version.                      |
// |                                                                             |
// | This program is part of the Nextide nexpro Suite and is licenced under      |
// | The GNU license and OpenSource but relesased under closed distribution.     |
// | You are freely able to modify the source code to meet your needs but you    |
// | are not free to distribute the original or modified code without permission |
// | Refer to the license.txt file or contact nextide if you have any questions  |
// |                                                                             |
// | This program is distributed in the hope that it will be useful, but         |
// | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY  |
// | or FITNESS FOR A PARTICULAR PURPOSE.                                        |
// | See the GNU General Public License for more details.                        |
// |                                                                             |
// | You should have received a copy of the GNU General Public License           |
// | along with this program; if not, write to the Free Software Foundation,     |
// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             |
// |                                                                             |
// +-----------------------------------------------------------------------------+
//

// this file can't be used on its own
if (strpos ($_SERVER['PHP_SELF'], 'ytlib.php') !== false)
{
    die ('This file can not be used on its own.');
}


/**
* YT_authenticate -- Function to authenticate the end user.
*
* @param    string username -- The YT username (either the native username or the goolge username)
* @param    string password -- the YT user's password.
* @return   string -- returns the authentication token on success or FALSE on failure
* @access   public
*/
function YT_authenticate($username, $password){
    $cobj=curl_init('https://www.google.com/youtube/accounts/ClientLogin');
    curl_setopt($cobj,CURLOPT_RETURNTRANSFER,TRUE);
    curl_setopt($cobj,CURLOPT_POST,TRUE);
    curl_setopt($cobj,CURLOPT_SSL_VERIFYPEER,FALSE);
    $header=array();
    $header[]='Content-Type: application/x-www-form-urlencoded';
    curl_setopt($cobj,CURLOPT_HTTPHEADER,$header);
    curl_setopt($cobj,CURLOPT_POSTFIELDS,'Email='. $username . '&Passwd=' . $password . '&service=youtube&source=yoursource');

    $xml=curl_exec($cobj);
    $connectionInfo=curl_getinfo ( $cobj );
    curl_close($cobj);
    $statusCode=$connectionInfo['http_code'];
    if($statusCode==200){// some kind of structure returned but we've deleted
        $a=explode(chr(10),$xml);  //[0] is auth, [1] is yt username
        $x=str_replace("Auth=","",$a[0]);
        $x=str_replace(chr(10),"",$x);
        //$ret=$x;
        return true;
    }else{//500 error  this user dosent exist anyways
        //$ret=false;
        return false;
    }
    return $ret;
}

/**
* YT_upload -- Function to perform a chunked upload to YouTube.
*
* @param    string token -- The YT Authentication token from the YT_authenticate function
* @param    string title -- the YT Movie's title
* @param    string description -- the YT Movie's description
* @param    string filename -- the source file to upload.  THis is your AVI, MOV, FLV or whatever you are trying to upload.  This file has to be local to the system.
* @param    string YTdeveloperKey -- the YT Developer key you need to get from Google/Youtube
* @param    string localDropDirectory -- the local directory that is WRITE enabled to deposit the movie you wish to upload.  Must end in a slash
* @param    string keywords -- the keywords to associate to this clip for YT
* @param    string category -- the Category you wish to classify this clip with.  Please refer to the YT documentation for valid categories
* @return   Array -- returns an aray of status, video_id, error and errorcode as array keys to denote what has happened during upload
* @access   public
*/
function YT_upload($token, $title, $description, $filename, $YTdeveloperKey, $localDropDirectory='/tmp/', $keywords='Your Keywords', $category='Film'){
    $retarray=array();
    $retarray['status']=false;
    $retarray['video_id']='';
    $retarray['error']='';
    $retarray['errorcode']=0;
    $boundary='--f93dcbA3';
    $boundaryheader='f93dcbA3';
    $basefilename=md5(uniqid(rand())).'.flv';
    $localDropFile = $localDropDirectory.$basefilename;
    $title=htmlspecialchars(stripslashes($title));
    $description=htmlspecialchars(stripslashes($description));

    $data=$boundary.chr(13).chr(10).'Content-Type: application/atom+xml; charset=UTF-8'.chr(13).chr(10).chr(13).chr(10);
    $data .='<?xml version="1.0"?>';
    $data .='<entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007">';
    $data .='<media:group>';
    $data .='<media:title type="plain">' . $title . '</media:title>';
    $data .='<media:description type="plain">' . $description . '</media:description>';
    $data .='<media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">' . $category . '</media:category>';
    $data .='<media:keywords>' . $keywords . '</media:keywords>';
    $data .='</media:group>';
    $data .='</entry>';
    $data.=chr(13).chr(10).$boundary;
    $data.=chr(13).chr(10).'Content-Type: video/x-flx';
    $data.=chr(13).chr(10).'Content-Transfer-Encoding: binary';
    $data.=chr(13).chr(10);
    $data.=chr(13).chr(10);
    $footer=chr(13).chr(10).$boundary.'--'.chr(13).chr(10);

    //fetch the remote file
    //Please note that you may have to alter this section of code to suit your requirements
    //this will fetch the passed in $filename file and bring it down locally
    //if you already have the file local to you, please augment this section of code to simply use
    //$filename to set $localDropFile as the locally accessible file to upload.
    $ch = curl_init ($filename);
    $f = fopen ($localDropFile, "w");
    curl_setopt ($ch, CURLOPT_FILE, $f);
    curl_setopt ($ch, CURLOPT_HEADER, 0);
    curl_exec ($ch);
    curl_close ($ch);
    fclose ($f);
    //remote file is now saved locally
    //$localDropFile now stores the path to the locally accessible file to upload to YouTube
    //we do NOT use $filename to upload to YT.

    $contentlength=strlen($data);
    $contentlength+=filesize($localDropFile);
    $contentlength+=strlen($footer);

    $header ="POST /feeds/api/users/default/uploads HTTP/1.1\r\n";
    $header.="Host: uploads.gdata.youtube.com\r\n";
    $header.="Content-length: $contentlength\r\n";
    $header.="Content-Type: multipart/related; boundary=\"$boundaryheader\"\r\n";
    $header.="Authorization: GoogleLogin auth=\"$token\"\r\n";
    $header.="X-GData-Key: key=$YTdeveloperKey\r\n";
    $header.="Slug: $basefilename\r\n";
    $header.="Connection: close\r\n\r\n";
    $fp = fsockopen("uploads.gdata.youtube.com", 80, $errno, $errstr, 30);

    if (!$fp) {
        $retarray['error']= "$errstr ($errno)<br />\n";
        $retarray['errorcode']=1;
        return $retarray;
    } else {//send some stuff!
        fputs($fp,$header);
        fputs($fp,$data);
        //upload the remote file
        try{
            $f=fopen($localDropFile,"r");
            while(!feof($f)){
                $fstuff=fread($f,8164);
                @fputs($fp,$fstuff,8164);
            }
            fclose($f);
            @fputs($fp,$footer);
            $returnstream='';

            while (!feof($fp)) {
                $returnstream.= fgets($fp, 128);
            }

            fclose($fp);
            @unlink($localDropFile);
            //POST stream manipulation
            $arr=explode("\r\n\r\n",$returnstream);

            $headers=explode("\r\n",$arr[0]);
            $statusheader=explode(" ",$headers[0]);
            $statuscode=$statusheader[1];
            $statusmessage=$statusheader[2];
            if($statuscode=='201'){
                $body=explode("\r\n",$arr[1]);
                $xml='';
                for($cntr=1;$cntr<count($body);$cntr+=2){
                    $xml.=$body[$cntr];  //lines 0 and 2, 4 etc are hex line length numbers.. ignore!
                }

                $p = xml_parser_create();
                xml_parse_into_struct($p, $xml, $vals, $index);
                xml_parser_free($p);

                $item=$index['ID'][0];
                $id=$vals[$item]['value'];
                $loc=strrpos($id,"/");
                if($loc!==false){
                    $id=substr($id,$loc+1);
                }else{
                    $retarray['error']='A valid YouTube ID has not been returned.';
                    $retarray['errorcode']=2;
                    return $retarray;
                }
                $retarray['status']=true;
                $retarray['statuscode']=$statuscode;
                $retarray['statusmessage']=$statusmessage;
                $retarray['video_id']=$id;
                $retarray['errorcode']=0;
                return $retarray;
            }else{
                $retarray['error']= "We did not get a complete notification from YouTube.  Please check your account and try the upload again if it has failed.";
                $retarray['errorcode']=3;
                return $retarray;
            }

        }catch(Exception $e){
            @fclose($fp);
            @unlink($localDropFile);
            $retarray['error']='An error during pushing the file to YouTube has ocurred. Please check your account and try the upload again if it has failed.';
            $retarray['errorcode']=4;
            return $retarray;
        }
    }
}

?>

Untitled PHP (31-Oct @ 06:52)

Syntax Highlighted Code

  1. <?php
  2.  
  3. //See what file is being requested by the web client, also store the arguments just in case.
  4. [23 more lines...]

Plain Code

<?php
session_start();
 
//See what file is being requested by the web client, also store the arguments just in case.
list($file,$arguments) = explode("?", $_SERVER['REQUEST_URI']);
 
//if the user just logged out, destroy this session and redirect them to root
if("/wp-login.php?loggedout=true" == $file ."?" .$arguments)
{ session_destroy(); header("location: /"); }
 
//If our sentinel variable is set and true do nothing, allow normal script execution
if(isset($_SESSION['valid_entrance']) && $_SESSION['valid_entrance'] == true) { /* As they say, "Silence is golden" */ }
 
//Now if the user is requesting wp-login.php and our sentinel is not true, redirect the "attacker" to root.
elseif($file == "/wp-login.php" && !isset($_SESSION['valid_entrance']))
{  header("Location: /"); exit(); }
 
//If the user is requesting the right login entrance set the sentinel to true
elseif ($file == "/mycryptic-non-wp-login")
{  $_SESSION['valid_entrance'] = true; }

/**
 * WordPress User Page
 *
 * Handles authentication, registering, resetting passwords, forgot password,
 * and other user handling.
 *

Untitled PHP (15-Oct @ 17:56)

Syntax Highlighted Code

  1. public function main() {
  2.    
  3.     // page details
  4.     $this->pagedetails->settitle ( t ( 'Forum' ) );
  5. [54 more lines...]

Plain Code

public function main() {
    
    // page details
    $this->pagedetails->settitle ( t ( 'Forum' ) );
    
    // tpl
    $tpl = new SmartyTemplate ( );
    
    // get categories
    $categories = $this->categorymanager->getParentChildCategoryList ( 'forum', false, 0 );
    $tpl->assign ( 'categories', $categories );
    
    // assign forum details
    $query = "SELECT a.id, a.cid, a.status, a.posts, a.topics, a.redirect, a.password FROM " . DB_PREFIX . "forum a";
    if ($forums = $this->db->getrows ( $query )) {
        foreach ( $forums as $forum ) {
            // $forum['lastpost_date'] = getLocalDate(false,$forum['lastpost_date']);
            

            $query = "SELECT * FROM `" . DB_PREFIX . "forum_topics` WHERE forumid=" . $forum ['cid'] . " ORDER by lastpost DESC";
            if ($topic = $this->db->getrow ( $query )) {
                
                $topic ['date'] = getlocaldate ( false, $forum ['topic'] ['date'] );
                
                // get last post
                $this->_load ( 'contentbase' );
                $postObj = $this->contentbase->getPostObject ( 'forumtopic' );
                $topic ['lastpost'] = $postObj->getSingleContentById ( $topic ['lastpostid'], 'array' );
                
                $query = "SELECT 
                            * 
                            FROM " . DB_PREFIX . "forum_unread a 
                            LEFT JOIN " . DB_PREFIX . "forum_topics b ON forum_id = " . $forum ['cid'] . " 
                            WHERE a.member = '2'"
                            ;
                echo $query;
                $query = mysql_query($query);
                if(mysql_num_rows($query) > 0) {
                    $forum ['status'] = 'unread';
                }
                
                $forum ['topic'] = $topic;
            
            }
            
            $forumList [$forum ['cid']] = safeoutput ( $forum );
        
        }
    }
    
    $tpl->assign ( 'forums', $forumList );
    
    // output
    $this->content = $tpl->smartFetch ();
    $this->display ();

}

Untitled PHP (29-Sep @ 19:45)

Syntax Highlighted Code

  1. default:
  2.  case 0:    
  3.  
  4.     // Admin Menu Header
  5. [18 more lines...]

Plain Code

default:
 case 0:    
 
    // Admin Menu Header
    $xag_job                 = 0;
    $admin_menu         = '<div class="page_title"><h1 class="page_title">Welcome... `' . $username . '`' . $home_logout;
    $js_editor            = '';
    $js_general            = '';        
    $more_reading        = '';
    $article_title    = '';
    
    // Article Content management..
    $out    = '<p>This section allows you to manage the content of this site.</p>';
    $out    .= '<p><a href="'. $root_url    .'?job=1">Create an Article</a>.</p>';
    $out    .= '<p><a href="'. $root_url    .'?job=88">Create an Image Article</a>.</p>';
    $out    .= '<p><a href="'. $root_url    .'?job=8">Display Article Listing</a>.</p>';
    $out    .= '<p><a href="'. $root_url    .'?job=100">Add a URL</a>.</p>';
            
    // Debugging only..
    //new dBug($out); 
    
break;

Untitled PHP (18-Sep @ 18:20)

Syntax Highlighted Code

  1. <?php
  2. if ($data->rankvord >= 100.00){
  3. mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
  4. print "";
  5. [869 more lines...]

Plain Code

<?php 
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
print "";
}
include("_include-config.php"); 

if (isset($data)) { 

?> 

<?php /* ------------------------- */
session_start();
  include_once("_include-funcs1.php");
  if(isset($_COOKIE['login'],$_COOKIE['validate'])) {
    setcookie("login",$_COOKIE['login'],time()+24*60*60,"/","");
    setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/","");
  }

mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
if($data->level == -1){
print"<table width=100%><tr><td class=maintxt>Je bent Verbannen!</td></tr></table>";
die();
}
if ($data->rank <= 9){
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
print "";
}
}
mysql_query("UPDATE `[users]` SET `moordexp1`=(100+(`rank`*'50')) WHERE `login`='{$data->login}'");
print"";

/* ------------------------- */ ?>
<LINK REL="StyleSheet" HREF="style/style.css" TYPE="text/css">
<style>BODY { height: 100%; background: #101010 url('bg.gif') repeat-x; margin: 0px; padding: 0px }</style> 

<title>HipHopperz.nl! - Wordt een bekende artiest op het net!</title>
<?php


include_once 'header.php';
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
  include_once("_include-funcs1.php");
if ( isset($_GET['p'] ) )
{ 
$p = $_GET['p']; 
$file = "content/$p.php"; 
  if ( file_exists($file) ) 
  { 
        include_once($file);
       include_once 'footer.php'; 
  } 
  else 
  { 
    include_once 'content/home.php'; 
  } 
} 
else 
{ 

include_once 'content/home.php';

}

include_once 'footer.php'; 

?>
<? 
} 
else { 
?> 

<?
include("config.php");
?>

<?php
  $dbres                = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
  $members                = mysql_num_rows($dbres);
  $dbresxa = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
  $onliner = mysql_num_rows($dbresxa);
 ?>
<script type="text/javascript">
function favorieten()
{
  if(document.all) {
    window.external.AddFavorite('<?php echo $site; ?>','HipHopperz.nl! - Wordt een bekende artiest op het net!');
  }
  else {
    alert("Je browser ondersteunt deze functie niet!");
  }
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<LINK REL="StyleSheet" HREF="style/style.css" TYPE="text/css">
<style>BODY { height: 100%; background: #101010 url('bg.gif') repeat-x; margin: 0px; padding: 0px }</style> 

<title>HipHopperz.nl! - Wordt een bekende artiest op het net!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
</head>
<body bgcolor="#fff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="744" height="645" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
        <td colspan="10">
            <img src="images/Hiphopperz.nl-designstore_01.gif" width="743" height="19" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="5">
            <img src="images/Hiphopperz.nl-designstore_02.gif" width="226" height="19" alt=""></td>
        <td colspan="5" rowspan="2" background="images/Hiphopperz.nl-designstore_03.gif" class="stijl1"> <div align="right"><a href="javascript:favorieten()">Toevoegen Aan Favorieten</a> | <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $site; ?>');">Instellen Als Startpagina</a><img src="../Underground/images/spacer.gif" width="5" height="1"> </div></td>
<td>
            <img src="images/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2">
            <img src="images/Hiphopperz.nl-designstore_04.gif" width="1" height="23" alt=""></td>
        <td colspan="3" rowspan="2">
            <img src="images/Hiphopperz.nl-designstore_05.gif" width="183" height="23" alt="" border="0"></td>
  <td>
            <img src="images/Hiphopperz.nl-designstore_06.gif" width="42" height="1" alt="" border="0"></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="6" rowspan="6">
            <img src="images/Hiphopperz.nl-designstore_07.gif" width="559" height="133" alt="" border="0"></td>
        <td>
            <img src="images/spacer.gif" width="1" height="22" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_08.gif" width="184" height="20" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_09.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_10.gif" width="184" height="22" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="22" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_11.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_12.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="images/Hiphopperz.nl-designstore_13.gif" width="271" height="18" alt=""></td>
        <td colspan="4" rowspan="2" background="images/Hiphopperz.nl-designstore_14.gif"><div align="right"><span class="stijl1"><font size=2><a href="?p=contact">Meld je snel aan als artiest op HipHopperz!</a>!</font></div></td>
<td>
            <img src="images/spacer.gif" width="1" height="18" alt=""></td>
    </tr>
    <tr>
        <td width="1" height="434" rowspan="2" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="434" alt=""></td>
        <td colspan="5">
            <img src="images/Hiphopperz.nl-designstore_16.gif" width="270" height="2" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="2" alt=""></td>
    </tr>
    <tr>
        <td width="1" height="432" bgcolor="#141414">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="737" height="432" colspan="4" bgcolor="#141414" valign="top"><table border='0' cellspacing='1' width='100%' bgcolor='#000' align='center'> 
    <tr> 
        <td class='top' colspan='1'> <b>
<b>Statistieken</b> </font></b></td>
    </tr>
    <tr>
        <td class='inhoud'>


<center><font size=2>Leden: <b><?php echo $members; ?></b> | </font> <? include("include/bez.php"); ?>
              <? include("include/stats.php"); ?></center>


</td>
</tr>
</table>

<table width="100%" border="0">
              <tr>
                <td width="52%"><table width="100%" border="0" cellpadding="1" cellspacing="1">
                    <tr>
                      <td height="21" background="images/barboven.gif"><font color=#fff000> ~ 5 Nieuwste Tracks</font></td>
                    </tr>
                    <tr>
                             <td bgcolor="#9f00c1" valign="top"><?
                    $top10 = "SELECT * FROM  `raptracks` ORDER BY id DESC LIMIT 0,5";
                    $nieuwste =  mysql_query($top10) or die (mysql_error());
                    while ($list = mysql_fetch_object($nieuwste)) {
                    $nieuw = $list->id;
                    $nieuwer = "<font color=#fff000><b>»</b>&nbsp;<font color=#fff000><a href='?p=afspelen&id=$list->id'>$list->naam</a></font><BR>";
                    
                    echo "$nieuwer";
                    }
                    ?>
                      </td>
                    </tr>
                </table></td>
                <td width="52%"><table width="100%" border="0" cellpadding="1" cellspacing="1">
                  <tr>
                    <td height="21" background="images/barboven.gif"><font color=#fff000> ~ 5 Nieuwste Clips</font></td>
                  </tr>
                  <tr>
                    <td bgcolor="#9f00c1" valign="top"> <?
    $video = "SELECT * FROM `rapvideos` ORDER BY id DESC LIMIT 0,5";
    $clips = mysql_query($video) or die (mysql_error());
    while ($clipjes = mysql_fetch_object($clips)){
    print"<font color=#fff000><b>»</b>&nbsp;<font color=#fff000><a href=\"?p=video&id=$clipjes->id\">$clipjes->naam<BR></a></font>
  ";
    }
    ?>
                    </td>
                  </tr>
                </table></td></font>

<BR>
<table width="99%" height="429" border="0" align="center" cellpadding="3" cellspacing="3">
          <tr>
            <td width="23%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ NAVIGATIE</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1"><p class="stijl3">                                  <a href="?page=home">&raquo; Home</a><br>
              <a href="?p=crew">&raquo; Crew</a><br>
              <a href="?p=contact">&raquo; Contact</a><br>           
              <a href="?p=poll">&raquo; Poll</a><br>   
     <a href="?p=alleinterviews">&raquo; Interview Archief<font color=red><b>NEW</font></b></a><br>     
     <a href="?p=livevid">&raquo; Live Meekijken?<font color=red><b>NEW</font></b></a><br>    

              <a href="?p=mp3lijst">&raquo; MP3Upload lijst <font color=red><b>NEW</font></b></a><br>           
              <a href="?p=nieuwstetracks">&raquo; Nieuwste Tracks</a><br>
              <a href="?p=nieuwsteclips">&raquo; Nieuwste Videoclips</a><br>
              <a href="?p=toptracks">&raquo; Top 100 Tracks</a><br>
          <a href="?p=topclips">&raquo; Top 100 Videoclips</a><br>
              <a href="?p=allevideoclips">&raquo; Alle Videoclips</a><br>
              <a href="?p=allelyrics">&raquo; Alle Lyrics</a><br>
              <a href="?p=mixtapes">&raquo; Download Mixtapes</a>
<BR><font size=2>              <a target="_blank" href="artiestenlogin/"><b><font color=gold>&raquo; Artiesten Login</font></b></a></font>
<BR><BR>
<a target="_blank" href="http://www.dutchleader.nl/top50/in.php?userid=hiphopperz&siteid=1">&raquo; <b>Stem op HipHopperz.nl</b></a>
<BR>
              <a target="_blank" href="http://lsjdesigns.nl">&raquo; <b>Website laten maken</b></a>
<BR>
              <a target="_blank" href="http://hiphopperznl.hyves.nl">&raquo; <b><font color=gold>HipHopperz @ Hyves</font></b></a>
                </p>                </td>
              </tr>
            </table>
              <br>
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><strong class="stijl2"> ~ Memberpaneel</strong></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1" class="stijl3"> 
<table align=center width=100%>Soms moet je 2 keer inloggen.<BR>
<form name="form1" method="post" action="?p=login"> <center>
      <tr><td width=100>Gebruikersnaam:<BR><input type="text" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''" name="login" maxlength=16 style="width: 150;" value=""><BR>Wachtwoord:<BR><input type="password" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''"name="pass" maxlength=16 style="width: 150;" value="">
<input type="submit" class="submit" style="width: 100;" value="Inloggen" name="invoer"></td></tr>
      </center></form>

</table><BR></center>
<center><a href="?p=login&x=lostpass">Wachtwoord vergeten?</a>    </center>
<BR><center><a href="?p=register"><font size=2><font color=gold><b>Registreren</b></font></font></a>    </center>
</body>


</html>
    </td>
              </tr>
            </table>
<BR>

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><strong class="stijl2"> ~ ARTIESTEN</strong></td>
              </tr>

              <tr>
                <td bgcolor="#9f00c1" class="stijl3"><?
                                                        if(!(@mysql_connect("db.hiphopperz.nl","***","***") && @mysql_select_db("***"))) {
                                                        print"Geen connectie tot de mysal database.";
                                                        die;
                                                          }
                                                        
                                                         $select = "SELECT * FROM rappers ORDER by naam ASC";

                                                        $query = mysql_query($select) or die (mysql_error());
                                                        while ($list = mysql_fetch_object($query)) {
                                                            $nieuw = $list->nieuw;
    if($nieuw == 1){
    $nieuwer = "<img src='images/nieuw.gif' border='0'>";
    }
    else{
    $nieuwer = "";
    }
                                                        
                                                        echo "&raquo; <A href=\"?p=artiest&x=".$list->naam."&id=".$list->id."\">".$list->naam." $nieuwer</a><BR>";
                                                        }
                                                        ?>       </td>
              </tr>
            </table></td>
            <td width="100%" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ Welkom op HipHopperz.nl!</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1">
                   <?php 
if (empty($_GET['p'])) { 
$p = "home"; 
} 
else { 
$p = $_GET['p']; 
} 
$p2 = "content/$p.php"; 
if (file_exists($p2)) { 
  include("$p2"); 
} 
else { 
  echo "Blijkbaar heb je een verkeerde link aangeklikt, klik op vorige om verder te gaan."; 
} 
?>

                </td>
              </tr>
            </table>
               <BR>   <table width="100%" border="0" cellpadding="1" cellspacing="1">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ Advertentie</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1">
<?php include("ad2.php"); ?>

                </td>
              </tr>
            </table>

            <br>
            </table><td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#141414">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
    </tr>
    <tr>
        <td colspan="10" background="images/Hiphopperz.nl-designstore_23.gif"></td>
<td>
            <img src="images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="181" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="42" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="45" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="469" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td></td>
    </tr>
</table>

</body>
</html>

<? 
} 
?>

<?php 
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
print "";
}
include("_include-config.php"); 
if (isset($data)) { 

?> 

<?php /* ------------------------- */
session_start();

  if(isset($_COOKIE['login'],$_COOKIE['validate'])) {
    setcookie("login",$_COOKIE['login'],time()+24*60*60,"/","");
    setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/","");
  }

mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
if($data->level == -1){
print"<table width=100%><tr><td class=maintxt>Je bent Verbannen!</td></tr></table>";
die();
}
if ($data->rank <= 9){
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
print "";
}
}
mysql_query("UPDATE `[users]` SET `moordexp1`=(100+(`rank`*'50')) WHERE `login`='{$data->login}'");
print"";

/* ------------------------- */ ?>
<LINK REL="StyleSheet" HREF="style/style.css" TYPE="text/css">
<style>BODY { height: 100%; background: #101010 url('bg.gif') repeat-x; margin: 0px; padding: 0px }</style> 

<title>HipHopperz.nl! - Wordt een bekende artiest op het net!</title>
<?php


include_once 'header.php';
mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");

if ( isset($_GET['p'] ) )
{ 
$p = $_GET['p']; 
$file = "content/$p.php"; 
  if ( file_exists($file) ) 
  { 
        include_once($file);
       include_once 'footer.php'; 
  } 
  else 
  { 
    include_once 'content/home.php'; 
  } 
} 
else 
{ 

include_once 'content/home.php';

}

include_once 'footer.php'; 

?>
<? 
} 
else { 
?> 

<?
include("config.php");
?>

<?php
  $dbres                = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
  $members                = mysql_num_rows($dbres);
  $dbresxa = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
  $onliner = mysql_num_rows($dbresxa);
 ?>
<script type="text/javascript">
function favorieten()
{
  if(document.all) {
    window.external.AddFavorite('<?php echo $site; ?>','HipHopperz.nl! - Wordt een bekende artiest op het net!');
  }
  else {
    alert("Je browser ondersteunt deze functie niet!");
  }
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<LINK REL="StyleSheet" HREF="style/style.css" TYPE="text/css">
<style>BODY { height: 100%; background: #101010 url('bg.gif') repeat-x; margin: 0px; padding: 0px }</style> 

<title>HipHopperz.nl! - Wordt een bekende artiest op het net!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
</head>
<body bgcolor="#fff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="744" height="645" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
        <td colspan="10">
            <img src="images/Hiphopperz.nl-designstore_01.gif" width="743" height="19" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="5">
            <img src="images/Hiphopperz.nl-designstore_02.gif" width="226" height="19" alt=""></td>
        <td colspan="5" rowspan="2" background="images/Hiphopperz.nl-designstore_03.gif" class="stijl1"> <div align="right"><a href="javascript:favorieten()">Toevoegen Aan Favorieten</a> | <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $site; ?>');">Instellen Als Startpagina</a><img src="../Underground/images/spacer.gif" width="5" height="1"> </div></td>
<td>
            <img src="images/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2">
            <img src="images/Hiphopperz.nl-designstore_04.gif" width="1" height="23" alt=""></td>
        <td colspan="3" rowspan="2">
            <img src="images/Hiphopperz.nl-designstore_05.gif" width="183" height="23" alt="" border="0"></td>
  <td>
            <img src="images/Hiphopperz.nl-designstore_06.gif" width="42" height="1" alt="" border="0"></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="6" rowspan="6">
            <img src="images/Hiphopperz.nl-designstore_07.gif" width="559" height="133" alt="" border="0"></td>
        <td>
            <img src="images/spacer.gif" width="1" height="22" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_08.gif" width="184" height="20" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_09.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt="" border="0"></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_10.gif" width="184" height="22" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="22" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_11.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/Hiphopperz.nl-designstore_12.gif" width="184" height="23" alt="" border="0"></td>
  <td>
            <img src="images/spacer.gif" width="1" height="23" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="images/Hiphopperz.nl-designstore_13.gif" width="271" height="18" alt=""></td>
        <td colspan="4" rowspan="2" background="images/Hiphopperz.nl-designstore_14.gif"><div align="right"><span class="stijl1"><font size=2><a href="?p=contact">Meld je snel aan als artiest op HipHopperz!</a>!</font></div></td>
<td>
            <img src="images/spacer.gif" width="1" height="18" alt=""></td>
    </tr>
    <tr>
        <td width="1" height="434" rowspan="2" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="434" alt=""></td>
        <td colspan="5">
            <img src="images/Hiphopperz.nl-designstore_16.gif" width="270" height="2" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="2" alt=""></td>
    </tr>
    <tr>
        <td width="1" height="432" bgcolor="#141414">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="737" height="432" colspan="4" bgcolor="#141414" valign="top"><table border='0' cellspacing='1' width='100%' bgcolor='#000' align='center'> 
    <tr> 
        <td class='top' colspan='2'> <b>
<b>Statistieken</b> </font></b></td>
    </tr>
    <tr>
        <td class='inhoud'>


<center><font size=2>Leden: <b><?php echo $members; ?></b> | </font> <? include("include/bez.php"); ?>
              <? include("include/stats.php"); ?></center>


</td>
</tr>
</table>

<table width="100%" border="0">
              <tr>
                <td width="52%"><table width="100%" border="0" cellpadding="1" cellspacing="1">
                    <tr>
                      <td height="21" background="images/barboven.gif"><font color=#fff000> ~ 5 Nieuwste Tracks</font></td>
                    </tr>
                    <tr>
                             <td bgcolor="#9f00c1" valign="top"><?
                    $top10 = "SELECT * FROM  `raptracks` ORDER BY id DESC LIMIT 0,5";
                    $nieuwste =  mysql_query($top10) or die (mysql_error());
                    while ($list = mysql_fetch_object($nieuwste)) {
                    $nieuw = $list->id;
                    $nieuwer = "<font color=#fff000><b>»</b>&nbsp;<font color=#fff000><a href='?p=afspelen&id=$list->id'>$list->naam</a></font><BR>";
                    
                    echo "$nieuwer";
                    }
                    ?>
                      </td>
                    </tr>
                </table></td>
                <td width="52%"><table width="100%" border="0" cellpadding="1" cellspacing="1">
                  <tr>
                    <td height="21" background="images/barboven.gif"><font color=#fff000> ~ 5 Nieuwste Clips</font></td>
                  </tr>
                  <tr>
                    <td bgcolor="#9f00c1" valign="top"> <?
    $video = "SELECT * FROM `rapvideos` ORDER BY id DESC LIMIT 0,5";
    $clips = mysql_query($video) or die (mysql_error());
    while ($clipjes = mysql_fetch_object($clips)){
    print"<font color=#fff000><b>»</b>&nbsp;<font color=#fff000><a href=\"?p=video&id=$clipjes->id\">$clipjes->naam<BR></a></font>
  ";
    }
    ?>
                    </td>
                  </tr>
                </table></td></font>

<BR>
<table width="99%" height="429" border="0" align="center" cellpadding="3" cellspacing="3">
          <tr>
            <td width="23%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ NAVIGATIE</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1"><p class="stijl3">                                  <a href="?page=home">&raquo; Home</a><br>
              <a href="?p=crew">&raquo; Crew</a><br>
              <a href="?p=contact">&raquo; Contact</a><br>           
              <a href="?p=poll">&raquo; Poll</a><br>   
     <a href="?p=alleinterviews">&raquo; Interview Archief<font color=red><b>NEW</font></b></a><br>     
     <a href="?p=livevid">&raquo; Live Meekijken?<font color=red><b>NEW</font></b></a><br>    

              <a href="?p=mp3lijst">&raquo; MP3Upload lijst <font color=red><b>NEW</font></b></a><br>           
              <a href="?p=nieuwstetracks">&raquo; Nieuwste Tracks</a><br>
              <a href="?p=nieuwsteclips">&raquo; Nieuwste Videoclips</a><br>
              <a href="?p=toptracks">&raquo; Top 100 Tracks</a><br>
          <a href="?p=topclips">&raquo; Top 100 Videoclips</a><br>
              <a href="?p=allevideoclips">&raquo; Alle Videoclips</a><br>
              <a href="?p=allelyrics">&raquo; Alle Lyrics</a><br>
              <a href="?p=mixtapes">&raquo; Download Mixtapes</a>
<BR><font size=2>              <a target="_blank" href="artiestenlogin/"><b><font color=gold>&raquo; Artiesten Login</font></b></a></font>
<BR><BR>
              <a target="_blank" href="http://lsjdesigns.nl">&raquo; <b>Website laten maken</b></a>
<BR>
              <a target="_blank" href="http://hiphopperznl.hyves.nl">&raquo; <b><font color=gold>HipHopperz @ Hyves</font></b></a>
                </p>                </td>
              </tr>
            </table>
              <br>
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><strong class="stijl2"> ~ Memberpaneel</strong></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1" class="stijl3"> 
<table align=center width=100%>Soms moet je 2 keer inloggen.<BR>
<form name="form1" method="post" action="?p=login"> <center>
      <tr><td width=100>Gebruikersnaam:<BR><input type="text" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''" name="login" maxlength=16 style="width: 150;" value=""><BR>Wachtwoord:<BR><input type="password" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''"name="pass" maxlength=16 style="width: 150;" value="">
<input type="submit" class="submit" style="width: 100;" value="Inloggen" name="invoer"></td></tr>
      </center></form>

</table><BR></center>
<center><a href="?p=login&x=lostpass">Wachtwoord vergeten?</a>    </center>
<BR><center><a href="?p=register"><font size=2><font color=gold><b>Registreren</b></font></font></a>    </center>
</body>


</html>
    </td>
              </tr>
            </table>
<BR>

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><strong class="stijl2"> ~ ARTIESTEN</strong></td>
              </tr>

              <tr>
                <td bgcolor="#9f00c1" class="stijl3"><?
                                                        if(!(@mysql_connect("db.hiphopperz.nl","***","***") && @mysql_select_db("***"))) {
                                                        print"Geen connectie tot de mysal database.";
                                                        die;
                                                          }
                                                        
                                                         $select = "SELECT * FROM rappers ORDER by naam ASC";

                                                        $query = mysql_query($select) or die (mysql_error());
                                                        while ($list = mysql_fetch_object($query)) {
                                                            $nieuw = $list->nieuw;
    if($nieuw == 1){
    $nieuwer = "<img src='images/nieuw.gif' border='0'>";
    }
    else{
    $nieuwer = "";
    }
                                                        
                                                        echo "&raquo; <A href=\"?p=artiest&x=".$list->naam."&id=".$list->id."\">".$list->naam." $nieuwer</a><BR>";
                                                        }
                                                        ?>       </td>
              </tr>
            </table></td>
            <td width="100%" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ Welkom op HipHopperz.nl!</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1">
                   <?php 
if (empty($_GET['p'])) { 
$p = "home"; 
} 
else { 
$p = $_GET['p']; 
} 
$p2 = "content/$p.php"; 
if (file_exists($p2)) { 
  include("$p2"); 
} 
else { 
  echo "Blijkbaar heb je een verkeerde link aangeklikt, klik op vorige om verder te gaan."; 
} 
?>

                </td>
              </tr>
            </table>
               <BR>   <table width="100%" border="0" cellpadding="1" cellspacing="1">
              <tr>
                <td height="21" background="images/barboven.gif" class="stijl1"><span class="stijl2"> ~ Advertentie</span></td>
              </tr>
              <tr>
                <td bgcolor="#9f00c1">
<?php include("ad2.php"); ?>

                </td>
              </tr>
            </table>

            <br>
            </table><td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#141414">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td width="1" height="432" bgcolor="#FFFFFF">
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="432" alt=""></td>
    </tr>
    <tr>
        <td colspan="10" background="images/Hiphopperz.nl-designstore_23.gif"></td>
<td>
            <img src="images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="181" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="42" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="45" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="469" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td></td>
    </tr>
</table>

</body>
</html>

<? 
} 
?>

Untitled PHP (3-Sep @ 04:28)

Syntax Highlighted Code

  1. <?php
  2. error_reporting("E_ALL");
  3. echo "HIA DEWD";
  4. ?>

Plain Code

<?php
error_reporting("E_ALL");
echo "HIA DEWD";
?>

Untitled PHP (31-Aug @ 20:05)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "hello";
  4.  
  5. ?>

Plain Code

<?php

echo "hello";

?>

Untitled PHP (9-Aug @ 07:50)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. ?>

Plain Code

<?php


?>

Untitled PHP (30-Jul @ 21:31)

Syntax Highlighted Code

  1. if(isset($_GET['test']))
  2.  

Plain Code

if(isset($_GET['test']))

Untitled PHP (26-Jul @ 01:13)

Syntax Highlighted Code

  1. <?php
  2. echo "test";
  3. ?>

Plain Code

<?php
echo "test";
?>

Untitled PHP (26-Jul @ 01:01)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'hello';
  4.  
  5. ?>

Plain Code

<?php

echo 'hello';

?>

Untitled PHP (21-Jul @ 22:46)

Syntax Highlighted Code

  1. şi,l,

Plain Code

şi,l,

Untitled PHP (19-Jul @ 21:33)

Syntax Highlighted Code

  1. <?php
  2.  
  3. function omzetten($i)
  4. {
  5. [98 more lines...]

Plain Code

<?php

function omzetten($i)
{

    $eenheden = array('nul',
                      '&eacute;&eacute;n',
                      'twee',
                      'drie',
                      'vier',
                      'vijf',
                      'zes',
                      'zeven',
                      'acht',
                      'negen');
    
    $tientallen = array(1 => 'tien',
                      2 => 'twintig',
                      3 => 'dertig',
                      4 => 'veertig',
                      5 => 'vijftig',
                      6 => 'zestig',
                      7 => 'zeventig',
                      8 => 'tachtig',
                      9 => 'negentig');
    
    $tientallen_bijzonder = array(11 => 'elf',
                      12 => 'twaalf',
                      13 => 'dertien',
                      14 => 'veertien',
                      15 => 'vijftien',
                      16 => 'zestien',
                      17 => 'zeventien',
                      18 => 'achttien',
                      19 => 'negentien');
    
    $honderdtallen = array(1 => 'honderd',
                      2 => 'tweehonderd',
                      3 => 'driehonderd',
                      4 => 'vierhonderd',
                      5 => 'vijfhonderd',
                      6 => 'zeshonderd',
                      7 => 'zevenhonderd',
                      8 => 'achthonderd',
                      9 => 'negenhonderd');
    
    $duizendtallen = array(1 => 'duizend',
                           2 => 'tweeduizend',
                           3 => 'drieduizend',
                           4 => 'vierduizend',
                           5 => 'vijfduizend',
                           6 => 'zesduizend',
                           7 => 'zevenduizend',
                           8 => 'achtduizend',
                           9 => 'negenduizend');

                        $i='0000'.$i;    
            $duizend = substr($i, -4, 1);
            $honderd = substr($i, -3, 1);
            $tien = substr($i, -2, 1);
            $een = substr($i, -1, 1);
            
            $getal = '';
            if($duizend != 0)
                $getal = $duizendtallen[$duizend];
            
            if($honderd != 0)
                $getal .= $honderdtallen[$honderd];
            
            if(substr($i,-2) <= 10)
            {
                if($een != 0)
                    $getal .= $eenheden[$een];
                if($een != 0 && $tien != 0)
                    $getal .= 'en';
                
            }
            if(substr($i,-2) >= 20 || substr($i,-2) == 10)
            {
                if($een != 0)
                    $getal .= $eenheden[$een];
                if($een != 0 && $tien != 0)
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                if($tien != 0)
                    $getal .= $tientallen[$tien];
            }
            else
            {
                $getal .= $tientallen_bijzonder[substr($i,-2)];
            }
                return $i == 0 ? 'nul' : $getal;
}

for($i = 0; $i <= 9999; $i ++)
{
    
    echo omzetten($i)."\n";
    
}


?>

Untitled PHP (18-Jul @ 18:39)

Syntax Highlighted Code

  1. <?php
  2.  
  3. function omzetten($i)
  4. {
  5. [244 more lines...]

Plain Code

<?php

function omzetten($i)
{

    $eenheden = array('nul',
                      '&eacute;&eacute;n',
                      'twee',
                      'drie',
                      'vier',
                      'vijf',
                      'zes',
                      'zeven',
                      'acht',
                      'negen');
    
    $tientallen = array(1 => 'tien',
                      2 => 'twintig',
                      3 => 'dertig',
                      4 => 'veertig',
                      5 => 'vijftig',
                      6 => 'zestig',
                      7 => 'zeventig',
                      8 => 'tachtig',
                      9 => 'negentig');
    
    $tientallen_bijzonder = array(11 => 'elf',
                      12 => 'twaalf',
                      13 => 'dertien',
                      14 => 'veertien',
                      15 => 'vijftien',
                      16 => 'zestien',
                      17 => 'zeventien',
                      18 => 'achttien',
                      19 => 'negentien');
    
    $honderdtallen = array(1 => 'honderd',
                      2 => 'tweehonderd',
                      3 => 'driehonderd',
                      4 => 'vierhonderd',
                      5 => 'vijfhonderd',
                      6 => 'zeshonderd',
                      7 => 'zevenhonderd',
                      8 => 'achthonderd',
                      9 => 'negenhonderd');
    
    $duizendtallen = array(1 => 'duizend',
                           2 => 'tweeduizend',
                           3 => 'drieduizend',
                           4 => 'vierduizend',
                           5 => 'vijfduizend',
                           6 => 'zesduizend',
                           7 => 'zevenduizend',
                           8 => 'achtduizend',
                           9 => 'negenduizend');
    
    switch($i)
    {
        
        case strlen($i) == 4:
            $duizend = substr($i, -4, 1);
            $honderd = substr($i, -3, 1);
            $tien = substr($i, -2, 1);
            $een = substr($i, -1, 1);
            
            $getal = '';
            
            if($duizend != 0)
            {
                
                $getal = $duizendtallen[$duizend];
                
            }
            
            if($honderd != 0)
            {
                
                $getal .= $honderdtallen[$honderd];
                
            }
            
            if(substr($i,-2) <= 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= 'en';
                    
                }
                
            }
            if(substr($i,-2) >= 20 || substr($i,-2) == 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                    
                }
                if($tien != 0)
                {
                    
                    $getal .= $tientallen[$tien];
                    
                }
                
            }
            else
            {
                
                $getal .= $tientallen_bijzonder[substr($i,-2)];
                
            }
        break;
        
        case strlen($i) == 3:
            $honderd = substr($i, -3, 1);
            $tien = substr($i, -2, 1);
            $een = substr($i, -1, 1);
            
            $getal = '';
            
            if($honderd != 0)
            {
                
                $getal = $honderdtallen[$honderd];
                
            }
            
            if(substr($i,-2) <= 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= 'en';
                    
                }
                
            }
            if(substr($i,-2) >= 20 || substr($i,-2) == 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                    
                }
                if($tien != 0)
                {
                    
                    $getal .= $tientallen[$tien];
                    
                }
                
            }
            else
            {
                
                $getal .= $tientallen_bijzonder[substr($i,-2)];
                
            }
        break;
        
        case strlen($i) == 2:
            $tien = substr($i, -2, 1);
            $een = substr($i, -1, 1);
            
            $getal = '';
            
            if($i >= 20 || $i == 10)
            {

                if($een != 0)
                {
                    
                    $getal = $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                    
                }
                if($tien != 0)
                {
                    
                    $getal .= $tientallen[$tien];
                    
                }
                
            }
            else
            {
                
                $getal = $tientallen_bijzonder[$i];
                
            }
        break;
        
        case strlen($i) == 1:
            $een = substr($i, -1, 1);
            
            $getal = $eenheden[$een];
        break;
        
    }
    
    return $i == 0 ? 'nul' : $getal;
    
}

for($i = 9999; $i <= 9999; $i ++)
{
    
    echo omzetten($i).'<br />';
    
}


?>

Untitled PHP (18-Jul @ 16:55)

Syntax Highlighted Code

  1. <?php
  2.  
  3. function omzetten($i)
  4. {
  5. [164 more lines...]

Plain Code

<?php

function omzetten($i)
{

    $eenheden = array('nul',
                      'een',
                      'twee',
                      'drie',
                      'vier',
                      'vijf',
                      'zes',
                      'zeven',
                      'acht',
                      'negen');
    
    $tientallen = array(1 => 'tien',
                      2 => 'twintig',
                      3 => 'dertig',
                      4 => 'veertig',
                      5 => 'vijftig',
                      6 => 'zestig',
                      7 => 'zeventig',
                      8 => 'tachtig',
                      9 => 'negentig');
    
    $tientallen_bijzonder = array(11 => 'elf',
                      12 => 'twaalf',
                      13 => 'dertien',
                      14 => 'veertien',
                      15 => 'vijftien',
                      16 => 'zestien',
                      17 => 'zeventien',
                      18 => 'achttien',
                      19 => 'negentien');
    
    $honderdtallen = array(1 => 'honderd',
                      2 => 'tweehonderd',
                      3 => 'driehonderd',
                      4 => 'vierhonderd',
                      5 => 'vijfhonderd',
                      6 => 'zeshonderd',
                      7 => 'zevenhonderd',
                      8 => 'achthonderd',
                      9 => 'negenhonderd');
    
    switch($i)
    {
        
        case strlen($i) == 3:
            $honderd = substr($i, 0, 1);
            $tien = substr($i, 1, 1);
            $een = substr($i, 2, 1);
            
            $getal = '';
            
            if($honderd != 0)
            {
                
                $getal = $honderdtallen[$honderd];
                
            }
            
            if(substr($i,1,2) <= 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= 'en';
                    
                }
                
            }
            if(substr($i,1,2) >= 20 || substr($i,1,2) == 10)
            {

                if($een != 0)
                {
                    
                    $getal .= $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                    
                }
                if($tien != 0)
                {
                    
                    $getal .= $tientallen[$tien];
                    
                }
                
            }
            else
            {
                
                $getal .= $tientallen_bijzonder[substr($i,1,2)];
                
            }
        break;
        
        case strlen($i) == 2:
            $tien = substr($i, 0, 1);
            $een = substr($i, 1, 1);
            
            $getal = '';
            
            if($i >= 20 || $i == 10)
            {

                if($een != 0)
                {
                    
                    $getal = $eenheden[$een];
                    
                }
                if($een != 0 && $tien != 0)
                {
                    
                    $getal .= in_array(substr($eenheden[$een],-1),array('a','e','i','o','u')) ? '&euml;n' : 'en';
                    
                }
                if($tien != 0)
                {
                    
                    $getal .= $tientallen[$tien];
                    
                }
                
            }
            else
            {
                
                $getal = $tientallen_bijzonder[$i];
                
            }
        break;
        
        case strlen($i) == 1:
            $een = substr($i, 0, 1);
            
            $getal = $eenheden[$een];
        break;
        
    }
    
    return $i == 0 ? 'nul' : $getal;
    
}

for($i = 0; $i <= 1; $i ++)
{
    
    echo omzetten($i).'<br />';
    
}


?>

Untitled PHP (16-Jul @ 07:53)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4.  
  5. [43 more lines...]

Plain Code

<!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>Untitled Document</title>
<script type="text/javascript" src="http://www.liveband.com.au/music/js/audio-player.js"></script>
<script type="text/javascript">  
     AudioPlayer.setup("http://www.liveband.com.au/music/player.swf", {  
         width:"333",  
         initialvolume:"100",
         remaining:"yes",
         buffer:"5",
         bg:"201606",
         text:"000000",
         leftbg:"201606",
         lefticon:"7F6A4C",
         volslider:"7F6A4C",
         voltrack:"ffecd0",
         rightbg:"201606",
         rightbghover:"201606",
         righticon:"7F6A4C",
         righticonhover:"E9B432",
         track:"7F6A4C",
         loader:"e9b432",
         border:"201606",
         tracker:"e9b432",
         skip:"ae9b85",
         pagebg:"FFFFFF",
         transparentpagebg:"yes"  
     });  
</script>

</head>

<body>


<div id="audioplayer_1">Alternative content</div>
<script type="text/javascript">  AudioPlayer.embed("audioplayer_1", {  soundFile: "http://www.shopnuevaforma.com/media/audio/masmod_axiom/landing-strip.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/hyperventilate.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/eichler.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/phntm-rspr8r.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/memory-duct.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/wind-turbine.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/orbit.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/sharpest-grin.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/asphalt.mp3,http://www.shopnuevaforma.com/media/audio/masmod_axiom/lithograph.mp3",  titles: "Landing Strip,Hyperventilate,Eichler,Phntm Rspr8r,Memory Duct,Wind Turbine,Orbit Around A Sphere,Sharpest Grin,Asphalt,Lithograph",  artists: "Masmöd,Masmöd,Masmöd,Masmöd,Masmöd,Masmöd,Masmöd,Masmöd,Masmöd,Masmöd", autostart: "no", loop: "yes", animation:"no"  });  </script>



</body>
</html>

Untitled PHP (15-Jul @ 20:48)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "hello world!";
  4.  
  5. ?>

Plain Code

<?php 

echo "hello world!";

?>

Untitled PHP (10-Jul @ 13:02)

Syntax Highlighted Code

  1. <?php
  2. echo "test";
  3.  
  4. ?>

Plain Code

<?php
echo "test";

?>

Untitled PHP (29-Jun @ 16:59)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "fuck you";
  4.  
  5. ?>

Plain Code

<?php 

echo "fuck you";

?>

Untitled PHP (13-Jun @ 14:40)

Syntax Highlighted Code

  1.  
  2. class CaptchaImage {
  3.  
  4. [68 more lines...]

Plain Code

session_start();
 
class CaptchaImage {
 
    var $font = 'monofont.ttf';
     private $width     = "120";
    private $height = "40";
    private $tekens = "6";
     
    private function maakCode() {
        
        $tekens = 'abcdfghjkmnpqrstvwxyz123456789';
        
        $code = '';
        $i = 0;
        while ($i < 6) { 
            
            $code.= substr($tekens, mt_rand(0, strlen($tekens)-1), 1);
            $i++;
            
        }
        return $code;
        
    }
    
    public function CaptchaImage() {
           
        $code = $this->maakCode();
        
        /* font size will be 75% of the image height */
        $font_size     = $this->height * 0.75;
        $image         = imagecreate($this->width, $this->height);
        
        //De kleuren van de afbeelding aanamken
        $background_color     = imagecolorallocate($image, 255, 255, 255);
        $text_color         = imagecolorallocate($image, 20, 40, 100);
        $noise_color         = imagecolorallocate($image, 100, 120, 180);
              
        //Creeëren van de puntjes op de achtergrond
        for( $i=0; $i<($this->width * $this->height) / 3; $i++) {
            
            imagefilledellipse($image, mt_rand(0,$this->width), mt_rand(0,$this->height), 1, 1, $noise_color);
            
        }
              
        //Creeëren van de lijnen op de achtergrond
        for( $i=0; $i<($this->width * $this->height) / 150; $i++) {
            
            imageline($image, mt_rand(0,$this->width), mt_rand(0,$this->height), mt_rand(0,$this->width), mt_rand(0,$this->height), $noise_color);
        
        }
              
        //Creeëren van een tekstbox en de tekst er in plaatsen
        $textbox     = imagettfbbox($font_size, 0, $this->font, $code);
        $x             = ($this->width - $textbox[4])/2;
        $y             = ($this->height - $textbox[5])/2;
        
        imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code);
              
        //De afbeelding naar de browser doorsturen en deze laten aanmaken
        header('Content-Type: image/jpeg');
        imagejpeg($image);
        imagedestroy($image);
        $_SESSION['security_code'] = $code;
        
    }
 
}
 
$captcha = new CaptchaImage();

?>
<img src="captcha.php" alt="captcha">

Untitled PHP (2-Jun @ 12:37)

Syntax Highlighted Code

  1. <?=isset($page)?$page:show_404()?>

Plain Code

<?=isset($page)?$page:show_404()?>

Untitled PHP (28-May @ 17:21)

Syntax Highlighted Code

  1. /*
  2.  
  3.                 CONNECTION DIAGRAM
  4.  
  5. [547 more lines...]

Plain Code

/*

                CONNECTION DIAGRAM

                      ------
                PB0 -|1   40|- PA0    
                PB1 -|2   39|- PA1    
                PB2 -|3   28|- PA2    
                PB3 -|4   37|- PA3    
                PB4 -|5   36|- PA4    
                PB5 -|6   35|- PA5    
                PB6 -|7   34|- PA6
                PB7 -|8   33|- PA7
                RESET -|9   32|- AREF
                VCC -|10  31|- GND
                GND -|11  30|- AVCC
              XTAL2 -|12  29|- PC7    UCNT1
              XTAL1 -|13  28|- PC6    UCNT2
                PD0 -|14  27|- PC5    UCNT3
    USARTTX        PD1 -|15  26|- PC4    LVL1
      APOLLOEN    PD2 -|16  25|- PC3    LVL2
    MDIR        PD3 -|17  24|- PC2    LVL3
    MSEL0        PD4 -|18  23|- PC1    LVL4
    MSEL1        PD5 -|19  22|- PC0
    PWMOUT        PD6 -|20  21|- PD7    HERMESEN
                      ------

*/


#include <avr/io.h>
#include <util/delay.h>
#include <stdio.h>
#include <inttypes.h>

#define BAUD 9600
#define MYUBRR F_CPU/16/BAUD-1

#define RAMPTIME        3000    // PWM ramping time (ms)
#define RAMPINTERVAL    300        // PWM ramping interval (ms)

#define LVL4            PC1    // Nivåbryter nivå 4
#define LVL3            PC2    // Nivåbryter nivå 3
#define LVL2            PC3    // Nivåbryter nivå 2
#define LVL1            PC4    // Nivåbryter nivå 1
#define UCNT3            PC5    // Enhetsteller nivå 3
#define UCNT2            PC6    // Enhetsteller nivå 2
#define UCNT1            PC7    // Enhetsteller nivå 1
#define SENSINPUTPIN    PINC // Porten sensorene er koblet til
#define SENSDDR            DDRC // Dataretningsregister for sensorer 

#define TEMP0    1            // Temperaturkanal 1
#define TEMP1    2            // Temperaturkanal 2
#define TEMP2    3            // Temperaturkanal 3
#define TEMP3    4            // Temperaturkanal 4

#define DOOR1    PA5            // Dørbryter 1
#define DOOR2    PA6            // Dørbryter 2
#define DOOR3    PA7            // Dørbryter 3
#define DOORPIN    PINA        // Porten dørbryterne er koblet til

#define HERMESEN    PD7        // Hermes enable
#define APOLLOEN    PD2        // Apollo enable
#define UCPORT        PORTD     // Porten enable-utgangene er på

#define MDIR        PD3        // Motor direction
#define MSEL0        PD4        // Motor selection bit0
#define MSEL1        PD5        // Motor selection bit1
#define PWMOUT        PD6        // Motor PWM channel
#define MOTORPORT    PORTD     // Porten motordriveren er koblet til
#define MOTORDDR    DDRD    // Dataretningsregister for motorport
#define HOME        4

#define HIS        PA0            // Aktiveringsbryter for bordet
#define HISPIN    PINA         // Porten aktiveringsbryteren står på

#define EMPTY 0

#define FORWARD 1
#define REVERSE 0
#define UP         1
#define DOWN    0

#define BOUNCELIMIT    30        // Avprelleingsteller grenseverdi

int sensecnt = 0;            // Avprellingsteller
int holdflag=0;                // Hold-flagg for avprelling

int lvlcnt1 = 1;            // Enhetsteller for nivå 1
int lvlcnt2 = 1;            // Enhetsteller for nivå 2
int lvlcnt3 = 1;            // Enhetsteller for nivå 3

int curtemp0 = 1023;        // Temperaturvariabel for nivå 1
int curtemp1 = 1023;        // Temperaturvariabel for nivå 2
int curtemp2 = 1023;        // Temperaturvariabel for nivå 3
int curtemp3 = 1023;        // Temperaturvariabel for nivå 4

int picklvl = EMPTY;
int motor = 1;
int motordir = FORWARD;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*
    Les inn verdi fra ADC-omforming
    @param int chan - Hvilken ADC-kanal det skal leses fra.
*/
int readADC (int chan){
    int i;
    int ADC_temp;
    int ADCx = 0;
        
    ADMUX  = chan; // Velg kanal

    ADMUX |= (1 << REFS0);                 // Sett referanse til AVCC med ekstern kodensator på AREF
    ADMUX &= ~(1<<REFS1);
    ADCSRA |= (1<<ADPS2)|(1<<ADPS0);     // Sett /16 presacling
    ADCSRA |= (1<<ADEN);                 // Aktiver ADCen

    for(i=0;i<8;i++) {                     // Kjør 8 omforminger av signalet, og bruk gjennomsnittet
        ADCSRA |= (1<<ADSC);             // Kjør en enkel omforming
        while(!(ADCSRA & 0x10));         // Vent til omformingen er ferdig. (ADIF-flagget settes)
        ADC_temp = ADCL;                 // Les nedre del av SAR-registeret
        ADC_temp += (ADCH<<8);             // Legg til øvre del av SAR-registert. (Dette må skiftes 8 plasser)
        ADCx += ADC_temp;                // Akkumuler verdien
    }
    ADCx = (ADCx>>3);                    // Del på 8 (Finn gjennomsnittsverdien)

    ADCSRA &= ~(1<<ADEN);                 // Deaktiver ADCen
    return ADCx;                        // Returner ADC-verdien

}

/*
    USART Initialiseringsrutine
    @param unsigned int baud - Overføringshastigheten
*/
void USARTInit( unsigned int baud ){
    
    UBRR0H = (unsigned char) (baud>>8);            // Sett overføringshastigheten
    UBRR0L = (unsigned char) baud;
    
    UCSR0B = (1<< TXEN0);                        // Aktiver USART-sendemodul
    UCSR0C = (1<<USBS0)|(1<<UCSZ01)|(1<<UCSZ00);// Sett rammeformat til: 1 start-, 8 data- og 2 stoppbit

}
/*
    USART Sending av ett tegn
    @param unsigned char data - Tegnet som skal sendes
*/
void USARTTransmitByte( unsigned char data ){
    
    while (!(UCSR0A & (1<<UDRE0)));    // Vent til USART-modulen er klar for sending
    UDR0 = data;                     // Start overføringen
}

/*
    USART Sending av tekststreng
    @param const char *str - Peker til hvilken streng som skal sendes
*/
void USARTTransmit(const char *str){
    while(*str) {
        USARTTransmitByte((unsigned char)(*str));
        str++;
    }
    USARTTransmitByte(0x04); // Send stopp-byte (EOT)
}

/*
    USART Initialiseringsrutine    
*/
void PWMInit(void){
    // Setter COM0A1 = 1, COM0A0 = 0 i TCCR0A => Clear OC0A on Compare Match, SET OC0A at BOTTOM (Non-Inverting mode)
    // Setter WGM01 = 1, WGM00 = 1 i TCCR0A, og WGM02 = 0 i TCCR0B => Fast-PWM mode        
    TCCR2A |= (0<<COM2B1) | (0<<COM2B0)| (1<<WGM21) | (1<<WGM20);
    TCCR2B &= ~(1<<WGM22);
    TCCR2B |= (1<<CS20); // Ingen skalering av PWM-frekvensen

    // Sett dataretning på de benyttede pinnene til ut.
    MOTORDDR |= (1<<PWMOUT) | (1<<MSEL1) | (1<<MSEL0) | (1<<MDIR);

}

/*
    Acpreller en puls fra en sensor/bryter
    @param unsigned int sens - Referanse til hvilken sensor som skal avprelles
    @param volatile uint8_t *port - Referanse til hvilken port sensoren er koblet på
*/
int debounce_pulse(unsigned int sens, volatile uint8_t *port){
int returnvar = 0;

    while(*port & (1<<sens)){
        sensecnt++;

        if(sensecnt >= BOUNCELIMIT){
            returnvar = 1;
        }
    }

    sensecnt=0;
    
    return returnvar;    
}

/*
    Avpreller en sensor/bryter som holdes inne
    @param unsigned int sens - Referanse til hvilken sensor som skal avprelles
    @param volatile uint8_t *port - Referanse til hvilken port sensoren er koblet på
*/
int debounce_hold(unsigned int sens, volatile uint8_t *pin) {
int returnvar = 0;

    if(holdflag){
        if(!(*pin & (1<<sens))){
            holdflag=0;
        }
    } else {
        if(*pin & (1<<sens)){
            _delay_us(500);
            if(*pin & (1<<sens)){
                returnvar = 1;
                holdflag=1;
            }
        }
    }

    return returnvar;
}

/*
    Lagrer temperaturer i "nåværende temperatur"-variabler
*/
void readtemps(){
    curtemp0 = readADC(TEMP0);
    curtemp1 = readADC(TEMP1);
    curtemp2 = readADC(TEMP3);
    curtemp3 = readADC(TEMP3);
}


/*
    Finner kaldeste nivå
    @returns int - Returnerer en referanse til det kaldeste nivået
*/
int getcoldestlevel(){
    int min = 1023;
    int coldest = 1;
    
    if(curtemp1 < min && lvlcnt1 > 0){
        coldest = 1;
        min = curtemp1;
    }


    if(curtemp2 < min && lvlcnt2 > 0){
        coldest = 2;
        min = curtemp2;
    }

    if(curtemp3 < min && lvlcnt3 > 0){
        coldest = 3;
        min = curtemp3;
    }

    return coldest;
}



/*
    Initialisering av dataretningsregisteret for sensorene    
*/
void SensorInit(){
    SENSDDR = 0x01; // Sett alle pinner på port C til innganger.
}

/*
    Sender systemstatus til Hermes via USART
*/
void SerialSendStatus(){

    char usarttext[40];
    int n;

    readtemps();            
    n=sprintf(usarttext,"T1%dT2%dT3%dC1%dC2%dC3%d", curtemp1, curtemp2, curtemp3, lvlcnt1, lvlcnt2, lvlcnt3);                        
    USARTTransmit(usarttext);
    
}

/*
    Initialisering av motor
    @param unsigned int motor - Hvilken motor som skal kjøres
    @param unsigned in direction - Hvilken retning motoren skal rotere i
*/
void motor_init(unsigned int motor, unsigned int direction){
    // Velg motor
    if(motor == 0){
        MOTORPORT &= ~(1<<MSEL0);    // 0
        MOTORPORT &= ~(1<<MSEL1);    // 0
    } else if (motor == 1){
        MOTORPORT |= (1<<MSEL0);    // 1
        MOTORPORT &= ~(1<<MSEL1);    // 0
    } else if (motor == 2){
        MOTORPORT &= ~(1<<MSEL0);    // 0
        MOTORPORT |= (1<<MSEL1);    // 1
    } else if (motor == 3){
        MOTORPORT |= (1<<MSEL0);    // 1
        MOTORPORT |= (1<<MSEL1);    // 1
    }

    if(direction){                // Sett retningen motoren skal kjøre
        MOTORPORT |= (1<<MDIR);
    } else {
        MOTORPORT &= ~(1<<MDIR);
    }    

}

/*
    Setter hastigheten (pådraget) til motorene
    @param unsigned int speed - Hastigheten i prosent av fullt pådrag
*/
void motor_setspeed(unsigned int speed){
    OCR2B = (255*speed)/100;
}

/*
    Start motoren
*/
void motor_start(){
    TCCR2A |= (1<<COM2B1);

}

/*
    Stopp motoren
*/
void motor_stop(){
    TCCR2A &= ~(1<<COM2B1);

}

/*
    Øker pådraget til motorene gradvis (såkalt ramping)
*/
void motor_rampup(){
    //int i = 1;
    for(int i = 1;i<=100;i++){
        _delay_ms(10);
        motor_setspeed((255*i)/100); // Kalkuler pådragsverdi fra prosentverdi.
    }
}

/*
    Reduserer pådraget til motorene gradvis (såkalt ramping)
*/
void motor_rampdown(){
    for(int i = 100;i>=1;i--){
        _delay_ms(10);
        motor_setspeed((255*i)/100); // Kalkuler pådragsverdi fra prosentverdi.
    }
}

/*
    Kjør heisen til ønsket nivå
    @param unsigned int level - Hvilket nivå heisen skal kjøre til
*/
void elevator_goto(unsigned int level){
    unsigned int dir;

    if(level < HOME){
        dir = DOWN;
    } else {
        dir = UP;
    }

    motor_init(level, dir);
    motor_setspeed(60);
    motor_start();
    
    while(1){
        if(level == 1){
            if(debounce_hold(LVL1, &SENSINPUTPIN)){
                break;    
            }
        } else if (level == 2){
            if(debounce_hold(LVL2, &SENSINPUTPIN)){
                break;    
            }
        } else if (level == 3){
            if(debounce_hold(LVL3, &SENSINPUTPIN)){
                break;    
            }
        } else if (level == HOME){
            if(debounce_hold(LVL3, &SENSINPUTPIN)){
                break;
            }
        }
    }
            
    motor_stop();
}

/*
    Roter et gitt nivå
    @param unsigned int level - Hvilket nivå som skal roteres
    @param unsigned int direction - Hvilken retnings skal nivået roteres i
    @param unsigned int duration - Hvor lenge skal nivået rotere. (0 for uendelig).
*/
void rotatelevel(unsigned int level, unsigned int direction, unsigned int duration){
    // Initialiser motoren med riktige verdier
    motor_init(level, direction);

    motor_setspeed(0); // Start motoren med 0 i pådrag
    motor_start();


    // Gradvis økning av pådrag (ramping) i 100*10ms = 1 sekund
    motor_rampup();

    // Motoren kjører nå på fullt pådrag

    if(duration > 0){
        _delay_ms(duration);

        // Gradvis redusering av pådrag i 1 sekund
        motor_rampdown();

        motor_setspeed(0);
        motor_stop();
    }

}

/*
    Starter dispenseringen av en enhet
    @param unsigned int level - Hvilket nivå det skal hentes en enhet fra
*/
void dispenseunit(unsigned int level){

    elevator_goto(level);

    UCPORT |= (1<<APOLLOEN); // Aktiver Apollo (Lyseffekter)
    
    rotatelevel(level, FORWARD, 5000);
    
    elevator_goto(HOME);

    UCPORT &= ~(1<<APOLLOEN); // Deaktiver Apollo (Lyseffekter)
}

/*
    Starter påfyllingsmodus for et gitt nivå
    @param unsigned int level - Hvilket nivå skal gå i påfyllingsmodus
    @param unsigned int sens - Hvilken sensor/bryter som skal avbryte påfyllingen
    @param volatile uint8_t *port - Hvilken port sensoren/bryteren er koblet til
*/
void startrefillmode(unsigned int level, unsigned int sens, volatile uint8_t *port){
    rotatelevel(level, FORWARD, 0);    // Roter nivået kontinuerlig
    int count = 0;

    while(debounce_hold(sens, port)){
        // Øk antallet enheter i hvertnivå når en enhet blir satt inn
        if(level == 1){
            if(debounce_pulse(UCNT1, &SENSINPUTPIN)){
                lvlcnt1++;
                count = 1;
            }
        } else if(level == 2){
            if(debounce_pulse(UCNT2, &SENSINPUTPIN)){
                lvlcnt2++;
                count = 1;
            }
        } else if(level == 3){
            if(debounce_pulse(UCNT3, &SENSINPUTPIN)){
                lvlcnt3++;
                count = 1;
            }
        }
        
        // Dersom en enhetsteller har økt, gi beskjed til Hermes.
        if(count){
            SerialSendStatus();
            count = 0;
        }    

    }

    // Stopp rotasjonen av platået når døren lukkes

    motor_rampdown();
    motor_setspeed(0);
    motor_stop();

}

/*
    Håndtering av sensorer
*/
void handle_sensors(){

    if(debounce_hold(DOOR1, &DOORPIN)){ // Dersom dør 1 er åpnet...
        startrefillmode(1, DOOR1, &DOORPIN);             // ... start påfyllingsmodus i nivå 1
    }

    if(debounce_hold(DOOR2, &DOORPIN)){ // Dersom dør 1 er åpnet...
        startrefillmode(2, DOOR2, &DOORPIN);             // ... start påfyllingsmodus i nivå 1
    }

    if(debounce_hold(DOOR3, &DOORPIN)){ // Dersom dør 1 er åpnet...
        startrefillmode(3, DOOR3, &DOORPIN);             // ... start påfyllingsmodus i nivå 1
    }

    if(debounce_pulse(HIS, &HISPIN)){     // Dersom sensoren i bordplaten aktiveres...
        dispenseunit(getcoldestlevel());     // ... start dispenseringen av en enhet
    }


}

/*
    Hovedprogram
*/
int main(void){    
    
    USARTInit(MYUBRR);     // Initialiser USART
    PWMInit();             // Initialiser PWM
    SensorInit();        // Initialiser sensorport
    
    DDRA = 0x00;         // Alle pinner i port A settes til innganger.
    //ADCInit() ; // Init ADC

    //DDRD = 0xFF;     // Port D datadir: All out.


    UCPORT |= (1<<HERMESEN); // Enable Hermes

    int i=0;    

    for(;;){
        if(i++ >= 2000){ // Send status til Hermes ved jevne mellomrom.
            SerialSendStatus();
            i=0;
        }

        handle_sensors(); // Håndter sensoraktivering/brytertrykk

    }

}

Untitled PHP (27-May @ 19:34)

Syntax Highlighted Code

  1. sfsdfsdfsfd

Plain Code

sfsdfsdfsfd

Untitled PHP (19-May @ 13:44)

Syntax Highlighted Code

  1. if($i="1") {
  2. $toto = "vas y ";
  3. }

Plain Code

if($i="1") {
$toto = "vas y ";
}

Untitled PHP (16-May @ 14:10)

Syntax Highlighted Code

  1. // Top of page.
  2. <?php include("forums/SSI.php"); ?>
  3.  
  4.  
  5. [18 more lines...]

Plain Code

// Top of page.
<?php include("forums/SSI.php"); ?>


// Huge fucking mess excuse for a smf news ssi puller.
<?php

$array = ssi_boardNews(26, 4, null, null, 'array');

    foreach ($array as $news)
    {
        echo '  
            <font face="Verdana"><b>', $news['subject'], '</b><br /><font size="1"><b>Posted On:</b> ', $news['time'], ' <b>By:</b> ', $news['poster']['link'], '<br /> 
                <font size="2"> ', $news['body'], '<br /><br /></font><font size="1">
                ', $news['link'], ' | ', $news['new_comment'], ' 
            <br /></font></font>';

        if (!$news['is_last'])
            echo '
            <br /><br />';
    }

?>

Untitled PHP (15-May @ 12:59)

Syntax Highlighted Code

  1. $subject = "Inregistrare Targul Agricol";
  2. $body = 'Pentru activarea contului dumneavoastra va rugam sa dati click <a href="http://'.$_SERVER['HTTP_HOST'].'/activare.php?key='.$codConfirmare.'">aici</a>!';
  3. $from = "office@targulagricol.ro";
  4.  
  5. [4 more lines...]

Plain Code

$subject = "Inregistrare Targul Agricol";
$body = 'Pentru activarea contului dumneavoastra va rugam sa dati click <a href="http://'.$_SERVER['HTTP_HOST'].'/activare.php?key='.$codConfirmare.'">aici</a>!';
$from = "office@targulagricol.ro";

$mail = new MailB(array('to' => $data['email'],'from' => $from,'subject' => $subject,'body' => $body));
//$mail->debug();
$mail->send();                                  

Untitled PHP (12-May @ 17:27)

Syntax Highlighted Code

  1. <?php
  2. echo "Blaa";
  3. ?>

Plain Code

<?php
echo "Blaa";
?>

Untitled PHP (5-May @ 03:03)

Syntax Highlighted Code

  1. <?php defined('SYSPATH') OR die('No direct access allowed.');
  2.  
  3. class Ask_Model extends Model
  4. {
  5. [34 more lines...]

Plain Code

<?php defined('SYSPATH') OR die('No direct access allowed.');

class Ask_Model extends Model
{
    protected $table_name = 'cbs_ask';

    public static function factory()
    {
        return new Ask_Model();
    }

    public function  __construct()
    {
        parent::__construct();
    }

    public function get_all()
    {
        $sql = "SELECT * FROM ".$this->table_name;

        return $this->db->query($sql)->result();
    }
    
    public function get_by_person($person_id)
    {
        $sql = "SELECT * FROM ".$this->table_name." WHERE is_public = 1 AND person_id = ".(int)$person_id;

        return $this->db->query($sql)->result();
    }

    public function insert($data)
    {
        $data['dt_create'] = date("Y-m-d H:i:s");

        $query = $this->db->insert($this->table_name, $data);

        return $query->insert_id();
    }
}

Untitled PHP (29-Apr @ 18:39)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "hello world";
  4.  
  5. ?>

Plain Code

<?php

echo "hello world";

?>

Untitled PHP (22-Apr @ 12:33)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /**
  4.  * @author shubby
  5. [70 more lines...]

Plain Code

<?php

/**
 * @author shubby
 * @copyright 2008
 */

session_start();
require_once("includes/tpl/Smarty.class.php");    
require('includes/tpl/SmartyPaginate.class.php');
$tpl = new Smarty;
$tpl->template_dir = 'templates';
$tpl->compile_dir  = 'templates_c/';
$tpl->config_dir   = 'configs/';
$tpl->cache_dir    = 'cache/';
$smarty->caching = true;

SmartyPaginate::reset();
SmartyPaginate::connect();
SmartyPaginate::setLimit(5);
SmartyPaginate::setPageLimit(5);


include("includes/config.php");

$var = explode("/", $_SERVER['REQUEST_URI']);
$link = string_to_filename(RemoveXSS($var[2]));


if($link != "" && $var[1] == "news") {

    $sql2 = "SELECT * FROM fritz_news WHERE news_link='$link'";
    $query = mysql_query($sql2);
    $result = mysql_affected_rows();
    
    if($result) {

        $row = mysql_fetch_array($query);
        $news_data = array('id' => $row[0], 'title' => stripslashes($row[1]), 'link' => stripslashes($row[2]), 'date' => cleanupdate($row[3]), 'message' => stripslashes($row[4]));
        
        $tpl->assign('news', $news_data);
        $tpl->assign('one_post', 'true');
        $tpl->display('home.tpl');
        
} else {
    $tpl->assign('error', 'The requested news post could not be found.');
    $tpl->display('error.tpl');
}

} else {

$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM fritz_news ORDER BY news_date DESC LIMIT " . SmartyPaginate::getCurrentIndex() . ", " . SmartyPaginate::getLimit();

$result = mysql_query($sql);

$query = mysql_query("SELECT FOUND_ROWS() as total");
$row = mysql_fetch_array($query);
SmartyPaginate::setTotal($row['total']);
   
$news_data = array();

   for($i = 0; $i < mysql_num_rows($result); ++$i) {
      $news_data[$i] =  array('id' => mysql_result($result, $i, 'id'),
                           'title' => stripslashes(mysql_result($result, $i, 'news_title')),
                           'link' => stripslashes(mysql_result($result, $i, 'news_link')),
                           'date' => cleanupdate(mysql_result($result, $i, 'news_date')),
                           'message' => stripslashes(mysql_result($result, $i, 'news_message')));
   }
   SmartyPaginate::assign($tpl);
   $tpl->assign('news', $news_data);
   $tpl->assign('rss', 'true');
   $tpl->display('home.tpl');

}
?>

Untitled PHP (22-Apr @ 02:46)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4.  
  5. [138 more lines...]

Plain Code

<?php



$MailToAddress = "simon@boasfalas.com.br"; // your email address

$redirectURL = "b-resposta.html"; // the URL of the thank you page.



# optional settings

$MailSubject = "[Boas Falas - Visitante do Site]"; // the subject of the email

$MailToCC = ""; // CC (carbon copy) also send the email to this address (leave empty if you dont use it)

# in the $MailToCC field you can have more then one e-mail address like "a@yoursite.com, b@yoursite.com, c@yoursite.com"



# If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".

# If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.

# You can use this scirpt to submit your forms or to receive orders by email.



# If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"

# you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>

# you have to do the same with checkboxes



# This script was written by George A. & Calin S. from Web4Future.com

# There are no copyrights in the sent emails.



# SPAMASSASSIN RATING: 0.4



# DO NOT EDIT BELOW THIS LINE ==================================================================

# ver. 1.5

$w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title>$MailSubject</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body>";

if (count($_GET) >0) {

    reset($_GET);

    while(list($key, $val) = each($_GET)) {

        $GLOBALS[$key] = $val;

        if (is_array($val)) {

            $w4fMessage .= "<b>$key:</b> ";

            foreach ($val as $vala) {

                $vala =stripslashes($vala);

                $w4fMessage .= "$vala, ";

            }

            $w4fMessage .= "<br>";

        }

        else {

            $val = stripslashes($val);

            if (($key == "Submit") || ($key == "submit")) { }

            else {     if ($val == "") { $w4fMessage .= "$key: - <br>"; }

                    else { $w4fMessage .= "<b>$key:</b> $val<br>"; }

            }

        }

    } // end while

}//end if

else {

    reset($_POST);

    while(list($key, $val) = each($_POST)) {

        $GLOBALS[$key] = $val;

        if (is_array($val)) {

            $w4fMessage .= "<b>$key:</b> ";

            foreach ($val as $vala) {

                $vala =stripslashes($vala);

                $w4fMessage .= "$vala, ";

            }

            $w4fMessage .= "<br>";

        }

        else {

            $val = stripslashes($val);

            if (($key == "Submit") || ($key == "submit")) { }

            else {     if ($val == "") { $w4fMessage .= "$key: - <br>"; }

                    else { $w4fMessage .= "<b>$key:</b> $val<br>"; }

            }

        }

    } // end while

    }//end else

$w4fMessage = "<font face=verdana size=2>".$w4fMessage."</font></body></html>";

if (!mail($MailToAddress, $MailSubject, $w4fMessage, "From: $name <$email>\r\nReply-To: $name <$email>\r\nMessage-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\nMIME-Version: 1.0\r\nX-Priority: 3\r\nX-Mailer: PHP/" . phpversion()."\r\nX-MimeOLE: Produced By Web4Future Easiest Form2Mail v1.5\r\nBCc: $MailToCC\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Transfer-Encoding: 8bit\r\n")) { echo "Error sending e-mail!";}

else { header("Location: ".$redirectURL); }

?>

Untitled PHP (18-Apr @ 23:28)

Syntax Highlighted Code

  1. <?php
  2. echo 'coucou';
  3.  
  4. ?>

Plain Code

<?php
echo 'coucou';

?>

Export emails of phpbb3 (15-Apr @ 17:30)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. include ("../forum/config.php");
  3. mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die(mysql_error());
  4. mysql_select_db("$dbname") or die(mysql_error());
  5. [52 more lines...]

Plain Code

<?php
include ("../forum/config.php");
mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die(mysql_error());
mysql_select_db("$dbname") or die(mysql_error());



// Get all the data from the "example" table
$result = mysql_query("SELECT * FROM phpbb_users") 
or die(mysql_error());  


echo "

<table id=\"Table_01\" width=\"790\" height=\"122\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">

    <tr>
            <td background=\"http://hostingz.org/images/version2_01.png\"  width=\"790\" height=\"122\">
                          <div class=\"menuhere\">  </div> 
        
        </td>
        
    </tr>
    <tr><td>
    <div style=\"margin-left: 8px; margin-right:8px;\">
    <font size=\"+2\">This page shows all the emails of the members who joined your phpbb3 forum.</font>
    <br><br>
    ";
    while($row = mysql_fetch_array( $result )) {
        // Print out the contents of each row into a table
        if ($row['user_email'] != ""){
            echo $row['user_email']; echo "<br>";
        }
    }
   echo "
    
    </div>
    </td></tr></table>


";
/*
echo "<table border='1'>";
echo "<tr> <th>Name</th> <th>Age</th> </tr>";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
    // Print out the contents of each row into a table
    echo "<tr><td>"; 
    echo $row['username'];
    echo "</td><td>"; 
    echo $row['user_email'];
    echo "</td></tr>"; 
} 

echo "</table>";
*/
?>

Untitled PHP (14-Apr @ 20:10)

Syntax Highlighted Code

  1.  
  2.  
  3. if($_GET['mode'] == "editDA"){
  4.    $sql = "UPDATE `database` SET promovare = 'da'";
  5. [11 more lines...]

Plain Code



if($_GET['mode'] == "editDA"){
   $sql = "UPDATE `database` SET promovare = 'da'";
   $qry = mysql_query($sql);
}
if($_GET['mode'] == "editNU"){
   $sql = "UPDATE `database` SET promovare = 'nu'";
   $qry = mysql_query($sql);
}


 // [...]

<td><?php if($row['promovare'] == "da") print '<a href="?mode=editDA&id=3">DA</a>'; else print '<a href="?mode=editNU&id=3">NU</a>'; ?></td>
// [...]

Untitled PHP (14-Apr @ 20:06)

Syntax Highlighted Code

  1.  
  2. if($_GET['mode'] == "edit"){
  3.    $sql = "UPDATE `database` SET promovare = 'da'";
  4.    $qry = mysql_query($sql);
  5. [6 more lines...]

Plain Code


if($_GET['mode'] == "edit"){
   $sql = "UPDATE `database` SET promovare = 'da'";
   $qry = mysql_query($sql);
}


 // [...]

<td><a href="?mode=edit&id=3">DA</a></td>
// [...]

Untitled PHP (6-Apr @ 08:34)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "ceci est un test";
  4. ?>

Plain Code

<?php

echo "ceci est un test";
?>

Untitled PHP (1-Apr @ 04:59)

Syntax Highlighted Code

  1. <?php
  2. /*
  3. function GetUserData(int $user_id);
  4. gets all data regarding the user in the Users column of the specified user_id
  5. [40 more lines...]

Plain Code

<?php
/*
function GetUserData(int $user_id);
gets all data regarding the user in the Users column of the specified user_id
*/
function GetUserData($uid){
    $sql    = "SELECT * FROM Users WHERE user_id = '$uid' LIMIT 1";
    $query    = mysql_query($sql) or die("Failed to get data<hr>".mysql_error());
    return (mysql_num_rows($query) > 0 ? mysql_fetch_assoc($query) : false);
}
/*
function clean_vars(@ref $variable)
Takes any given variable and passes by reference to update the structure of the
variable in a recursive manor, parsing out any escape attempts held within the
variable given.
*/
function clean_vars(&$var){
    if(is_array($var)){
        foreach($var as $k=>$v){
            clean_vars(&$v);
            $var[$k] = $v;
        }
    } else {
        $var = addslashes((get_magic_quotes_gpc() ? stripslashes($var) : $var));
    }
}
function BuildSelect($arr,$cur,$name,$id=''){
    $id = ($id != '' ? $id : $name);
    $data = '<select name="'.$name.'" id="'.$id.'">';
    foreach($arr as $k=>$v){
        $data .='<option value="'.$k.'"'.($k == $cur || $v == $cur ? ' selected="selected"' : '').'>'.$v.'</option>';
    }
    $data .= '</select>';
    return $data;
}
function GetCardTypes(){
    $data    = array();
    $sql    = "SELECT id,name FROM CreditCardTypes";
    $query    = mysql_query($sql) or die("Failed to get Card Types<hr>".mysql_error());
    while($row = mysql_fetch_array($query)){
        $data[$row[0]] = $row[1];
    }
    return $data;
}
?>

Spambot protection for phpbb3 (11-Mar @ 23:00)

desbest.myopenid.com

Syntax Highlighted Code

  1. ==============================
  2. Edit your phpBB forum template
  3. ucp_register.html
  4. ==============================
  5. [58 more lines...]

Plain Code

==============================
Edit your phpBB forum template
ucp_register.html
==============================
find this
=============
<!-- IF .profile_fields -->
    <tr> 
        <td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
    </tr>
<!-- ENDIF -->
=============
replace with
=============
<!-- IF .profile_fields -->
    <tr> 
        <td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
    </tr>
<!-- ENDIF -->
<tr>
    <td class="row1"><span class="gen">How much is 5+2 *</span></td>
    <td class="row2">
        <input type="text" class="post" style="width: 200px" name="math_question" size="6" maxlength="6" value="" />
    </td>
</tr>

==============================
Edit your registration file
includes/ucp/ucp_register.php
==============================
=============
find this
=============
// validate custom profile fields
$cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);
=============
replace with
=============
            // validate custom profile fields
            $cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);

            //desbest edit spambot detector
            //http://www.thesamet.com/blog/2006/12/21/fighting-spam-on-phpbb-forums/ (phpbb2)    
            if (!isset($_POST['math_question']) || $_POST['math_question'] != '7') {
            $error[] = $user->lang['CAKE'];
            $wrong_confirm = true;
            }
            //desbest edit ends

==============================
Edit the language file
language/en/common.php
==============================
=============
find this
=============
    'CONFIRM_CODE_WRONG'    => 'The confirmation code you entered was incorrect.',
=============
replace with
=============
    'CONFIRM_CODE_WRONG'    => 'The confirmation code you entered was incorrect.',
    'CAKE'                    => 'You answered the mathematical question incorrectly..',

Untitled PHP (3-Mar @ 21:34)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpinfo();
?>

Untitled PHP (1-Mar @ 09:52)

Syntax Highlighted Code

  1. lire
  2.  

Plain Code

lire 
echo

Untitled PHP (26-Feb @ 14:28)

Syntax Highlighted Code

  1. asdf

Plain Code

asdf

Untitled PHP (26-Feb @ 11:54)

Syntax Highlighted Code

  1. <?
  2.  
  3. /*============================================================================*/
  4.  
  5. [277 more lines...]

Plain Code

<?

/*============================================================================*/

/* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
/*                                                                                                       */
/*                                            HEADER PHP(V3.4)                                            */
/*                                                                                                       */
/*                                        GLUCONE© [16/03/2007]                                          */
/*                                                                                                       */
/* ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */

//session_start();// démarage de la session

//*************************************************************************GESTION DES DIRECTORY

$dir[RACINE]='../';
$dir[CLIENTGCM]='';
$dir[BASICGCM]='';
$dir[VERSIONGCM]='';

//*************************************************************************INCLUDES

include("{$dir[RACINE]}includes/MY_DATA.PHP");//____________________________MY_DATA

//include("{$dir[RACINE]}includes/DETECTBROWSER.PHP");//____________________DETECTBROWSER

//********************************************************************LANGUAGE

//$admin_language='true';
include("{$dir[RACINE]}includes/LANGUE.PHP");//___________________________LANGUE

//*************************************************************************FONCTIONS

//include("{$dir[RACINE]}includes/FORMSFUNCTION.PHP");//____________________FROMSFUNCTION.PHP

//include("{$dir[RACINE]}includes/LOGFUNCTION.PHP");//______________________LOGFUNCTION.PHP

//include("{$dir[RACINE]}includes/LOGADMIN.PHP");//______________________LOGADMIN.PHP

include("{$dir[RACINE]}includes/LOGMEMBERS2.6.3.PHP");//______________________LOGMEMBERS.PHP

//include("{$dir[RACINE]}includes/MENUFUNCTION.PHP");//_____________________________MENU.PHP

//include("{$dir[RACINE]}includes/IMAGESFUNCTION.PHP");//__________________________IMAGESFUNCTION.PHP

//include("{$dir[RACINE]}includes/MAILING.PHP");//__________________________MAILING.PHP

//include("{$dir[RACINE]}includes/CHECKFUNCTION.PHP");//____________________CHECKFUNCTION.PHP

//*************************************************************************FONCTIONS

//*************************************************************************CLASSES

require_once ($dir[RACINE].'classes/gc.php');//_____________________________Classes Gestion du Cache

require_once ($dir[RACINE].'classes/mysql.php');//_____________________________Classes Mysql

//require_once ($dir[RACINE].'classes/navmysql.php');//_____________________________Classes Navigation Mysql

require_once ($dir[RACINE].'classes/date.php');//_____________________________Classes DATE

require_once ($dir[RACINE].'classes/calendrier+.php');//_____________________________Classes création de calendrier

//require_once ($dir[RACINE].'classes/formulaire.php');//_____________________________Classes création de formulaire

//require_once ($dir[RACINE].'classes/checkformulaire.php');//_____________________________Classes création de formulaire

//require_once ($dir[RACINE].'classes/logfile.php');//_____________________________Classes gestion des logs textes

//require_once ($dir[RACINE].'classes/logfilemysql.php');//_____________________________Classes gestion des logs dans une table mysql

require_once ($dir[RACINE].'classes/menugcm.php');//_____________________________Classes gestion des menus sur le site client avec un module one

//require_once ($dir[RACINE].'classes/url.php');//_____________________________Classes gestion des urls

//require_once ($dir[RACINE].'classes/mailer.php');//_____________________________Classes gestion des envois de mails

//require_once ($dir[RACINE].'classes/controlmysql.php');//_____________________________Classe de contrôle via MySQL

//*************************************************************************CLASSES


//*************************************************************************CLASSES GCM

//require_once ($dir[RACINE].'classes/classes_gcm/logadmin.php');//_____________________________Classes session gcm admin

//*************************************************************************CLASSES GCM

require_once ($dir[RACINE].'classes/arborescence.php');//_____________________________Aborescence

require_once ($dir[RACINE].'requires/config.php');//_____________________________CONFIG

//*************************************************************************REQUETES MYSQL
$CAT_nom='cat_nom'.$langue;
$ONE_titre = 'one_titre'.$langue;
$ONE_content='one_content'.$langue;
$ONE_titre='one_titre'.$langue;
$ONE_meta='one_extras_pageTitre'.$langue;
$ONE_metakw='one_extras_pageKeywords'.$langue;
$ONE_metadesc='one_extras_pageDescription'.$langue;
$table = 'TXTclinic';

// Nouvelle instance
$Bdd = new MySQL();

// Connection à la base de donnée & Et sélection de la base
if(!$link = $Bdd -> connect($mysql_host,$mysql_member,$mysql_memberpassw,$db)) die($Bdd->return_error());

//*********************************************************************
//****  Construction du sous-menu     *********************************
// Sous-Catégories depuis la cat "interventions" (id 7) --> sous-menu
$Query = "SELECT cat_ID,$CAT_nom FROM ".$table."_cat WHERE cat_check='y' AND cat_idcat != '0' ORDER BY cat_ordre";

// Envoi de la requete :
if(!$Result = $Bdd->Send_Query($Query,$link)) die($Bdd->return_error());

$submenucats = array();
while($arr = $Bdd -> get_array($Result, 'BOTH'))
{
    $submenucats[$arr['cat_ID']] = $arr[$CAT_nom];
}
// !empty($_GET["cat"]) ? $selected_subcat = $_GET["cat"] : $selected_subcat = "";
//**** END sous-menu **************************************************
//*********************************************************************

//*********************************************************************
//**** Récupération de la fiche courante ******************************
!empty($_GET["cat"]) ? $cat = $_GET["cat"] : $cat = 1;
if (empty($_GET["id"])) {
    $Query = "SELECT one_ID,one_cat,$ONE_content,$ONE_titre,one_datein,one_extras_scrolloption FROM ".$table." WHERE one_check = 'y' AND one_cat = ".$cat." ORDER BY one_ordre LIMIT 0,1";
}
else {
    $Query = "SELECT one_ID,one_cat,$ONE_content,$ONE_titre,one_datein,one_extras_scrolloption FROM ".$table." WHERE one_ID = ".$_GET["id"]." AND one_check = 'y' LIMIT 0,1";
}
if (!$Result = $Bdd->Send_Query($Query,$link)) die($Bdd->return_error());
if($Bdd->num_rows()>0) {
    $arr = $Bdd->get_array($Result, 'BOTH');
    $clinic = array();
    $clinic['id'] = $arr['one_ID'];
    $clinic['titre'] = $arr[$ONE_titre];
    $clinic['content'] = $arr[$ONE_content];
    $clinic['datein'] = $arr['one_datein'];
    $clinic['one_cat'] = $arr["one_cat"];
    $clinic['scroll'] = $arr["one_extras_scrolloption"];
    $clinic["scroll"] == 1 ? $scroll_suffix = "Scroll" : $scroll_suffix = "";
}
$fil = array();
ariane($Bdd,$table,$CAT_nom,$clinic['one_cat'],&$fil);
$selected_subcat = $fil[1]["id"];
//*************************************************************************REQUETES MYSQL



$MenuActif='2';
$bgID='3';

            
require("{$dir[RACINE]}requires/req_header.php");//____________________________HEADER

if ($clinic["scroll"] == 1) {
    echo '
        <script src="'.$dir[RACINE].'js/mootools-1.2.1-core.js" type="text/javascript" ></script>
        <script src="'.$dir[RACINE].'js/mootools-1.2-more.js" type="text/javascript" ></script>
        <script src="'.$dir[RACINE].'js/scroller.js" type="text/javascript" ></script>
    ';
}
        
echo' 

<style type="text/css">

</style>




 
 
</head>


<body class="bgBody'.$bgID.'" onload="MM_preloadImages(';
require("{$dir[RACINE]}requires/req_preload.php");//____________________________PRELOAD
echo');">

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    
    
    <!-- /SECTION MAIN CONTAINER -->
    <div id="mainContainer">
        
        <!-- /SECTION LANGUAGE ZONE -->';
            require ($dir[RACINE].'requires/req_language.php');//____________________________LANGUAGE
        echo'    
        <!-- SECTION LANGUAGE ZONE/ -->
        
    
    
        <!-- /SECTION MAIN CONTENT -->
        <div id="mainContent" class="bgMain'.$bgID.'">
            
            
                
            <!-- /SECTION LOGO -->';

                require ($dir[RACINE].'requires/req_logo.php');//____________________________LOGO

            echo'
            <!-- SECTION LOGO/ -->
                        
            
            
            <!-- /SECTION MENUS -->';
            
                require ($dir[RACINE].'requires/req_menus.php');//____________________________MENUS
        
            echo'                    
            <!-- SECTION MENUS/ -->
                        
            
            
            <!-- /SECTION INFO ZONE -->';
            
                require ($dir[RACINE].'requires/req_infos.php');//____________________________MENUS
        
            echo'                    
            <!-- SECTION INFO ZONE/ -->
                    
                    
            <!-- /SECTION CONTENT ZONE -->
               <div id="contentZone">
                
                <div class="contentTitle">
                    <h1>'.$TR["MainTitle_".$menuConfig[$MenuActif]].'</h1>
                </div>
                ';
                if (!empty($clinic)) {
                    echo'
                     <div id="contentDetail'.$scroll_suffix.'">
                         <h2>'.$clinic["titre"].'</h2>
                        '.$clinic["content"].'
                     </div>';
                     if ($clinic["scroll"] == 1) {
                    echo'
                <div id="contentScroller">
                    <a href="#" id="intvntScrollUp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'up\',\'\',\''.$dir[RACINE].'images/bt_scrollUp_rl.png\',1)"><img src="'.$dir[RACINE].'images/bt_scrollUp_up.png" alt="'.$TR[altScrollUp].'" title="'.$TR[altScrollUp].'" name="up" width="20" height="20" border="0"></a>
                    <a href="#" id="intvntScrollDown" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'down\',\'\',\''.$dir[RACINE].'images/bt_scrollDw_rl.png\',1)"><img src="'.$dir[RACINE].'images/bt_scrollDw_up.png" alt="'.$TR[altScrollDw].'" title="'.$TR[altScrollDw].'" name="down" width="20" height="20" border="0"></a>
                </div>
                        ';
                }
                 }
                 echo' 
               </div>       
                
            <!-- SECTION CONTENT ZONE/ -->
            
            
        </div>
        <!-- SECTION MAIN CONTENT/ -->
    
    
    </div>
    <!-- SECTION MAIN CONTAINER/ -->
    
    
     <!-- /SECTION FOOTER -->';
            
        require ($dir[RACINE].'requires/req_footer.php');//____________________________FOOTER
                
    echo'    
    <!-- SECTION FOOTER/ -->
    
    
    </td>
  </tr>
</table>
</body>
</html>';
?>

Untitled PHP (24-Feb @ 07:55)

Syntax Highlighted Code

  1. <?php
  2. /**
  3.  * BS_Image
  4.  *
  5. [395 more lines...]

Plain Code

<?php
/**
 * BS_Image
 *
 * @version   0.80
 * @todo      Support données EXIF
 *            Fonctions de cropping
 */

class BS_Image
{

    /**
     * Chemin vers l'image
     *
     * @var string
     */
    public $path;

    /**
     * Image GD2
     *
     * @var ressource
     */
    public $res;

    /**
     * Largeur de l'image en px
     *
     * @var int
     */
    public $width;

    /**
     * Hauteur de l'image en px
     *
     * @var int
     */
    public $height;

    /**
     * Type mime de l'image
     *
     * @var string
     */
    public $mime;

    /**
     * Orientation de l'image : H pour Horizontale, V pour Vertciale et Sq pour Carrée
     *
     * @var string
     */
    public $orientation;

    /**
     * Types mime acceptés en entrée / sortie
     *
     * @var string
     */
    protected $_mimeAccepted = array ('image/jpeg', 'image/png', 'image/gif');

    /**
     * Liste des types mimes reconnus selon leur extension
     *
     * @var string
     */
    protected $_mimeTypes = array (
    'bmp'=>'image/bmp',
    'gif'=>'image/gif',
    'jpeg'=>'image/jpeg',
    'jpg'=>'image/jpeg',
    'jpe'=>'image/jpeg',
    'png'=>'image/png',
    'tiff'=>'image/tiff',
    'tif'=>'image/tiff',
    'xbm'=>'image/x-xbitmap'
    );
    /**
     * Mémoire approximative, en octets, devant être alloués pour ouvrir ou traiter l'image
     *
     * @var int
     */
    protected $_memImage;

    /**
     * Constructeur
     *
     * @param string $path    Chemin vers le fichier image
     */
    public function __construct($path)
    {
        $this->load($path);
    }

    /**
     * Charge une image
     * Permet de charger une nouvelle image que celle définie dans le constructeur
     *
     * @param string $path    Chemin vers le fichier image
     */
    public function load($path)
    {
        $this->path = $path;

        if (!file_exists($this->path))
        {
            throw new Exception(IMG_FILE_DONT_EXISTS);
        }
        else
        {
            $this->_getImageInfo($this->path);

        }

    }

    /**
     * Prepare l'image a subir des transformations
     *
     * @param string $path        Chemin de destination du fichier image, avec son extension
     *                            Laissé à NULL, la sortie se fera vers le navigateur
     * @param bool   $interlace   Indique si le fichier sera de type progressif ou non
     */
    public function prepare($path = NULL, $interlace = TRUE)
    {
        $this->_prepare($this->mime, $interlace);

        $this->mime = (is_null($path))?$this->mime:$this->_getMimeFromExtension($path);

        $this->path = (is_null($path))?$this->path:$path;

        if (file_exists($this->path))
        {
            throw new Exception(IMG_FILE_ALREADY_EXISTS);
        }

    }

    /**
     * Récupère l'orientation de l'image
     * L'information est également accessible via $this->orientation
     *
     * @return    string
     */
    public function getOrientation()
    {
        if ($this->width === $this->height)
        {
            return $this->orientation = 'Sq';
        }

        return $this->orientation = ($this->width > $this->height)?'H':'V';
    }

    /**
     * Redimentionne l'image selon un ratio de 0 à 100
     *
     * @param int $ratio    Ratio, en %
     */
    public function resizeRatio($ratio)
    {

        $newWidth = $this->width*$ratio/100;

        $newHeight = $this->height*$ratio/100;

        $this->_resize($newWidth, $newHeight);

    }

    /**
     * Force le redimentionnement de l'image selon une largeur définie
     * (determine la nouvelle hauteur)
     *
     * @param int $XForce    Nouvelle largeur
     */
    public function resizeForceWidth($XForce)
    {
        $newWidth = $XForce;

        $newHeight = $this->height/($this->width/$XForce);

        $this->_resize($newWidth, $newHeight);

    }

    /**
     * Force le redimentionnement de l'image selon une hauteur définie
     * (determine la nouvelle largeur)
     *
     * @param int $XForce    Nouvelle hauteur
     */
    public function resizeForceHeight($YForce)
    {
        $newWidth = $this->width/($this->height/$YForce);

        $newHeight = $YForce;

        $this->_resize($newWidth, $newHeight);
    }

    /**
     * Tourne l'image
     *
     * @param int $angle        Angle de rotation, en degré anti-horaire
     */
    public function rotate($angle)
    {
        $this->res = imagerotate($this->res, $angle, 0);
    }

    /**
     * Envoi l'image vers la sortie, selon le paramètre défini dans la mathode $this->prepare()
     * @param int     $opt    Pour une image JPG, qualité de sortie
     */
    public function output($opt = 100)
    {

        switch($this->mime)
        {
            case 'image/jpeg':
                imagejpeg($this->res, $this->path, $opt);
                break;

            case 'image/png':
                imagepng($this->res, $this->path);
                break;

            case 'image/gif':
                imagegif($this->res, $this->path);
                break;
        }

        imagedestroy($this->res);

    }

    /**
     * Récupère les informations hauteur / largeur et type Mime de l'image
     *
     * @param string $path    Chemin vers le fichier image
     */
    private function _getImageInfo($file)
    {
        $info = getimagesize($file);

        $this->width = $info[0];

        $this->height = $info[1];

        $this->mime = image_type_to_mime_type($info[2]);

        if (!in_array($this->mime, $this->_mimeAccepted))
        {
            throw new Exception(IMG_MIME_NOT_SUPPORTED);
        }

    }

    /**
     * Construit la ressource
     *
     * @param string    $mime        Mime type de la ressource
     * @param bool      $interlace    Image progressive ou non
     */
    private function _prepare($mime, $interlace)
    {

        $this->_getUsedMemory();

        switch($mime)
        {
            case 'image/jpeg':

                $this->res = imagecreatefromjpeg($this->path);

                break;

            case 'image/png':

                $this->res = imagecreatefrompng($this->path);

                break;

            case 'image/gif':

                $this->res = imagecreatefromgif($this->path);

                break;
        }

        imageinterlace($this->res, $interlace);

        if (!is_resource($this->res))
        {
            throw new Exception(IMG_UNKOWN_MIME_TYPE);
        }
    }

    /**
     * Détermine si une nouvelle opération est possible, en fonction de la mémoire disponible
     *
     * @param int $moreWidth    Utilisé dans le cas d'un resize
     * @param int $moreHeight   Utilisé dans le cas d'un resize
     */
    private function _getUsedMemory($moreWidth = 0, $moreHeight = 0)
    {
        $memUsed = memory_get_usage();

        $memLimit = (int)ini_get('memory_limit')*1024*1024;

        $memAvailable = $memLimit-$memUsed;

        $this->_memImage = $this->width*$this->height*5.8;

        if ($moreWidth && $moreHeight)
        {
            if (($moreWidth*$moreHeight*5.8) > $memAvailable)
            {
                throw new Exception(IMG_COMPUTE_MEMORY_LIMIT);
            }
        }

        if (($this->_memImage > $memAvailable))
        {
            throw new Exception(IMG_OPEN_MEMORY_LIMIT);
        }

    }

    /**
     * Création d'une nouvelle ressource image
     *
     * @param  int         $newWidth     Dimensions de l'image en px
     * @param  int         $newHeight
     * @return ressource
     */
    private function _imageCreateTrueColor($newWidth, $newHeight)
    {
        $this->_getUsedMemory($newWidth, $newHeight);

        return imagecreatetruecolor($newWidth, $newHeight);
    }

    /**
     * Réalise le redimentionnement
     *
     * @param  int         $newWidth     Dimensions de l'image en px
     * @param  int         $newHeight
     */
    private function _resize($newWidth, $newHeight)
    {
        $copyRes = $this->_imagecreatetruecolor($newWidth, $newHeight);

        imagecopyresampled($copyRes, $this->res, 0, 0, 0, 0, $newWidth, $newHeight, $this->width, $this->height);

        $this->res = $copyRes;

        $this->width = $newWidth;

        $this->height = $newHeight;

    }

    /**
     * Déduit le type mime du fichier image chargé, selon son extension
     * ! Ne récupère pas l'info dans le header, l'info est peu sûre !
     *
     * @param  string    Chemin du fichier
     */
    private function _getMimeFromExtension($file)
    {
        $file = explode('.', basename($file));

        if (count($file) > 1)
        {
            $extension = strtolower($file[count($file)-1]);
        }

        if (array_key_exists($extension, $this->_mimeTypes))
        {
            return $this->_mimeTypes[$extension];
        }
    }

    /**
     * Destructeur
     */
    public function __destruct()
    {
        if (is_resource($this->res))
        {
            imagedestroy($this->res);
        }
    }

}

?>

blah (23-Feb @ 22:01)

Syntax Highlighted Code

  1. <?php
  2.  $blah = "this really sucks " ;
  3.  
  4. print $blah ;
  5. [3 more lines...]

Plain Code

<?php 
 $blah = "this really sucks " ; 

print $blah ; 

?>

Untitled PHP (17-Feb @ 11:18)

Syntax Highlighted Code

  1. <?php phpinfo(); ?>

Plain Code

<?php phpinfo(); ?>

Convert a alpha numeric value to a decimal (8-Feb @ 19:08)

Syntax Highlighted Code

  1. <?php
  2.  
  3. // Convert a alpha numeric value to a decimal
  4.  
  5. [2 more lines...]

Plain Code

<?php

// Convert a alpha numeric value to a decimal

echo base_convert("shs78h",36,10);

?>

HTML Code Special Characters (5-Feb @ 15:30)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2.  
  3. if ($_POST[htmlentities_decode]){
  4.     $original = $_POST[original];
  5. [64 more lines...]

Plain Code

<?php

if ($_POST[htmlentities_decode]){
    $original = $_POST[original];
    echo "<span style=\"background-color:yellow\">HTML Entities Decode
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
    <a href=\"test.php\">Return to the form</a>
    </span><hr>";
    $html_entity_decode = html_entity_decode($original);
    echo "$html_entity_decode";
}


if ($_POST[theform]){
    $original = $_POST[output];
    
    echo "<h2>Nothing</h3>";
    echo $original;
    echo "<hr size=\"20\" color=\"#ffcc00\">";
    
    echo "<h2>HTML Special Chars</h2>
    <h3>Convert special characters to HTML entities</h3>
    <span style=\"background-color:yellow\"><br>
<br><i> * &amp; (ampersand) becomes '&amp;amp;'
    <br>* &quot; (double quote) becomes '&amp;quot;' when ENT_NOQUOTES is not set.
    <br>* &#039; (single quote) becomes '&amp;#039;' only when ENT_QUOTES is set.
    <br>* &lt; (less than) becomes '&amp;lt;'
    <br>* &gt; (greater than) becomes '&amp;gt;'
</i></span><br>
    ";
    
    $htmlspecialchars = htmlspecialchars($original);
    echo "$htmlspecialchars";
    echo "<hr size=\"20\" color=\"#ffcc00\">";
    
/*    echo "<h3>HTML Special Chars Decode</h3>";
    $htmlspecialchars_decode = htmlspecialchars_decode($original);
    echo "$htmlspecialchars_decode";
    echo "<hr size=\"20\" color=\"#ffcc00\">"; */

     echo "<h2>HTML Entities</h2>
     <h3>Convert all applicable characters to HTML entities </h3>";
    $htmlentities = htmlentities($original);
    echo "$htmlentities";
    echo "<hr size=\"20\" color=\"#ffcc00\">";

    echo "
    <form method=\"POST\" >
    <input type=\"hidden\" name=\"original\" value=\"$original\";>
    <br>
    <input type=\"submit\" value=\"View htmlentities_decode\" name=\"htmlentities_decode\">
    ";
}




if (!$_POST[theform] && !$_POST[htmlentities_decode]){
    echo "
    Use this form for html code.
    <br>
    <form method=\"POST\" >
    <textarea name=\"output\" style=\"width: 500px; height: 300px; background-color: #ffcc00;\"></textarea>
    <br>
    <input type=\"submit\" value=\"Submit form\" name=\"theform\">
    </form>
    ";
}
?>

html (4-Feb @ 13:55)

Syntax Highlighted Code

  1. <form method="post">
  2. <table width="100%">
  3.              <tr><td width="30%">Является подразделом раздела:</td><td></td></tr>
  4.              <tr><td>Приоритет</td><td><input type="text" name="edit[PRIOR]" value="<? if(isset($edit['PRIOR'])) echo $edit['PRIOR'];?>"</td></tr>
  5. [6 more lines...]

Plain Code

<form method="post">
<table width="100%">
             <tr><td width="30%">Является подразделом раздела:</td><td></td></tr>
             <tr><td>Приоритет</td><td><input type="text" name="edit[PRIOR]" value="<? if(isset($edit['PRIOR'])) echo $edit['PRIOR'];?>"</td></tr>
             <tr><td>Мета</td><td><input type="text" name="edit[META]" value="<?if(isset($edit['META'])) echo $edit['META'];?>"</td></tr>
             <tr><td>Название</td><td><input type="text" name="edit[NAME]" value="<?if(isset($edit['NAME'])) echo $edit['NAME'];?>"</td></tr>
             <tr><td>URL</td><td><input type="text" name="edit[URL]" value="<?if(isset($edit['URL'])) echo $edit['URL'];?>"</td></tr>
             <tr><td>Контент</td><td><?if(isset($edit['CONTENT'])) echo $edit['CONTENT']; else echo fcke('Данный раздел на стадии заполнения.', 'edit[CONTENT]')?></td></tr>
</table>
<input type="submit" name="btn" value="Сохранить">
</form>

Untitled PHP (3-Feb @ 20:41)

Syntax Highlighted Code

  1. <?php echo "Hello World!"; ?>
  2.  

Plain Code

<?php echo "Hello World!"; ?>

Untitled PHP (30-Jan @ 12:29)

Syntax Highlighted Code

  1. <?php
  2. echo 'bonjour'
  3. ?>

Plain Code

<?php
echo 'bonjour'
?>

Untitled PHP (29-Jan @ 05:53)

Syntax Highlighted Code

  1. <?php echo "test"; ?>

Plain Code

<?php echo "test"; ?>

Untitled PHP (28-Jan @ 16:08)

Syntax Highlighted Code

  1. function reoe($oer) {
  2.  

Plain Code

function reoe($oer) {

Zimplit Multi User v.1.2 (26-Jan @ 23:35)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2.  
  3. /*
  4. Zimplit CMS version 1.2
  5. [1359 more lines...]

Plain Code

<?php

/*
Zimplit CMS version 1.2

Zimplit CMS is a Content Management System developed by
Welisa, Inc. Copyright (C) 2008 Welisa Inc zimplit@zimplit.org.

-- AVAILABLE LICENCE TYPES --

Zimplit CMS is available under three different licenses:

1) AGPL 3
You must keep a visible link to Zimplit Legal Notices, on every generated page. The required link to the Zimplit Legal Notices must be static, visible and readable, 
and the text in the Zimplit Legal Notices may not be altered.

2) Linkware / "Powered by Zimplit CMS" Link Requirement Licence
Same as AGPL, but instead of keeping a link to the Zimplit Legal Notices, you must place a static, visible and readable link to www.zimplit.org with the text or an
image stating "Powered by Zimplit CMS" on every generated page.

3) Commercial Licence
This license will allow you to remove the Zimplit Legal Notices/"Powered by Zimplit CMS" link at one specific domain. This license will also protect your modifications 
against the copyleft requirements in AGPL 3 and give access to registry in the user support forum.
Commercial licenses are available at www.zimplit.org/buy_commercial_license.html. 


You may change this LICENCE TYPES SECTION to relevant information, if you have purchased a commercial licence, 
but then the files may not be distributed to any other domain not covered by a commercial licence.

-- LICENCE TYPES SECTION END -

This copyright note must under no circumstances be removed from this file and any distribution of code covered by this licence.

For more information please visit http://www.zimplit.org

*/

header('Pragma: no-cache');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE); 


/**
 * @param action: load - sends a html file content as response.
 * Use 'file' parameter to specify the HTML file.
 * 
 * Example: zimplit.php?action=load&file=page.html
 * 
 * 
 * @param action: save - saves a HTML source to a file.
 * Use 'file' parameter to specify the HTML file.
 * Use 'html' POST variable, to pass HTML source.
 * 
 * Example: zimplit.php?action=save&file=page.html;
 *             html="<html>....</html>"
 * 
 * 
 * @param action: new - creates a new empty html file.
 * Use 'file' parameter to specify the HTML file.
 * 
 * Example: zimplit.php?action=new&file=page.html
 * 
 * 
 * @param action: delete - deletes a file.
 * Use 'file' parameter to specify the file.
 * Note: if the file is not in the webroot directory, the folder must be specified
 * 
 * Example: zimplit.php?action=delete&file=page.html
 * Example: zimplit.php?action=delete&file=Z-files/page.html
 * 
 * 
 * @param action: upload - uploads a file to a server.
 * Use 'folder' parameter (optional) to specify the folder, where the uploaded file must be moved.
 * Use 'file' POST variable, to pass the file. input="file".
 * 
 * Example: zimplit.php?action=upload&folder=Z-pictures;
 *             file=[Binary stream].
 * 
 *
 * @param action: rename - renames a file.
 * Use 'oldname' parameter to specify the old name of the existing file.
 * Use 'newname' parameter to specify the new name of the file.
 * Note: if the file is not in the webroot directory, the folder must be specified
 * 
 * Example: zimplit.php?action=rename&oldname=oldpage.html&newname=newpage.html
 * 
 * 
 * @param action: changeuserpass - changes username & password data.
 * Use 'username' parameter to specify the new username of the existing file.
 * Use 'password' parameter to specify the new name of the file.
 * 
 * Example: zimplit.php?action=changeuserpass
 * Use 'username' POST variable, to pass the username.
 * Use 'password' POST variable, to pass the password.
 * 
 * 
 * @param action: generatenewpassword - generates a new password and sends it by email.
 * Use 'securitycode' parameter to pass a security code for email verification.
 * Example: zimplit.php?action=generatenewpassword
 * 
 * 
 * @param action: listfiles - returns a list of files in the webroot directory.
 * 
 * Example: zimplit.php?action=listfiles
 */

//GET data
$GDsupport = false; 
if (extension_loaded('gd') && function_exists('gd_info')) {
    $GDsupport = true; 
}
 
if (!isset($_GET['action'])){ $action = NULL; } else {$action = $_GET['action'];}
if (!isset($_GET['file'])){    $file = NULL;} else {$file = $_GET['file'];}
if (!isset($_GET['max_width'])){$max_width = NULL;} else {$max_width = $_GET['max_width'];}
if (!isset($_GET['max_height'])){$max_height = NULL;} else {$max_height = $_GET['max_height'];}
if (!isset($_GET['folder'])){$folder = NULL;} else {$folder = $_GET['folder'];}
if (!isset($_GET['oldname'])){$oldName = NULL;} else {$oldName = $_GET['oldname'];}
if (!isset($_GET['newname'])){$newName = NULL;} else {$newName = $_GET['newname'];}
if (!isset($_GET['title'])){$title = NULL;} else {$title = urldecode($_GET['title']);}
if (isset($_GET['securitycode'])){    $securityCode = $_GET['securitycode'];}
$indexFile = getIndexFile();


//POST data
if (!isset($_POST['html'])){$html = NULL;} else {$html = $_POST['html'];}
if (isset($_POST['username'])){$username = $_POST['username'];}
if (isset($_POST['password'])){$password = $_POST['password'];}
if (isset($_POST['password_again'])){$password_again = $_POST['password_again'];}
if (!isset($_POST['email'])){$email = NULL;} else {$email = $_POST['email'];}
if (!isset($_POST['remember'])){$remember = NULL;} else {$remember = $_POST['remember'];}

//Settings
$locationOfEditor = 'http://zimplit.org/editor/ver1_1/';
$settings['filesFolder'] = 'Z-files';
$settings['picturesFolder'] = 'Z-pictures';
$settings['scriptsFolder'] = 'Z-scripts';
$settings['loginHtmlFile'] = 'login.html';
$settings['registerHtmlFile'] = 'register.html';
$settings['passfile'] = 'security.php';
$settings['menufile'] = 'Zmenu.js';
$settings['reminderContent'] = "You have requested a new password for Your Zimplit web editor. \nUsername: [username]\nPassword: [password]";
$settings['confirmationContent'] = "To confirm password change of Your Zimplit editor visit link \n";
$settings['templates_remote_path_index'] = "http://zimplit.org/ztemplates/index.html";
$settings['templates_remote_path'] = "http://zimplit.org/ztemplates/";

//Local variables
$processRequest = false;

function writePassfileParam($parameter, $value) {
    global $settings;
    $content = file_get_contents($settings['passfile']);
    $fhandle = fopen($settings['passfile'], 'w');
    $matchNr = preg_match('/\$'.$parameter.'=\"([^\"]*)\"/', $content);
    if ($matchNr == 0) {
        $content = str_replace('?>', '$'.$parameter.'="'.$value.'"; ?>', $content);
    } else {
        $content = preg_replace('/\$'.$parameter.'=\"([^\"]*)\"/', '$'.$parameter.'="'.$value.'"', $content);
    }
    $r = fwrite($fhandle, $content);
    fclose($fhandle);
}

function readPassfileParam($parameter) {
    global $settings;
    $content = file_get_contents($settings['passfile']);
    preg_match('/\$'.$parameter.'=\"([^\"]*)\"/', $content, $matches);
    $result = $matches[1];
    return $result;
}

function writePassfile($username, $password, $email, $sessionId) {
    global  $settings;
    $fhandle = fopen($settings['passfile'], 'w');
    $content = '<?php $u="'.$username.'"; $p="'.md5($password).'"; $e="'.$email.'"; $s="'.$sessionId.'"; ?>';
    fwrite($fhandle, $content);
    fclose($fhandle);
}

//Register a new user and write the data to the file
function register($username, $password, $email) {

        //desbest edited here
        $myname = $username;
        require ("../config.php");
        $datenumber = date('Y-m-d');
        $version = "1.2";
        mysql_query("INSERT INTO sites 
        (username, sitename, email, datenumber,version) 
        VALUES('$myname', '$_POST[makethis]',
        '$email', '$datenumber', '$version' ) 
        ") or die(mysql_error()); 
        /**////////Email the user their account details /**/
        
        $makethis = $_POST[makethis];
        $message = "
        
        <html>
        <body>
        <table width=\"790\" height=\"122\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
        
        <tr>
        <td background=\"http://hostingz.org/images/version2_01.png\"  width=\"790\" height=\"122\">
        <div class=\"menuhere\">  </div> 
        
        </td>
        
        </tr>
        <tr><td>
        <div style=\"margin-left: 8px; margin-right:8px; font-family: Tahoma; font-size: 16px;\">
        <br>You've successfully created a Hostingz Site Builder website
        <br>Below are your account details
        <br>
        <br><b>Username:</b> $myname
        <br><b>Password:</b> $password
        <br><b>Email:</b> $password
        <br><b>Website Address:</b> http://$makethis.hostingz.org
        
        <br><br><a href=\"http://hostingz.org\">Launch Hostingz</a>
        <br>
        <br><br><a href=\"http://$makethis.hostingz.org\">Launch your website</a>
        </div>
        </td></tr></table>
        </body>
        </html>
        
        ";
        $subject  = "$makethis Hostingz Site Builder Account Details";
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
        /**/
        /**/// Additional headers
        $to = "$email";
        $headers .= "To:<$to>" . "\r\n";
        $headers .= 'From: Hostingz <donotreply@hostingz.org>' . "\r\n";
        /**/// Mail it
        $task = mail($to, $subject, $message, $headers);
        ////////////////////////////////////////////////////////////////////////
        /**////////Email the user their account details




    global  $settings, $indexFile;
    $sessionId = generateRandomCode(20);
    setcookie("ZsessionId", $sessionId);
    writePassfile($username, $password, $email, $sessionId);

    if (!is_dir($settings['filesFolder']))
        {
            mkdir($settings['filesFolder'], 0777);
            chmod($settings['filesFolder'],0777);
        }
    if (!is_dir($settings['picturesFolder'])) {
        mkdir($settings['picturesFolder'], 0777);
        chmod($settings['picturesFolder'],0777);
        };
    if (!is_dir($settings['scriptsFolder'])){
        mkdir($settings['scriptsFolder'], 0777);
        chmod($settings['scriptsFolder'],0777);
    }
    
    
    if(checkFileExistance($settings['menufile'])=='0'){
        checkMenuFile();
    } else {
        if (is_file($settings['menufile'])) {
            if (is_readable($settings['menufile'])) {
                $Mcontent = file_get_contents($settings['menufile']);
                if($Mcontent == ''){
                    checkMenuFile();
                }
            }
        }
    } 
    
    echo '<html><head><script>document.location = "zimplit.php?action=load&file='.$indexFile.'";</script></head><body></body></html>';
    
}

function checkMenuFile(){
    global  $settings, $indexFile;
    
        $theIndFile = 'hasNone';
        if(checkFileExistance('index.html')=='0'){
            if(checkFileExistance('index.htm')=='0'){
            
            } else{
                $theIndFile = 'index.htm';
            }
        } else {
            $theIndFile = 'index.html';
        }
        
        
        
        if ($theIndFile != 'hasNone'){
            $fhandle = fopen($settings['menufile'], 'w');
            
                $contentMenu = 'var ZMenuArray = []; 
var GlobZIndexfile = "'.$theIndFile.'"; 
ZMenuArray["'.$theIndFile.'"] = [];
ZMenuArray["'.$theIndFile.'"]["name"] = "First Page";
ZMenuArray["'.$theIndFile.'"]["parent"] = "";
ZMenuArray["'.$theIndFile.'"]["self"] = "'.$theIndFile.'";
ZMenuArray["'.$theIndFile.'"]["index"] = "0";';

            fwrite($fhandle, $contentMenu);
            fclose($fhandle);
        } else {
            
        }
}


//Show login screen
function showLoginScreen() {
    global $settings, $locationOfEditor;
    $content = '
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
        <head>
            <title></title>
            <meta name="author" content="" />
            <meta name="keywords" content="" />
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                
            <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
            <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
            <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

            <script type="text/javascript">
                function InitRegister(){
                    $("#ZMainOverlay").height($(window).height());
                    $("#ZloginScreen").draggable();
                    $("#zimplitPage").height($(window).height());
                    
                }
            </script>
            
        </head>
        <body onload="InitRegister();" style="overflow:hidden;">
            <div id="ZMainOverlay"></div>
            <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                <div id="ZloginScreen" class="ZpopupScreen" >
                    <div class="inner">
                        <div class="header">
                            <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                            Log in
                        </div>
                        <form method="post" action="zimplit.php?action=login">
                        <div class="loginarea">
                            <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                            <br/>
                            <span style="font-size:10px;line-height: 12px;">Username</span>
                            <input type="hidden" name="file" value="'.getFile().'"/>
                            <input type="text" class="txtbox" name="username" value="Username" onfocus="if(this.value==\'Username\'){this.value=\'\';}"/>
                            <span style="font-size:10px;line-height: 12px;">Password</span>
                            <input type="password" class="txtbox" name="password" value="password" onfocus="if(this.value==\'password\'){this.value=\'\';}" />
                            <input type="submit" name="submit" class="submitBtn" value="Start!" /> 
                            <input type="checkbox" name="remember" value="true" /> Remember Me<br/><br/>
                            <a href="zimplit.php?action=generatenewpassword" target="_top" style="color: #1e9d11;">Forgot password?</a>
                            
                        </div>
                        </form>
                    </div>
                </div>
            </div>
            
            <!-- the frame of page to be loaded into -->
            <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getFile().'"></iframe>
        </body>
        </html>    
    ';
    //desbest edited here            
    
    if ($_POST[makethis] != ""){
    echo $content;
    } else {
    echo "
    <h1>Error!</h1>
    <h2>You might have typed it into the address bar.</h2>
    <h3>This is not allowed. This empty website will be deleted within a week.</h3>
    <h4><a href=\"#\" onClick=\"history.go(-1)\">Go Back</a></h4>
    "; 
    }
    
    
}


//Show registration screen
function showRegistrationScreen() {
    global $settings, $locationOfEditor;
    
    $content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
                <head>
                    <title></title>
                    <meta name="author" content="" />
                    <meta name="keywords" content="" />
                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        
                    <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                    <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                    <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                    <script type="text/javascript">
                        function InitRegister(){
                            $("#ZMainOverlay").height($(window).height());
                            $("#ZloginScreen").draggable();
                            $("#zimplitPage").height($(window).height());
                            
                        }
                        
                        function CheckZForm(){
                            var theanswer = true;
                            var alerts = "Some fileds are not filled: \n";
                            if (($("#Zusername").val() == "")||($("#Zusername").val() == "Username")){
                                alerts += "Username not defined. \n";
                                theanswer = false;
                            }
                            if (($("#Zemail").val() == "")||($("#Zemail").val() == "Your email address")){
                                alerts += "Email not defined. \n";
                                theanswer = false;
                            }
                            if ($("#Zpassword").val() == ""){
                                alerts += "Password not defined. \n";
                                theanswer = false;
                            } else {
                                if (document.getElementById("Zpassword").value != document.getElementById("Zpasswordagain").value){
                                    alerts += "Password and retyped password do not match. \n";
                                    theanswer = false;
                                }
                            }
                            if (!theanswer){ alert(alerts);}
                            return theanswer;
                        }
                    </script>
                    
                </head>
                <body onload="InitRegister();">
                    <div id="ZMainOverlay"></div>
                    <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                        <div id="ZloginScreen" class="ZpopupScreen" style="height:460px;">
                            <div class="inner" style="height:460px;">
                                <div class="header">
                                    <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn " alt="" /></a>
                                    Create your account!
                                </div>
                                <form method="post" action="zimplit.php?action=register" onsubmit="return CheckZForm();">
                                <div class="loginarea">
                                    <a href="#"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a><br/>
                                    <span style="font-size:10px;line-height: 12px;">Username</span>
                                    <input type="text" class="txtbox" id="Zusername" name="username" onclick="this.value=\'\';" value="Username"/>
                                    <span style="font-size:10px;line-height: 12px;">Password</span>
                                    <input type="password" class="txtbox" id="Zpassword" name="password" onclick="this.value=\'\';" value="" />
                                    <span style="font-size:10px;line-height: 12px;">Retype password</span>
                                    <input type="password" class="txtbox" id="Zpasswordagain" name="password_again" onclick="this.value=\'\';" value="" />
                                    <span style="font-size:10px;line-height: 12px;">Your email address</span>
                                    <input type="text" class="txtbox" id="Zemail" name="email" onclick="this.value=\'\';" value="Your email address"/>
                                    <br><br><span style="font-size:10px;line-height: 12px;">Your site identity and subdomain
                                                       <input type="text" readonly class="txtbox" name="makethis" value="'.$_POST[makethis].'"/>
                                                          <input type="submit" name="submit" class="submitBtn" value="Start!" />
                                    <br> <a href="#">Why is it necessary?</a>
                                    
                                </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- the frame of page to be loaded into -->
                    <iframe id="zimplitPage" width="100%" frameborder="0" height="700px" src="'.getIndexFile().'"></iframe>
                </body>
                </html>';
    echo $content;
}


//Checking username and password
function login($username, $password, $remember) {
    global $settings;
    $content = file_get_contents($settings['passfile']);
    if (strpos($content, '$u="'.$username.'";') && strpos($content, '$p="'.md5($password).'";')) {
        $sessionId = generateRandomCode(20);
        $expire = 0;
        if ($remember == 'true') {
            $expire = time()+60*60*24*30;
        }
        setcookie("ZsessionId", $sessionId, $expire);
        writePassfileParam('s', $sessionId);
        writePassfileParam('r', $remember);
        header( 'Location: zimplit.php?action=load&file='.getFile());
    } else {
        logout();
    }
}

//Closing session
function logout() {
    $remember = readPassfileParam("r");
    if ($remember == 'true') {
        header( 'Location:'.getFile());
    } else {
        setcookie("ZsessionId", "",  time()-60*60*24*30);
        writePassfileParam('s', '');
        writePassfileParam('r', '');
        showLoginScreen();
    }
}


//Check, if the visitor is authorized to access the CMS
function isAutorized() {
    global $settings;
    $rv = false;
    $content = file_get_contents($settings['passfile']);
    if (strpos($content, '$s="";') === false && strlen ($_COOKIE['ZsessionId']) > 0 && strpos($content, '$s="'.$_COOKIE['ZsessionId'].'";')) {
        $rv = true;
    }
    return $rv;
}

//Change username and password
function changeUsernamePasword($username, $password) {
    if (isAutorized() &&  strlen ($username) > 0 &&  strlen ($password) > 0 ) {
        writePassfileParam('u', $username);
        writePassfileParam('p', md5($password));
    }
    //global $settings;
    //$content = str_replace('$u="'.$_COOKIE['Zuser'].'"; $p="'.$_COOKIE['Zpass'].'";',
    //                         '$u="'.$username.'"; $p="'.md5($password).'";', $content);
    //
    //$fhandle = fopen($settings['passfile'], 'w');
    //fwrite($fhandle, $content);
    //fclose($fhandle);
    //setcookie("Zuser", $username);
    //setcookie("Zpass", md5($password));
    return $content;
}

//Generate random code with given length
function generateRandomCode($length) {
    $chars = 'abcdefghijklmnopqrstuvwxyz1234567890';
    $result = '';
    for ($i = 0; $i < $length; $i++) {
    $char = $chars[rand(0, strlen($chars)-1)];
        $result .= $char;
    }
    return $result;
}

//Generate and send a new password
function generateNewPassword() {
    global $settings, $securityCode, $locationOfEditor;
    //$chars = 'abcdefghijklmnopqrstuvwxyz1234567890';
    
    $content = file_get_contents($settings['passfile']);
    preg_match('/\$e=\"([^\"]*)\"/', $content, $matches);
    $email = $matches[1];
    
    preg_match('/\$u=\"([^\"]*)\"/', $content, $matches);
    $username = $matches[1];
    
    $securityCode2 = md5(date("F d Y H:i:s.", filemtime($settings['passfile'])));
    
    if ($securityCode) {
        if ($securityCode == $securityCode2) {
            //for ($i = 0; $i < 8; $i++) {
            //    $char = $chars[rand(0, strlen($chars)-1)];
            //    $newpass .= $char;
            //}
            $newpass .= generateRandomCode(8);
            $fhandle = fopen($settings['passfile'], 'w');
            $content = preg_replace('/\$p=\"([^\"]*)\"/', '$p="'.md5($newpass).'"', $content);
            $r = fwrite($fhandle, $content);
            fclose($fhandle);
            
            $message = str_replace('[username]', $username, $settings['reminderContent']);
            $message = str_replace('[password]', $newpass, $message);
            mail($email, 'Your new Zimplit password', $message);
            
            /* the html displayed when passwd confirmation sent */
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                A new password was created and sent to Your e-mail.<br/><br/>Check your email.<br/> To continue loging in klick OK.<br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
            
            
            if ($r > 0) echo $content;
            else return false;
        } else {
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                Password confirmation failed!<br/><br/>This error can be because someone has already requested a new password change. <br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
        
        
            echo $content;
        }
    } else {
        $link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?action=generatenewpassword&securitycode='.$securityCode2.'';
        $message = $settings['confirmationContent'].$link;
        mail($email, 'A new password was requested from Zimplit editor', $message);
        
        /* the html displayed when passwd confirmation sent */
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                A mail with confirmation for a new password was sent to Your mail. <br/><br/> Check your mailbox to confirm <br/>password change!<br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
        echo $content;
    
    }
}

//Send reply mail 

function sendReply(){
    $message = '
User question from Zimplit editor

Name: '.$_POST['Name'].'
E-mail: '.$_POST['Email'].'

Location: '.$_POST['doclocation'].'

Problem:
'.utf8_decode($_POST['Text']).'
    ';
    mail('support@zimplit.org', 'User question from Zimplit editor', $message);
    return true;
}

// checck file existance
// returns 1 if file exists and 0 if does not
function checkFileExistance($file){
    if (is_file($file)) {
        if (is_readable($file)) {
            return '1';
        } else {
            return '0';
        }
    } else {
        return '0';
    }
}

function getFile(){
    $file = $_GET['file'];
    if ($file == '') {
        $file = $_POST['file'];
    }
    if ($file != '' && checkFileExistance($file)=='1'){
        return $file;
    }
    return getIndexFile();
}

function getIndexFile(){
    if(checkFileExistance('index.html')=='0'){
        return 'index.htm';
    } else {
        return 'index.html';
    }
}

// function to resize image via gd library

function createthumb($name,$filename,$new_w,$new_h){
    $system=explode('.',$name);
    if (preg_match('/jpg|jpeg|JPG|JPEG/',$system[1])){
        $src_img=imagecreatefromjpeg($name);
    }
    if (preg_match('/png|PNG/',$system[1])){
        $src_img=imagecreatefrompng($name);
    }
    $old_x=imageSX($src_img);
    $old_y=imageSY($src_img);
    if ($old_x > $old_y) {
        $thumb_w=$new_w;
        $thumb_h=$old_y*($new_h/$old_x);
    }
    if ($old_x < $old_y) {
        $thumb_w=$old_x*($new_w/$old_y);
        $thumb_h=$new_h;
    }
    if ($old_x == $old_y) {
        $thumb_w=$new_w;
        $thumb_h=$new_h;
    }
    $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);
    imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
    if (preg_match("/png/",$system[1]))
    {
        imagepng($dst_img,$filename); 
    } else {
        imagejpeg($dst_img,$filename); 
    }
    imagedestroy($dst_img); 
    imagedestroy($src_img); 
}


//Get the HTML content from the file.
//Returns FALSE on falure, html content on success
function getHTML($file) {
    if (is_file($file)) {
        if (is_readable($file)) {
            
            $content = file_get_contents($file);
            if ($content === FALSE) {
                return 'Error: Cannot read from the file '.$file.'.';
            }
            
            return $content;
        } else {
            return 'Error: The file '.$file.' is not readable.';
        }
    } else {
        return 'Error: The file '.$file.' does not exist.';
    }
}

//Get the HTML content from the file with editor .
//Returns FALSE on falure, html content on success
function getHTML1($file) {
    global  $locationOfEditor,$GDsupport;
    if (is_file($file)) {
        if (is_readable($file)) {
            
            $content = file_get_contents($file);
            if ($content === FALSE) {
                return 'Cannot read from the file '.$file.'.';
            } else {
                $LoadingFrameHtmlTop = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
                    <head>
                        <title></title>
                        <meta name="author" content="" />
                        <meta name="keywords" content="" />
                        <meta http-equiv="Pragma" content="no-cache">
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        
                        <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                        <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                        <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>
                        <script src="'.$locationOfEditor.'jquery.form.js" type="text/javascript"></script>
                        <script type="text/javascript">
                            GlobZIndexfile = "'.getIndexFile().'";
                            GDsupport = "'.$GDsupport.'";
                            ZimplitEditorLocation = "'.$locationOfEditor.'";
                        </script>
                        <script src="'.$locationOfEditor.'zimplit.js" type="text/javascript"></script>
                        <script src="Zmenu.js?t='.time().'" type="text/javascript"></script>
                        
                    <style>
                        body,html { margin:0; padding:0; }
                        iframe { border:0; margin:0; padding:0; width: 100%; }
                        #zimplitMenu {background: #AAAAAA; } 
                    </style>
                        
                    </head>
                    <body onload="ready();" id="ZimplitRootBody">
                        <!-- the frame of page to be loaded into -->
                        <iframe id="zimplitPage" name="zimplitPage" onload="ZDoTheReload();" width="100%" frameborder="0" height="700px" src="';
                                         
                $LoadingFrameHtmlBottom ='"></iframe>
                    </body>
                    </html>';
                $content = $LoadingFrameHtmlTop . $file . $LoadingFrameHtmlBottom;
            }
            
            
            
            return $content;
        } else {
            return 'The file '.$file.' is not readable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}


//Writes the HTML content to the file.
//Returns FALSE on falure, TRUE on success
function saveHTML($file, $html) {
    if (is_file($file)) {
        if (is_writable($file)) {
            if (!$handle = fopen($file, 'w')) {
                return 'Cannot open file '.$file.'.';
            }
            if (fwrite($handle, $html) === FALSE) {
                return 'Cannot write to file '.$file.'.';
            }
            fclose($handle);
        } else {
            return 'The file '.$file.' is not writable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}

function checkFileIsWritable($file){
    if (is_writable($file)) {
        return 0;
    } else {
        return 1;
    }
}



//Writes the HTML content to the file.
//Returns FALSE on falure, TRUE on success
function saveHTML1($file, $html) {
    $html1 = preg_replace('/\\\"/', '"', urldecode($html));
    $html1 = preg_replace('/%27/', "'", $html1);
    
    if (is_file($file)) {
        if (is_writable($file)) {
            if (!$handle = fopen($file, 'w')) {
                return 'Cannot open file '.$file.'.';
            }
            if (fwrite($handle, $html1) === FALSE) {
                return 'Cannot write to file '.$file.'.';
            }
            fclose($handle);
        } else {
            return 'The file '.$file.' is not writable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}



//Create new html file
function newFile($file) {
    if (file_exists($file)) {
        return 'The file '.$file.' already exists.';
    }
    if (touch($file)) {
        chmod($file,0666); 
        return true;
    } else {
        return 'The file '.$file.' cannot be created.';
    }
}


//Delete the file
function deleteFile($file, $folder='') {
    if (!file_exists($file)) {
        return 'The file '.$file.' does not exist.';
    }
    if (@unlink($file)) {
        return true;
    } else {
        return 'The file '.$file.' cannot be deleted.';
    }
}


//Upload a file
function uploadFile($folder='') {
    global $_FILES, $max_width, $max_height,$GDsupport;
    
    $file = $_FILES['file']['name'];
    $tmpfile = $_FILES['file']['tmp_name'];
    
    if ($folder) {
        if (!is_dir($folder)) {
            return 'No such directory: '.$folder;
        } else if (!is_writable($folder)) {
            return 'Cannot write to directory: '.$folder;
        }
    }
    
    $error = $_FILES["file"]["error"];
    if ($error == UPLOAD_ERR_INI_SIZE) {
           return 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
       } else if ($error == UPLOAD_ERR_FORM_SIZE) {
           return 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.';
       } else if ($error == UPLOAD_ERR_PARTIAL) {
           return 'The uploaded file was only partially uploaded.';
       } else if (!$error == UPLOAD_ERR_OK) {
           return 'Failed to upload the file.';
       }
    
    $ext = strchr($file, '.');

    //Check image size
    if (strpos('.jpg.jpeg.png.gif.', $ext.'.') !== false) {
        $info = getimagesize($tmpfile);
    
        if (($info[0] > $max_width) || ($info[1] > $max_height)) {
            return 'Image must be '.$max_width.'px X '.$max_height.'px or smaller. Please resize image and try again.';
        }
    }
    if ($folder) {
        $path = $folder.'/'.$file;
    } else {
        $path = $file;
    }
    if (!move_uploaded_file($tmpfile, $path)) {
        return 'Failed to move the file to the '.$folder.' directory.';
    } else {
        if($GDsupport){ // if gd library present do thumbnail
            if (strpos('.jpg.jpeg.png.JPG.JPEG.PNG.', $ext.'.') !== false) {
                $content = file_get_contents('Zsettings.js');
                preg_match('/ZmaxpicZoomW \= \"([^\"]+)\"/i', $content, $ZWmatch); 
                $ZoomThumbW =  $ZWmatch[1];
                preg_match('/ZmaxpicZoomH \= \"([^\"]+)\"/i', $content, $ZHmatch); 
                $ZoomThumbH =  $ZHmatch[1];
                $thenewname = preg_replace('/'.$ext.'/i', '_thumb'.$ext, $path);
                createthumb($path,$thenewname,$ZoomThumbW,$ZoomThumbH);
            } 
        }
        return true;
    }
}


//Rename a file
function renameFile($oldName, $newName) {
    if (file_exists($newName)) {
        return 'The file '.$newName.' already exists.';
    }
    if (!file_exists($oldName)) {
        return 'The file '.$oldName.' does not exist.';
    }
    if (rename($oldName, $newName)) {
        return true;
    } else {
        return 'Failed to rename a file '.$oldName.'.';
    }
}


//Copy a HTML file with a new title
function copyHtml($file, $newFile, $title) {
    $content = getHTML($file);
    if (strpos($content, 'Error: ') !== 0) {
        $content = preg_replace('/<title>[^<]+<\/title>/i', '<title>'.$title.'</title>', $content);
        $r = newFile($newFile);
        if (strpos($r, 'Error: ') !== 0) {
            return saveHTML($newFile, $content);
        } else return $r;
    } else return $content;
}

//Get a list of files in http directory
function listFiles() {
    if ($handle = opendir('.')) {
        while (false !== ($file = readdir($handle))) {
            if ($file != '.' && $file != '..' && is_file($file) && strpos($file, '.htm')) {
                $files[] = $file;
            }
        }
        closedir($handle);
        
        $fileAndTitle = array();
        
        foreach($files as $Thefile){
            $content = getHTML($Thefile);
            
            $matches = array();
            $pattern = '/<title>(.*)<\/title>/i';
            preg_match($pattern, $content, $matches);
            $pagetitle = $matches[1];
            $fileAndTitle[] = $Thefile.'|'.$pagetitle;
            
        }
    }
    return implode(';', $fileAndTitle);
}


//Download zip
function downloadZip($src) {
    global $settings;
    
    $file = basename($src);
    if(function_exists("curl_init")) {
        $ch = curl_init();
        $fp = fopen($file, 'w');
        curl_setopt($ch, CURLOPT_URL, $settings['templates_remote_path'].'/'.$src);
        curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);        
        curl_setopt($ch, CURLOPT_FILE, $fp);
        $response = curl_exec($ch);
        curl_close($ch);
    } else {
        $data = file_get_contents($settings['templates_remote_path'].'/'.$src);
        file_put_contents($file, $data);
    }
}

function unzip($file, $path="") {
    global $settings;
    $filepath = getcwd().'/'.$file;
    if (file_exists($filepath)) {
        
        if (file_exists($settings['scriptsFolder'].'/pclzip.lib.php')) {
            require_once($settings['scriptsFolder'].'/pclzip.lib.php');
            $archive = new PclZip($file);
            if ($archive->extract() == 0) {
                return "Error : ".$archive->errorInfo(true);
            }
        } else {
            $phpversion = phpversion();
            $modules = get_loaded_extensions();
            if ($phpversion[0] == 4) {
                if (function_exists("zip_open")) {
                    $zip = zip_open($filepath);
                    if ($zip) {
                        while ($zip_entry = zip_read($zip)) {
                            if (zip_entry_filesize($zip_entry) > 0) {
                                $complete_path = $path.str_replace('/','\\',dirname(zip_entry_name($zip_entry)));
                                $complete_name = $path.str_replace ('/','\\',zip_entry_name($zip_entry));
                                if(!file_exists($complete_path)) { 
                                    $tmp = '';
                                    foreach(explode('\\',$complete_path) as $k) {
                                        $tmp .= $k.'\\';
                                        if(!file_exists($tmp)) {
                                            mkdir($tmp, 0777);
                                        }
                                    }
                                }
                                if (zip_entry_open($zip, $zip_entry, "r")) {
                                    $fd = fopen($complete_name, 'w');
                                    fwrite($fd, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)));
                                    fclose($fd);
                                    zip_entry_close($zip_entry);
                                }
                            }
                        }
                        zip_close($zip);
                        return true;
                    } else {
                        return 'Error: The zip file '.$file.' is damaged.';
                    }
                }            
                
            } else {
                if (in_array("zip", $modules)) {
                    $zip = new ZipArchive();
                    if ($zip->open($file)===true)
                    {
                        $zip->extractTo(".");
                        $zip->close();
                        return true;
                    }
                    return 'Error: The zip file '.$file.' is damaged.';
                } else {
                    return 'Error: Zip is not supported.';
                }
            }
        }
        
    } else {
        return 'Error: The file '.$file.' does not exist.';
    }
}

function downloadTemplate($file) {
    downloadZip($file);
    return unzip(basename($file),'');
}

function checkIfHasIndexFile(){
    if(checkFileExistance('index.html')=='0'){
        if(checkFileExistance('index.htm')=='0'){
            return false;
        } else { 
            return true;
        }
    } else {
        return true;
    }
}


function loadExternalTemplHtml($fileaddr){
    global  $locationOfEditor;
    header('Content-Type: text/html');
    
        $LoadingFrameHtmlTop = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Pragma" content="no-cache">
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery.form.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'zimplitTemplate_new.js" type="text/javascript"></script>
            <style>
                body,html { margin:0; padding:0; }
                iframe { border:0; margin:0; padding:0; width: 100%; }
                #zimplitMenu {background: #AAAAAA; } 
            </style>
                 
            </head>
            <body onload="" id="ZimplitRootBody">
                <!-- the frame of page to be loaded into -->
                <div id="zimplitTempPage">';
                                 
        $LoadingFrameHtmlBottom ='</div>
            </body>
            </html>'; 
        $content = $LoadingFrameHtmlTop . file_get_contents($fileaddr) . $LoadingFrameHtmlBottom;
    echo $content;
}

function loadTemplPage($fileaddr){
    global $settings;
    loadExternalTemplHtml($settings['templates_remote_path'].$fileaddr);
}


/*unzip("template1.zip");*/

if (file_exists($settings['passfile'])) {
    if (isAutorized()) {
        
            if(checkFileExistance($settings['menufile'])=='0'){
            checkMenuFile();
        } else {
            if (is_file($settings['menufile'])) {
                if (is_readable($settings['menufile'])) {
                    //$Mcontent = file_get_contents($settings['menufile']);
                    
                    if(filesize($settings['menufile'])== 0){
                            echo '<script>alert("tyhi");</script>';
                        checkMenuFile();
                    }
                }
            }
        }
        
        if ($action == 'logout') {
            logout();
            //showLoginScreen();
        } else {
            if(checkIfHasIndexFile()){
                $processRequest = true;
            } else {
                if ($action == 'gettemplate') {
                    if(downloadTemplate($file) == ''){
                        echo '<html><head><script>document.location = "zimplit.php";</script></head<body></body></html>';
                    } else { 
                        echo 'Some bad, bad error occured! Unpacking failed.';
                    }
                } else if ($action == 'loadTemplPage'){
                    loadTemplPage($file);
                } else {
                    loadExternalTemplHtml($settings['templates_remote_path_index']);
                }
            }
        }        
    } else {
        if (($action == 'login') && $username && $password) {
            login($username, $password, $remember);
        } else if($action == 'generatenewpassword') {
            generateNewPassword();
        } else {
            showLoginScreen();
        }
    }
} else {
    if (($action == 'register') && $username && $password &&
            $password_again && $email && ($password == $password_again)) {
        register($username, $password, $email);
        $processRequest = true;
    } else {
        showRegistrationScreen();
    }
}

if ($processRequest) {
    if ($action == 'load') {
        echo getHTML1($file);
    } else if ($action == 'load1') {
        echo getHTML($file);    
    } else if ($action == '') {
        echo getHTML1($indexFile);
    } else if ($action == 'save') {
        echo saveHTML($file, $html);
    } else if ($action == 'saveE') {
        echo saveHTML1($file, $html);
    } else if ($action == 'new') {
        echo newFile($file);
    } else if ($action == 'delete') {
        echo deleteFile($file);
    } else if ($action == 'upload') {
        echo uploadFile($folder);
    } else if ($action == 'rename') {
        echo renameFile($oldName, $newName);
    } else if ($action == 'changeuserpass') {
        echo changeUsernamePasword($username, $password);
    } else if ($action == 'generatenewpassword') {
        echo generateNewPassword();
    } else if ($action == 'listfiles') {
        echo listFiles();
    } else if ($action == 'copyhtml') {
        echo copyHTML($file, $newName, $title);
    } else if ($action == 'checkFile') {
        echo checkFileExistance($file);
    } else if ($action == 'sendreply') {
        echo sendReply();
    } else if ($action == 'iswriteble') {
        echo checkFileIsWritable($file);
    } else if ($action == 'gettemplate') {
        echo downloadTemplate($file);
    } else if ($action== 'loadExternalHtml'){
        loadExternalTemplHtml($file);
    } else if ($action== 'loadTemplPage'){
        loadTemplPage($file);
    }
}

?>

Zimplit Multi User v.1.1 (26-Jan @ 20:28)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2.  
  3. /*
  4. Zimplit CMS version 1.1
  5. [1303 more lines...]

Plain Code

<?php

/*
Zimplit CMS version 1.1

Zimplit CMS is a Content Management System developed by
Welisa, Inc. Copyright (C) 2008 Welisa Inc zimplit@zimplit.org.

-- AVAILABLE LICENCE TYPES --

Zimplit CMS is available under three different licenses:

1) AGPL 3
You must keep a visible link to Zimplit Legal Notices, on every generated page. The required link to the Zimplit Legal Notices must be static, visible and readable, 
and the text in the Zimplit Legal Notices may not be altered.

2) Linkware / "Powered by Zimplit CMS" Link Requirement Licence
Same as AGPL, but instead of keeping a link to the Zimplit Legal Notices, you must place a static, visible and readable link to www.zimplit.org with the text or an
image stating "Powered by Zimplit CMS" on every generated page.

3) Commercial Licence
This license will allow you to remove the Zimplit Legal Notices/"Powered by Zimplit CMS" link at one specific domain. This license will also protect your modifications 
against the copyleft requirements in AGPL 3 and give access to registry in the user support forum.
Commercial licenses are available at www.zimplit.org/buy_commercial_license.html. 


You may change this LICENCE TYPES SECTION to relevant information, if you have purchased a commercial licence, 
but then the files may not be distributed to any other domain not covered by a commercial licence.

-- LICENCE TYPES SECTION END -

This copyright note must under no circumstances be removed from this file and any distribution of code covered by this licence.

For more information please visit http://www.zimplit.org

*/
/*
//desbest edit
header('Pragma: no-cache');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE); 
*/

/**
 * @param action: load - sends a html file content as response.
 * Use 'file' parameter to specify the HTML file.
 * 
 * Example: zimplit.php?action=load&file=page.html
 * 
 * 
 * @param action: save - saves a HTML source to a file.
 * Use 'file' parameter to specify the HTML file.
 * Use 'html' POST variable, to pass HTML source.
 * 
 * Example: zimplit.php?action=save&file=page.html;
 *             html="<html>....</html>"
 * 
 * 
 * @param action: new - creates a new empty html file.
 * Use 'file' parameter to specify the HTML file.
 * 
 * Example: zimplit.php?action=new&file=page.html
 * 
 * 
 * @param action: delete - deletes a file.
 * Use 'file' parameter to specify the file.
 * Note: if the file is not in the webroot directory, the folder must be specified
 * 
 * Example: zimplit.php?action=delete&file=page.html
 * Example: zimplit.php?action=delete&file=Z-files/page.html
 * 
 * 
 * @param action: upload - uploads a file to a server.
 * Use 'folder' parameter (optional) to specify the folder, where the uploaded file must be moved.
 * Use 'file' POST variable, to pass the file. input="file".
 * 
 * Example: zimplit.php?action=upload&folder=Z-pictures;
 *             file=[Binary stream].
 * 
 *
 * @param action: rename - renames a file.
 * Use 'oldname' parameter to specify the old name of the existing file.
 * Use 'newname' parameter to specify the new name of the file.
 * Note: if the file is not in the webroot directory, the folder must be specified
 * 
 * Example: zimplit.php?action=rename&oldname=oldpage.html&newname=newpage.html
 * 
 * 
 * @param action: changeuserpass - changes username & password data.
 * Use 'username' parameter to specify the new username of the existing file.
 * Use 'password' parameter to specify the new name of the file.
 * 
 * Example: zimplit.php?action=changeuserpass
 * Use 'username' POST variable, to pass the username.
 * Use 'password' POST variable, to pass the password.
 * 
 * 
 * @param action: generatenewpassword - generates a new password and sends it by email.
 * Use 'securitycode' parameter to pass a security code for email verification.
 * Example: zimplit.php?action=generatenewpassword
 * 
 * 
 * @param action: listfiles - returns a list of files in the webroot directory.
 * 
 * Example: zimplit.php?action=listfiles
 */



//GET data
$GDsupport = false; 
if (extension_loaded('gd') && function_exists('gd_info')) {
    $GDsupport = true; 
}
 
if (!isset($_GET['action'])){ $action = NULL; } else {$action = $_GET['action'];}
if (!isset($_GET['file'])){    $file = NULL;} else {$file = $_GET['file'];}
if (!isset($_GET['max_width'])){$max_width = NULL;} else {$max_width = $_GET['max_width'];}
if (!isset($_GET['max_height'])){$max_height = NULL;} else {$max_height = $_GET['max_height'];}
if (!isset($_GET['folder'])){$folder = NULL;} else {$folder = $_GET['folder'];}
if (!isset($_GET['oldname'])){$oldName = NULL;} else {$oldName = $_GET['oldname'];}
if (!isset($_GET['newname'])){$newName = NULL;} else {$newName = $_GET['newname'];}
if (!isset($_GET['title'])){$title = NULL;} else {$title = urldecode($_GET['title']);}
if (isset($_GET['securitycode'])){    $securityCode = $_GET['securitycode'];}
$indexFile = getIndexFile();


//POST data
if (!isset($_POST['html'])){$html = NULL;} else {$html = $_POST['html'];}
if (isset($_POST['username'])){$username = $_POST['username'];}
if (isset($_POST['password'])){$password = $_POST['password'];}
if (isset($_POST['password_again'])){$password_again = $_POST['password_again'];}
if (!isset($_POST['email'])){$email = NULL;} else {$email = $_POST['email'];} 

//Settings
$locationOfEditor = 'editor/';
$settings['filesFolder'] = 'Z-files';
$settings['picturesFolder'] = 'Z-pictures';
$settings['scriptsFolder'] = 'Z-scripts';
$settings['loginHtmlFile'] = 'login.html';
$settings['registerHtmlFile'] = 'register.html';
$settings['passfile'] = 'security.php';
$settings['menufile'] = 'Zmenu.js';
$settings['reminderContent'] = "You have requested a new password for Your Zimplit web editor. \nUsername: [username]\nPassword: [password]";
$settings['confirmationContent'] = "To confirm password change of Your Zimplit editor visit link \n";
//desbest edit 
//templates path
$settings['templates_remote_path'] = "../selectdesign/index.php";
$settings['templates_remote_dirpath'] = "../selectdesign/";

//Local variables
$processRequest = false;


//Register a new user and write the data to the file
function register($username, $password, $email) {
    global  $settings, $indexFile;

    $fhandle = fopen($settings['passfile'], 'w');
    $content = '<?php $u="'.$username.'"; $p="'.md5($password).'"; $e="'.$email.'"; ?>';
    //desbest edited here
    $myname = $username;
    require ("../config.php");
    $datenumber = date('Y-m-d');
    $version = "1.1";
    mysql_query("INSERT INTO sites 
    (username, sitename, email, datenumber,version) 
    VALUES('$myname', '$_POST[makethis]',
    '$email', '$datenumber', '$version' ) 
    ") or die(mysql_error()); 
    /**////////Email the user their account details
/**/

$makethis = $_POST[makethis];
$message = "

<html>
<body>
<table width=\"790\" height=\"122\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">

    <tr>
            <td background=\"http://hostingz.org/images/version2_01.png\"  width=\"790\" height=\"122\">
                          <div class=\"menuhere\">  </div> 
        
        </td>
        
    </tr>
    <tr><td>
    <div style=\"margin-left: 8px; margin-right:8px; font-family: Tahoma; font-size: 16px;\">
    <br>You've successfully created a Hostingz Site Builder website
    <br>Below are your account details
    <br>
    <br><b>Username:</b> $myname
    <br><b>Password:</b> $password
    <br><b>Email:</b> $password
    <br><b>Website Address:</b> http://$makethis.hostingz.org

    <br><br><a href=\"http://hostingz.org\">Launch Hostingz</a>
  <br>
    <br><br><a href=\"http://$makethis.hostingz.org\">Launch your website</a>
    </div>
    </td></tr></table>
</body>
</html>

";
/**/$subject  = "$makethis Hostingz Site Builder Account Details";
/**/$headers  = 'MIME-Version: 1.0' . "\r\n";
/**/$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
/**/
/**/// Additional headers
/**/$to = "$email";
/**/$headers .= "To:<$to>" . "\r\n";
/**/$headers .= 'From: Hostingz <donotreply@hostingz.org>' . "\r\n";
/**/// Mail it
/**///$task = mail($to, $subject, $message, $headers);
////////////////////////////////////////////////////////////////////////
/**////////Email the user their account details
 

    fwrite($fhandle, $content);
    fclose($fhandle);
    
    if (!is_dir($settings['filesFolder']))
        {
            mkdir($settings['filesFolder'], 0777);
            chmod($settings['filesFolder'],0777);
        }
    if (!is_dir($settings['picturesFolder'])) {
        mkdir($settings['picturesFolder'], 0777);
        chmod($settings['picturesFolder'],0777);
        };
    if (!is_dir($settings['scriptsFolder'])){
        mkdir($settings['scriptsFolder'], 0777);
        chmod($settings['scriptsFolder'],0777);
    }
    
    
    if(checkFileExistance($settings['menufile'])=='0'){
        checkMenuFile();
    } else {
        if (is_file($settings['menufile'])) {
            if (is_readable($settings['menufile'])) {
                $Mcontent = file_get_contents($settings['menufile']);
                if($Mcontent == ''){
                    checkMenuFile();
                }
            }
        }
    }
    
    
    
    //desbest edit remove
    //echo '<html><head><script>document.location = "zimplit.php?action=load&file='.$indexFile.'";</script></head<body></body></html>';
}

function checkMenuFile(){
    global  $settings, $indexFile;
    
        $theIndFile = 'hasNone';
        if(checkFileExistance('index.html')=='0'){
            if(checkFileExistance('index.htm')=='0'){
            
            } else{
                $theIndFile = 'index.htm';
            }
        } else {
            $theIndFile = 'index.html';
        }
        
        
        
        if ($theIndFile != 'hasNone'){
            $fhandle = fopen($settings['menufile'], 'w');
            
                $contentMenu = 'var ZMenuArray = []; 
var GlobZIndexfile = "'.$theIndFile.'"; 
ZMenuArray["'.$theIndFile.'"] = [];
ZMenuArray["'.$theIndFile.'"]["name"] = "First Page";
ZMenuArray["'.$theIndFile.'"]["parent"] = "";
ZMenuArray["'.$theIndFile.'"]["self"] = "'.$theIndFile.'";
ZMenuArray["'.$theIndFile.'"]["index"] = "0";';

            fwrite($fhandle, $contentMenu);
            fclose($fhandle);
        } else {
            
        }
}


//Show login screen
function showLoginScreen() {
    global $settings, $locationOfEditor;
    $content = '
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
        <head>
            <title></title>
            <meta name="author" content="" />
            <meta name="keywords" content="" />
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                
            <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
            <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
            <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

            <script type="text/javascript">
                function InitRegister(){
                    $("#ZMainOverlay").height($(window).height());
                    $("#ZloginScreen").draggable();
                    $("#zimplitPage").height($(window).height());
                    
                }
            </script>
            
        </head>
        <body onload="InitRegister();" style="overflow:hidden;">
            <div id="ZMainOverlay"></div>
            <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                <div id="ZloginScreen" class="ZpopupScreen" >
                    <div class="inner">
                        <div class="header">
                            <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                            Log in
                        </div>
                        <form method="post" action="zimplit.php?action=login">
                        <div class="loginarea">
                            <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                            <br/>
                            <span style="font-size:10px;line-height: 12px;">Username</span>
                            <input type="text" class="txtbox" name="username" value="Username" onfocus="if(this.value==\'Username\'){this.value=\'\';}"/>
                            <span style="font-size:10px;line-height: 12px;">Password</span>
                            <input type="password" class="txtbox" name="password" value="password" onfocus="if(this.value==\'password\'){this.value=\'\';}" />
                            <input type="submit" name="submit" class="submitBtn" value="Start!" /> 
                            <!-- input type="checkbox" name="remember" /> Remember Me! --><br/><br/>
                            <a href="zimplit.php?action=generatenewpassword" target="_top" style="color: #1e9d11;">Forgot password?</a>
                            
                        </div>
                        </form>
                    </div>
                </div>
            </div>
            
            <!-- the frame of page to be loaded into -->
            <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
        </body>
        </html>    
    ';
    echo $content;
}


//Show registration screen
function showRegistrationScreen() {
    global $settings, $locationOfEditor;
    
    $content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
                <head>
                    <title></title>
                    <meta name="author" content="" />
                    <meta name="keywords" content="" />
                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        
                    <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                    <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                    <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                    <script type="text/javascript">
                        function InitRegister(){
                            $("#ZMainOverlay").height($(window).height());
                            $("#ZloginScreen").draggable();
                            $("#zimplitPage").height($(window).height());
                            
                        }
                        
                        function CheckZForm(){
                            var theanswer = true;
                            var alerts = "Some fileds are not filled: \n";
                            if (($("#Zusername").val() == "")||($("#Zusername").val() == "Username")){
                                alerts += "Username not defined. \n";
                                theanswer = false;
                            }
                            if (($("#Zemail").val() == "")||($("#Zemail").val() == "Your email address")){
                                alerts += "Email not defined. \n";
                                theanswer = false;
                            }
                            if ($("#Zpassword").val() == ""){
                                alerts += "Password not defined. \n";
                                theanswer = false;
                            } else {
                                if (document.getElementById("Zpassword").value != document.getElementById("Zpasswordagain").value){
                                    alerts += "Password and retyped password do not match. \n";
                                    theanswer = false;
                                }
                            }
                            if (!theanswer){ alert(alerts);}
                            return theanswer;
                        }
                    </script>
                    
                </head>
                <body onload="InitRegister();">
                    <div id="ZMainOverlay"></div>
                    <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                        <div id="ZloginScreen" class="ZpopupScreen" style="height:350px;">
                            <div class="inner" style="height:346px;">
                                <div class="header">
                                    <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn " alt="" /></a>
                                    Create your account!
                                </div>
                                <form method="post" action="zimplit.php?action=register" onsubmit="return CheckZForm();">
                                <div class="loginarea">
                                    <!-- <a href="#"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a><br/>  -->
                                    <span style="font-size:10px;line-height: 12px;">Username</span>
                                    <input type="text" class="txtbox" id="Zusername" name="username" onclick="this.value=\'\';" value="Username"/>
                                    <br><br><span style="font-size:10px;line-height: 12px;">Password</span>
                                    <input type="password" class="txtbox" id="Zpassword" name="password" onclick="this.value=\'\';" value="" />
                                    
                                    <br><br><span style="font-size:10px;line-height: 12px;">Retype password</span>
                                    <input type="password" class="txtbox" id="Zpasswordagain" name="password_again" onclick="this.value=\'\';" value="" />
                                    <br><br><span style="font-size:10px;line-height: 12px;">Your email address</span>
                                    <input type="text" class="txtbox" id="Zemail" name="email" onclick="this.value=\'\';" value="Your email address"/>
                                    
                                    <br><br><span style="font-size:10px;line-height: 12px;">Your site identity and subdomain
                                    <input type="text" readonly class="txtbox" name="makethis" value="'.$_POST[makethis].'"/>
                                    <input type="submit" name="submit" class="submitBtn" value="Start!" />
                                    
                                </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- the frame of page to be loaded into -->
                    <iframe id="zimplitPage" width="100%" frameborder="0" height="700px" src="'.getIndexFile().'"></iframe>
                </body>
                </html>';
    
    //desbest edited here            
    /*
    if ($_POST[makethis] != ""){
    echo $content;
    } else {
    echo "
    <h1>Error!</h1>
    <h2>You might have typed it into the address bar.</h2>
    <h3>This is not allowed. This empty website will be deleted within a week.</h3>
    <h4><a href=\"#\" onClick=\"history.go(-1)\">Go Back</a></h4>
    "; 
  }
  */ echo $content;

}


//Checking username and password
function login($username, $password) {
    global $settings;
    $content = file_get_contents($settings['passfile']);
    if (strpos($content, '$u="'.$username.'";') && strpos($content, '$p="'.md5($password).'";')) {
        setcookie("Zuser", $username);
        setcookie("Zpass", md5($password));
        $PageToLoad = "?action=load&file=";
        if ($file == ""){
            $PageToLoad .= getIndexFile();
        } else {
            $PageToLoad .= $file;
        }
        header( 'Location: zimplit.php'. $PageToLoad ) ;
    } else {
        logout();
    }
}

//Closing session
function logout() {
    setcookie("Zuser", "", time()-60*60*24*30);
    setcookie("Zpass", "", time()-60*60*24*30);
    showLoginScreen();
}


//Check, if the visitor is authorized to access the CMS
function isAutorized() {
    global $settings;
    $rv = false;
    $content = file_get_contents($settings['passfile']);
    if (strpos($content, '$u="'.$_COOKIE['Zuser'].'";') && strpos($content, '$p="'.$_COOKIE['Zpass'].'";')) {
        $rv = true;
    }
    // $rv = isset($_SESSION['username']) && isset($_SESSION['password']) && (strlen($_SESSION['username']) > 0) && (strlen($_SESSION['password']) > 0);
    return $rv;
}

//Change username and password
function changeUsernamePasword($username, $password) {
    global $settings;

    $content = str_replace('$u="'.$_COOKIE['Zuser'].'"; $p="'.$_COOKIE['Zpass'].'";',
                             '$u="'.$username.'"; $p="'.md5($password).'";', $content);
    
    $fhandle = fopen($settings['passfile'], 'w');
    fwrite($fhandle, $content);
    fclose($fhandle);
    setcookie("Zuser", $username);
    setcookie("Zpass", md5($password));
    
    return $content;
}


//Generate and send a new password
function generateNewPassword() {
    global $settings, $securityCode, $locationOfEditor;
    $chars = 'abcdefghijklmnopqrstuvwxyz1234567890';
    
    $content = file_get_contents($settings['passfile']);
    preg_match('/\$e=\"([^\"]*)\"/', $content, $matches);
    $email = $matches[1];
    
    preg_match('/\$u=\"([^\"]*)\"/', $content, $matches);
    $username = $matches[1];
    
    $securityCode2 = md5(date("F d Y H:i:s.", filemtime($settings['passfile'])));
    
    if ($securityCode) {
        if ($securityCode == $securityCode2) {
            for ($i = 0; $i < 8; $i++) {
                $char = $chars[rand(0, strlen($chars)-1)];
                $newpass .= $char;
            }
            
            $fhandle = fopen($settings['passfile'], 'w');
            $content = preg_replace('/\$p=\"([^\"]*)\"/', '$p="'.md5($newpass).'"', $content);
            $r = fwrite($fhandle, $content);
            fclose($fhandle);
            
            $message = str_replace('[username]', $username, $settings['reminderContent']);
            $message = str_replace('[password]', $newpass, $message);
            mail($email, 'Your new Zimplit password', $message);
            
            /* the html displayed when passwd confirmation sent */
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                A new password was created and sent to Your e-mail.<br/><br/>Check your email.<br/> To continue loging in klick OK.<br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
            
            
            if ($r > 0) echo $content;
            else return false;
        } else {
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                Password confirmation failed!<br/><br/>This error can be because someone has already requested a new password change. <br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
        
        
            echo $content;
        }
    } else {
        $link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?action=generatenewpassword&securitycode='.$securityCode2.'';
        $message = $settings['confirmationContent'].$link;
        mail($email, 'A new password was requested from Zimplit editor', $message);
        
        /* the html displayed when passwd confirmation sent */
            $content = '
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>

                <script type="text/javascript">
                    function InitRegister(){
                        $("#ZMainOverlay").height($(window).height());
                        $("#ZloginScreen").draggable();
                        $("#zimplitPage").height($(window).height());
                        
                    }
                </script>
                
            </head>
            <body onload="InitRegister();" style="overflow:hidden;">
                <div id="ZMainOverlay"></div>
                <div style="width: 100%; top:0px; left:0px; display:block; position: absolute; z-index: 20;  text-align:center;margin:0; padding:100px 0 0 0;">
                    <div id="ZloginScreen" class="ZpopupScreen"  >
                        <div class="inner">
                            <div class="header">
                                <a href="'.getIndexFile().'"><img src="'.$locationOfEditor.'images/close.gif" class="closeBtn" alt="" /></a>
                                Change password
                            </div>
                            <form method="post" action="zimplit.php?action=login">
                            <div class="loginarea" style="font-size: 11px;">
                                <a href="http://www.zimplit.org"><img src="'.$locationOfEditor.'images/logo1.gif" id="theZlogo" alt="" /></a>
                                <br/>
                                A mail with confirmation for a new password was sent to Your mail. <br/><br/> Check your mailbox to confirm <br/>password change!<br/><br/><br/>
                                <a class="submitBtn" href="zimplit.php" style="display:block;text-align:center; line-height:30px;text-decoration: none; color: #333333;">OK!</a>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- the frame of page to be loaded into -->
                <iframe id="zimplitPage" width="100%" frameborder="0"  src="'.getIndexFile().'"></iframe>
            </body>
            </html>    
        ';
        echo $content;
    
    }
}

//Send reply mail 

function sendReply(){
    $message = '
User question from Zimplit editor

Name: '.$_POST['Name'].'
E-mail: '.$_POST['Email'].'

Location: '.$_POST['doclocation'].'

Problem:
'.utf8_decode($_POST['Text']).'
    ';
    mail('support@zimplit.org', 'User question from Zimplit editor', $message);
    return true;
}

// checck file existance
// returns 1 if file exists and 0 if does not
function checkFileExistance($file){
    if (is_file($file)) {
        if (is_readable($file)) {
            return '1';
        } else {
            return '0';
        }
    } else {
        return '0';
    }
}

function getIndexFile(){
    if(checkFileExistance('index.html')=='0'){
        return 'index.htm';
    } else {
        return 'index.html';
    }
}

// function to resize image via gd library

function createthumb($name,$filename,$new_w,$new_h){
    $system=explode('.',$name);
    if (preg_match('/jpg|jpeg|JPG|JPEG/',$system[1])){
        $src_img=imagecreatefromjpeg($name);
    }
    if (preg_match('/png|PNG/',$system[1])){
        $src_img=imagecreatefrompng($name);
    }
    $old_x=imageSX($src_img);
    $old_y=imageSY($src_img);
    if ($old_x > $old_y) {
        $thumb_w=$new_w;
        $thumb_h=$old_y*($new_h/$old_x);
    }
    if ($old_x < $old_y) {
        $thumb_w=$old_x*($new_w/$old_y);
        $thumb_h=$new_h;
    }
    if ($old_x == $old_y) {
        $thumb_w=$new_w;
        $thumb_h=$new_h;
    }
    $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);
    imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
    if (preg_match("/png/",$system[1]))
    {
        imagepng($dst_img,$filename); 
    } else {
        imagejpeg($dst_img,$filename); 
    }
    imagedestroy($dst_img); 
    imagedestroy($src_img); 
}


//Get the HTML content from the file.
//Returns FALSE on falure, html content on success
function getHTML($file) {
    if (is_file($file)) {
        if (is_readable($file)) {
            
            $content = file_get_contents($file);
            if ($content === FALSE) {
                return 'Error: Cannot read from the file '.$file.'.';
            }
            
            return $content;
        } else {
            return 'Error: The file '.$file.' is not readable.';
        }
    } else {
        return 'Error: The file '.$file.' does not exist.';
    }
}

//Get the HTML content from the file with editor .
//Returns FALSE on falure, html content on success
function getHTML1($file) {
    global  $locationOfEditor,$GDsupport;
    if (is_file($file)) {
        if (is_readable($file)) {
            
            $content = file_get_contents($file);
            if ($content === FALSE) {
                return 'Cannot read from the file '.$file.'.';
            } else {
                $LoadingFrameHtmlTop = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
                    <head>
                        <title></title>
                        <meta name="author" content="" />
                        <meta name="keywords" content="" />
                        <meta http-equiv="Pragma" content="no-cache">
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        
                        <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                        <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                        <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>
                        <script src="'.$locationOfEditor.'jquery.form.js" type="text/javascript"></script>
                        <script type="text/javascript">
                            GlobZIndexfile = "'.getIndexFile().'";
                            GDsupport = "'.$GDsupport.'";
                            ZimplitEditorLocation = "'.$locationOfEditor.'";
                        </script>
                        <script src="'.$locationOfEditor.'zimplit.js" type="text/javascript"></script>
                        <script src="Zmenu.js?t='.time().'" type="text/javascript"></script>
                        
                    <style>
                        body,html { margin:0; padding:0; }
                        iframe { border:0; margin:0; padding:0; width: 100%; }
                        #zimplitMenu {background: #AAAAAA; } 
                    </style>
                        
                    </head>
                    <body onload="ready();" id="ZimplitRootBody">
                        <!-- the frame of page to be loaded into -->
                        <iframe id="zimplitPage" name="zimplitPage" onload="ZDoTheReload();" width="100%" frameborder="0" height="700px" src="';
                                         
                $LoadingFrameHtmlBottom ='"></iframe>
                    </body>
                    </html>';
                $content = $LoadingFrameHtmlTop . $file . $LoadingFrameHtmlBottom;
            }
            
            
            
            return $content;
        } else {
            return 'The file '.$file.' is not readable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}


//Writes the HTML content to the file.
//Returns FALSE on falure, TRUE on success
function saveHTML($file, $html) {
    if (is_file($file)) {
        if (is_writable($file)) {
            if (!$handle = fopen($file, 'w')) {
                return 'Cannot open file '.$file.'.';
            }
            if (fwrite($handle, $html) === FALSE) {
                return 'Cannot write to file '.$file.'.';
            }
            fclose($handle);
        } else {
            return 'The file '.$file.' is not writable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}

function checkFileIsWritable($file){
    if (is_writable($file)) {
        return 0;
    } else {
        return 1;
    }
}



//Writes the HTML content to the file.
//Returns FALSE on falure, TRUE on success
function saveHTML1($file, $html) {
    $html1 = preg_replace('/\\\"/', '"', urldecode($html));
    $html1 = preg_replace('/%27/', "'", $html1);
    
    if (is_file($file)) {
        if (is_writable($file)) {
            if (!$handle = fopen($file, 'w')) {
                return 'Cannot open file '.$file.'.';
            }
            if (fwrite($handle, $html1) === FALSE) {
                return 'Cannot write to file '.$file.'.';
            }
            fclose($handle);
        } else {
            return 'The file '.$file.' is not writable.';
        }
    } else {
        return 'The file '.$file.' does not exist.';
    }
}



//Create new html file
function newFile($file) {
    if (file_exists($file)) {
        return 'The file '.$file.' already exists.';
    }
    if (touch($file)) {
        chmod($file,0666); 
        return true;
    } else {
        return 'The file '.$file.' cannot be created.';
    }
}


//Delete the file
function deleteFile($file, $folder='') {
    if (!file_exists($file)) {
        return 'The file '.$file.' does not exist.';
    }
    if (@unlink($file)) {
        return true;
    } else {
        return 'The file '.$file.' cannot be deleted.';
    }
}


//Upload a file
function uploadFile($folder='') {
    global $_FILES, $max_width, $max_height,$GDsupport;
    
    $file = $_FILES['file']['name'];
    $tmpfile = $_FILES['file']['tmp_name'];
    
    if ($folder) {
        if (!is_dir($folder)) {
            return 'No such directory: '.$folder;
        } else if (!is_writable($folder)) {
            return 'Cannot write to directory: '.$folder;
        }
    }
    
    $error = $_FILES["file"]["error"];
    if ($error == UPLOAD_ERR_INI_SIZE) {
           return 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
       } else if ($error == UPLOAD_ERR_FORM_SIZE) {
           return 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.';
       } else if ($error == UPLOAD_ERR_PARTIAL) {
           return 'The uploaded file was only partially uploaded.';
       } else if (!$error == UPLOAD_ERR_OK) {
           return 'Failed to upload the file.';
       }
    
    $ext = strchr($file, '.');

    //Check image size
    if (strpos('.jpg.jpeg.png.gif.', $ext.'.') !== false) {
        $info = getimagesize($tmpfile);
    
        if (($info[0] > $max_width) || ($info[1] > $max_height)) {
            return 'Image must be '.$max_width.'px X '.$max_height.'px or smaller. Please resize image and try again.';
        }
    }
    if ($folder) {
        $path = $folder.'/'.$file;
    } else {
        $path = $file;
    }
    if (!move_uploaded_file($tmpfile, $path)) {
        return 'Failed to move the file to the '.$folder.' directory.';
    } else {
        if($GDsupport){ // if gd library present do thumbnail
            if (strpos('.jpg.jpeg.png.JPG.JPEG.PNG.', $ext.'.') !== false) {
                $content = file_get_contents('Zsettings.js');
                preg_match('/ZmaxpicZoomW \= \"([^\"]+)\"/i', $content, $ZWmatch); 
                $ZoomThumbW =  $ZWmatch[1];
                preg_match('/ZmaxpicZoomH \= \"([^\"]+)\"/i', $content, $ZHmatch); 
                $ZoomThumbH =  $ZHmatch[1];
                $thenewname = preg_replace('/'.$ext.'/i', '_thumb'.$ext, $path);
                createthumb($path,$thenewname,$ZoomThumbW,$ZoomThumbH);
            } 
        }
        return true;
    }
}


//Rename a file
function renameFile($oldName, $newName) {
    if (file_exists($newName)) {
        return 'The file '.$newName.' already exists.';
    }
    if (!file_exists($oldName)) {
        return 'The file '.$oldName.' does not exist.';
    }
    if (rename($oldName, $newName)) {
        return true;
    } else {
        return 'Failed to rename a file '.$oldName.'.';
    }
}


//Copy a HTML file with a new title
function copyHtml($file, $newFile, $title) {
    $content = getHTML($file);
    if (strpos($content, 'Error: ') !== 0) {
        $content = preg_replace('/<title>[^<]+<\/title>/i', '<title>'.$title.'</title>', $content);
        $r = newFile($newFile);
        if (strpos($r, 'Error: ') !== 0) {
            return saveHTML($newFile, $content);
        } else return $r;
    } else return $content;
}

//Get a list of files in http directory
function listFiles() {
    if ($handle = opendir('.')) {
        while (false !== ($file = readdir($handle))) {
            if ($file != '.' && $file != '..' && is_file($file) && strpos($file, '.htm')) {
                $files[] = $file;
            }
        }
        closedir($handle);
        
        $fileAndTitle = array();
        
        foreach($files as $Thefile){
            $content = getHTML($Thefile);
            
            $matches = array();
            $pattern = '/<title>(.*)<\/title>/i';
            preg_match($pattern, $content, $matches);
            $pagetitle = $matches[1];
            $fileAndTitle[] = $Thefile.'|'.$pagetitle;
            
        }
    }
    return implode(';', $fileAndTitle);
}


//Download zip
function downloadZip($src) {
    global $settings;
    
    $file = basename($src);
    if(function_exists("curl_init")) {
        $ch = curl_init();
        $fp = fopen($file, 'w');
        //desbest edit
        curl_setopt($ch, CURLOPT_URL, $settings['templates_remote_dirpath'].'/'.$src);
        curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);        
        curl_setopt($ch, CURLOPT_FILE, $fp);
        $response = curl_exec($ch);
        curl_close($ch);
    } else {
    //desbest edit
        $data = file_get_contents($settings['templates_remote_dirpath'].'/'.$src);
        file_put_contents($file, $data);
    }
}

function unzip($file, $path="") {
    global $settings;
    $filepath = getcwd().'/'.$file;
    if (file_exists($filepath)) {
        
        if (file_exists($settings['scriptsFolder'].'/pclzip.lib.php')) {
            require_once($settings['scriptsFolder'].'/pclzip.lib.php');
            $archive = new PclZip($file);
            if ($archive->extract() == 0) {
                return "Error : ".$archive->errorInfo(true);
            }
        } else {
            $phpversion = phpversion();
            $modules = get_loaded_extensions();
            if ($phpversion[0] == 4) {
                if (function_exists("zip_open")) {
                    $zip = zip_open($filepath);
                    if ($zip) {
                        while ($zip_entry = zip_read($zip)) {
                            if (zip_entry_filesize($zip_entry) > 0) {
                                $complete_path = $path.str_replace('/','\\',dirname(zip_entry_name($zip_entry)));
                                $complete_name = $path.str_replace ('/','\\',zip_entry_name($zip_entry));
                                if(!file_exists($complete_path)) { 
                                    $tmp = '';
                                    foreach(explode('\\',$complete_path) as $k) {
                                        $tmp .= $k.'\\';
                                        if(!file_exists($tmp)) {
                                            mkdir($tmp, 0777);
                                        }
                                    }
                                }
                                if (zip_entry_open($zip, $zip_entry, "r")) {
                                    $fd = fopen($complete_name, 'w');
                                    fwrite($fd, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)));
                                    fclose($fd);
                                    zip_entry_close($zip_entry);
                                }
                            }
                        }
                        zip_close($zip);
                        return true;
                    } else {
                        return 'Error: The zip file '.$file.' is damaged.';
                    }
                }            
                
            } else {
                if (in_array("zip", $modules)) {
                    $zip = new ZipArchive();
                    if ($zip->open($file)===true)
                    {
                        $zip->extractTo(".");
                        $zip->close();
                        return true;
                    }
                    return 'Error: The zip file '.$file.' is damaged.';
                } else {
                    return 'Error: Zip is not supported.';
                }
            }
        }
        
    } else {
        return 'Error: The file '.$file.' does not exist.';
    }
}

function downloadTemplate($file) {
    downloadZip($file);
    return unzip(basename($file),'');
}

function checkIfHasIndexFile(){
    if(checkFileExistance('index.html')=='0'){
        if(checkFileExistance('index.htm')=='0'){
            return false;
        } else { 
            return true;
        }
    } else {
        return true;
    }
}


function loadExternalTemplHtml($fileaddr){
    global  $locationOfEditor;
    header('Content-Type: text/html');
    
        $LoadingFrameHtmlTop = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et" lang="et">
            <head>
                <title></title>
                <meta name="author" content="" />
                <meta name="keywords" content="" />
                <meta http-equiv="Pragma" content="no-cache">
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                
                <link rel="stylesheet" href="'.$locationOfEditor.'Zstyle.css" type="text/css" media="all" />
                <script src="'.$locationOfEditor.'jquery.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery-ui.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'jquery.form.js" type="text/javascript"></script>
                <script src="'.$locationOfEditor.'zimplitTemplate.js" type="text/javascript"></script>
            <style>
                body,html { margin:0; padding:0; }
                iframe { border:0; margin:0; padding:0; width: 100%; }
                #zimplitMenu {background: #AAAAAA; } 
            </style>
                
            </head>
            <body onload="ready();" id="ZimplitRootBody">
                <!-- the frame of page to be loaded into -->
                <div id="zimplitTempPage">';
                                 
        $LoadingFrameHtmlBottom ='</div>
            </body>
            </html>'; 
        $content = $LoadingFrameHtmlTop . file_get_contents($fileaddr) . $LoadingFrameHtmlBottom;
    echo $content;
}


/*unzip("template1.zip");*/

if (file_exists($settings['passfile'])) {
    if (isAutorized()) {
        
            if(checkFileExistance($settings['menufile'])=='0'){
            checkMenuFile();
        } else {
            if (is_file($settings['menufile'])) {
                if (is_readable($settings['menufile'])) {
                    //$Mcontent = file_get_contents($settings['menufile']);
                    
                    if(filesize($settings['menufile'])== 0){
                            echo '<script>alert("tyhi");</script>';
                        checkMenuFile();
                    }
                }
            }
        }
        
        if ($action == 'logout') {
            logout();
            //showLoginScreen();
        } else {
            if(checkIfHasIndexFile()){
                $processRequest = true;
            } else {
                if ($action == 'gettemplate') {
                    if(downloadTemplate($file) == ''){
                        echo '<html><head><script>document.location = "zimplit.php";</script></head<body></body></html>';
                    } else { 
                        echo 'Some bad, bad error occured! Unpacking failed.';
                    }
                } else {
          //desbest edit
                    loadExternalTemplHtml($settings['templates_remote_path']);
                }
            }
        }        
    } else {
        if (($action == 'login') && $username && $password) {
            login($username, $password);
        } else if($action == 'generatenewpassword') {
            generateNewPassword();
        } else {
            showLoginScreen();
        }
    }
} else {
    if (($action == 'register') && $username && $password &&
            $password_again && $email && ($password == $password_again)) {
        register($username, $password, $email);
        $processRequest = true;
    } else {
        showRegistrationScreen();
    }
}

if ($processRequest) {
    if ($action == 'load') {
        echo getHTML1($file);
    } else if ($action == 'load1') {
        echo getHTML($file);    
    } else if ($action == '') {
        echo getHTML1($indexFile);
    } else if ($action == 'save') {
        echo saveHTML($file, $html);
    } else if ($action == 'saveE') {
        echo saveHTML1($file, $html);
    } else if ($action == 'new') {
        echo newFile($file);
    } else if ($action == 'delete') {
        echo deleteFile($file);
    } else if ($action == 'upload') {
        echo uploadFile($folder);
    } else if ($action == 'rename') {
        echo renameFile($oldName, $newName);
    } else if ($action == 'changeuserpass') {
        echo changeUsernamePasword($username, $password);
    } else if ($action == 'generatenewpassword') {
        echo generateNewPassword();
    } else if ($action == 'listfiles') {
        echo listFiles();
    } else if ($action == 'copyhtml') {
        echo copyHTML($file, $newName, $title);
    } else if ($action == 'checkFile') {
        echo checkFileExistance($file);
    } else if ($action == 'sendreply') {
        echo sendReply();
    } else if ($action == 'iswriteble') {
        echo checkFileIsWritable($file);
    } else if ($action == 'gettemplate') {
        echo downloadTemplate($file);
    } else if ($action== 'loadExternalHtml'){
        echo loadExternalTemplHtml($file);
    }
}

?>

Untitled PHP (25-Jan @ 20:38)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. [33 more lines...]

Plain Code

<?php

ob_start();

$w = 110;
$h = 18;

// Plot Random Data
for($i=0;$i<30;$i++)$d .= ($i!=0)?",".rand(1,250):rand(1,250);

$im = imagecreate($w,$h);

imageantialias($im,true);

$bg = imagecolorallocate($im,255,255,255);
$li = imagecolorallocate($im,180,180,180);

$p = explode(",",$d);
$c = count($p);
$m = max($p);
$s = $w/($c-1);

for($i=0;$i<$c-1;$i++) {
    $x1 = $i*$s;
    $y1 = ($h-1)-(($p[$i]/$m)*($h-1));
    $x2 = ($i+1)*$s;
    $y2 = ($h-1)-(($p[($i+1)]/$m)*($h-1));
    imageline($im,$x1,$y1,$x2,$y2,$li);
}

header("Content-type:image/gif");
imagegif($im);
imagedestroy($im);

// Size of file...
$size = ob_get_length(); 

?>

Untitled PHP (23-Jan @ 16:34)

Syntax Highlighted Code

  1. <?php
  2.  echo "test";
  3. ?>

Plain Code

<?php
 echo "test";
?>

Untitled PHP (23-Jan @ 15:04)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'hello world';
  4.  
  5. ?>

Plain Code

<?php

echo 'hello world';

?>

Untitled PHP (15-Jan @ 20:25)

Syntax Highlighted Code

  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <title>Factorial</title>
  5. [40 more lines...]

Plain Code

<!doctype html>
<html>
<head>
    <title>Factorial</title>
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.3.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('form').bind('submit', function() {
            $(this).load(this.method + '?number=' + $('#number').val() + ' form > *');
            return false;
        });
    });
    </script>
</head>
<body>
<?php

$number    = !empty($_REQUEST['number']) ? $_REQUEST['number'] : 1;
$next      = $number + 1;
$factorial = factorial($number);

echo <<<EOT
<form method="factorial.php">
    <p>$number factorial is $factorial.</p>
    <input type="hidden" id="number" name="number" value="$next" />
    <input type="submit" value="get $next factorial" />
</form>
EOT;

function factorial($number)
{
    $factorial = 1;
    for ($i = $number; $i > 1; $i--) {
        $factorial *= $i;
    }
    
    return $factorial;
}

?>

</body>
</html>

Flickr API using Jquery JSON (14-Jan @ 21:27)

desbest.myopenid.com

Syntax Highlighted Code

  1. <!--
  2. With help from here.
  3. The api output uses the JSON format
  4.  
  5. [34 more lines...]

Plain Code

<!-- 
With help from here.
The api output uses the JSON format

_b is the big size (1024)
_t is the thumbnail
_s is the 75×75 pixels square
_m is the medium size
removing the _? extenstion means you choose the small size.
-->
<html>
<head>
  <script src="../jquery.js"></script>

  <script>
  $(document).ready(function(){
    $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=light&tagmode=any&format=json&jsoncallback=?",
        function(data){
          $.each(data.items, function(i,item){
           
         $("<img/>").attr({ 
          src: item.media.m,
          href: "http://google.com",
          alt: item.title,
        }).appendTo("#images") .wrap("<a href=\""+item.link+"\"></a>")  ;

            if ( i == 4 ) return false;
          });
        });
        
        
  });
  </script>
  <style>img{ height: 100px; float: left; border: 0px; padding: 8px;}</style>
</head>
<body>
  <div id="images"></div>
</body>
</html>

Untitled PHP (12-Jan @ 18:43)

Syntax Highlighted Code

  1. <?php
  2. /*This page is solely for declaring functions.*/
  3.  
  4.  function set_error($err)
  5. [571 more lines...]

Plain Code

<?php
/*This page is solely for declaring functions.*/

 function set_error($err)
{
global $err_load;
$error_load = (!$error_load) ? $err : $error_load;
 return true;
}

function mysql_ver() {
   $output = shell_exec('mysql -V');
   preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version);
   return $version[0];
} 

class me {
 function add_new_campaign($name,$desc,$cat,$upg,$hl,$bld,$url,$user,$connection)
 {
 $key = strtoupper(md5(time().sha1(time())));
if(mysql_query("INSERT INTO `ads` (
`aId` ,
`aIdentifyKey` ,
`aCatagory` ,
`aName` ,
`aDesc` ,
`aMembers` ,
`aOutside` ,
`aUpgraded` ,
`aClicksLeft` ,
`aPaused` ,
`aApproved` ,
`aHighlight` ,
`aBold` ,
`aCountries` ,
`aURL` ,
`aUser`
)
VALUES (
NULL , '$key', '$cat', '$name', '$desc', '0', '0', '$upg', '0', '1', '0', '$hl', '$bld', 'ALL', '$url', '$user'
);",$connection))
{
 return true;
} else {
 return false;
}

 }
 function show_catagories()
 {
 if($_SESSION['cat']) 
 {
 return $_SESSION['cat'];
 } else {
 $q = mysql_query("SELECT * FROM ad_catagories WHERE ac_draft=0 ORDER BY ac_order ASC;");
while($r=mysql_fetch_array($q))
{
$tc .= "<option value='{$r['ac_id']}'>{$r['ac_name']}</option>";
}
 $_SESSION['cat'] = $tc;
 return $tc;
 }
 }
 function new_post($topic,$name,$body,$poster,$forum,$refs,$connection)
{
mysql_query("INSERT INTO `posts` (
`pid` ,
`pposter` ,
`pname` ,
`pbody` ,
`ptime` ,
`ptopic`
)
VALUES (
NULL , '{$poster}', '{$name}', '{$body}', unix_timestamp(), '$topic'
);
", $connection) or die(mysql_error());
$in_id = mysql_insert_id($connection);
mysql_query("UPDATE users SET posts=posts+'1' WHERE username='$poster' LIMIT 1;");
mysql_query("UPDATE forums SET ftopics=ftopics+'1', fposts=fposts+'1', flastpost='<a href=\'".$full_url.$refs."#post-{$in_id}\'><abbr>{$name}</abbr></a> By ".addslashes($poster)."' WHERE fname='$forum' LIMIT 1;");
mysql_query("UPDATE topics SET tposts=tposts+'1' WHERE tid='$topic' LIMIT 1;");
return $in_id;
}
 function new_topic($topicname,$topicbody,$topiclock,$topicstick,$starter,$forum,$connection)
{
$myfile = explode('/', $_SERVER['SCRIPT_NAME']);
foreach($myfile as $mstr)
{
if(eregi('.', $mstr)) { $page_url = $mstr; }
}
$https = ($_SERVER['HTTPS'] == "on") ? "s" : "";
$folder = str_replace($page_url,"", $_SERVER['SCRIPT_NAME']);
$full_url = "http".$https."://".$_SERVER['HTTP_HOST'].$folder;

if(mysql_query("INSERT INTO `topics` (
`tid` ,
`tname` ,
`tlocked` ,
`tsticky` ,
`tposts` ,
`tviews` ,
`tstarter` ,
`lastposter` ,
`tforum`
)
VALUES (
NULL , '$topicname', '$topiclock', '$topicstick', '0', '0', '{$starter}', '{$starter}', '{$forum}'
);", $connection))
{
$mhd = mysql_insert_id($connection);
mysql_query("INSERT INTO `posts` (
`pid` ,
`pposter` ,
`pname` ,
`pbody` ,
`ptime` ,
`ptopic`
)
VALUES (
NULL , '{$starter}', '{$topicname}', '{$topicbody}', unix_timestamp(), '$mhd'
);
", $connection);
mysql_query("UPDATE users SET posts=posts+'1' WHERE username='$starter' LIMIT 1;");
mysql_query("UPDATE forums SET ftopics=ftopics+'1', fposts=fposts+'1', flastpost='<a href=\'".$full_url."post.php/{$mhd}.html\'><abbr>{$topicname}</abbr></a> By ".addslashes($starter)."' WHERE fname='$forum' LIMIT 1;");
return $mhd;
} else {
return false;
}
}
 function get_loc()
 {
 
$myfile = explode('/', $_SERVER['SCRIPT_NAME']);
foreach($myfile as $mstr)
{
if(eregi('.', $mstr)) { $page_url = $mstr; }
}
$https = ($_SERVER['HTTPS'] == "on") ? "s" : "";
$folder = str_replace($page_url,"", $_SERVER['SCRIPT_NAME']);
$full_url = "http".$https."://".$_SERVER['HTTP_HOST'].$folder;
return $full_url;
 }
 function redirect($url)
 {
 print "<meta http-equiv='refresh' content='0; url=$url'>";
 }
 function login_user($user,$pass)
 {
 $_SESSION['account_username'] = $user;
 $_SESSION['account_password'] = $pass;
 $_SESSION['account_token'] = session_id();
 mysql_query("UPDATE users SET lastaction=unix_timestamp(),lastip='{$_SERVER['REMOTE_ADDR']}' WHERE username='$user' AND password='$pass' LIMIT 1;");
 return $_SESSION;
 }
 function is_curl_installed()
 {
 if(function_exists("curl_init"))
 {
 return true;
 } else {
 return false;
 }
 }
 function login_return()
 {
 $url = "login.php?return=".urlencode($_SERVER['PHP_SELF']);
  print "<meta http-equiv='refresh' content='0; url=$url'>";
 }
 function signup_today($date)
 {
 if(date("d", $date) == date("d") && date("m", $date) == date("m") && date("y", $date) == date("y"))
{
 return true; 
} else { return false; }
} 
 function logout($vbsr)
 {
 unset($vbsr);
 session_destroy();
 return true;
 }
 function refresh_sess($vb='none')
 {
 if($vb == "none")
{ 
 $_SESSION['me'] = false;
 $_SESSION['setting'] = false;
 } else {
 $_SESSION[$vb] = false;
} 
 return true;
 }
 function send_email($email,$subj,$message)
 {
 $message = stripslashes(stripslashes($message));
 $subj = stripslashes(stripslashes($message));
 $uri = str_replace("www.", "", $_SERVER['HTTP_HOST']);
 $re_email = "webmaster@".($uri);
 if(mail($re_email, $subj, $message, "From: Gen2 <$re_email>\r\nX-Mailer: Gen2\r\nService-IP: ".$_SERVER['REMOTE_ADDR']."\r\n"))
 {
 return true;
} else {
 return false;
}
 }
 function start_request_control($cdn)
 {
 $_SESSION['last_request'][$cdn] = time();
 return true;
 }
 function request_exceed($cdn)
 {
 if($_SESSION['last_request'][$cdn] > time()-30)
{
 return true;
} else {
 return false;
}
 }
 function show_request_left($cdn)
 {
$now = time()-$_SESSION['last_request'][$cdn];
$now = 30-$now;
 return $now;
 }
 function new_user($uname,$pword,$email,$uline=false,$country,$connection)
{
$uline = ($uline) ? $uline : "";
if(mysql_query("INSERT INTO `users` (
`userid` ,
`username` ,
`password` ,
`email` ,
`paypal_email` ,
`alertpay_email` ,
`signupdate` ,
`signupip` ,
`upgraded` ,
`country` ,
`balance` ,
`withdrew` ,
`ads_clicked` ,
`upline` ,
`referrals` ,
`posts` ,
`lastaction` ,
`lastip` ,
`advertiser_balance` ,
`suspended`
)
VALUES (
NULL , '{$uname}', '{$pword}', '{$email}', '{$email}', '{$email}', unix_timestamp(), '{$_SERVER['REMOTE_ADDR']}', '0', '$country', '0.00', '0.00', '', '$uline', '0', '0', unix_timestamp(), '{$_SERVER['REMOTE_ADDR']}', '0.00', '0'
);",$connection))
{
if($uline)
{
 mysql_query("UPDATE users SET referrals=referrals+1 WHERE username='$uline' LIMIT 1;",$connection);
mysql_query("UPDATE users SET uplinetype='1' WHERE username='$uname' LIMIT 1;",$connection);
}
 return true;
} else {
 return false;
}
}
 function cleanup($str)
 {
 $str = str_replace("//", "/", $str);
 return $str;
 }
 function get_file_url()
 {
$myfile = explode('/', $_SERVER['SCRIPT_NAME']);
foreach($myfile as $mstr)
{
if(eregi('.', $mstr)) { $page_url = $mstr; }
}
 return $page_url;
 }
 function get_r_file_url()
 {
$myfile = explode('/', $_SERVER['PHP_SELF']);
foreach($myfile as $mstr)
{
if(eregi('.', $mstr)) { $page_url = $mstr; }
}
 return $page_url;
 }
 function finish_script_executions()
 {
 mysql_close();
 exit();
 }
 function filter($str)
 {
 $str = addslashes($str);
 $str = htmlentities($str);
 return $str;
 }
 function get_country_list($id,$class,$id_class,$onchng='javascript:void(0);')
 {
return <<<EOF

<select name='{$id}' class='{$class}' id='{$id_class}' onchange='$onchng'>
<option value='-'>---Select One---</option>
<option>Afghanistan</option>
<option>&Aring;land Islands</option>
<option>Albania</option>
<option>Algeria</option>
<option>American Samoa</option>

<option>Andorra</option>
<option>Angola</option>
<option>Anguilla</option>
<option>Antarctica</option>
<option>Antigua and Barbuda</option>
<option>Argentina</option>
<option>Armenia</option>
<option>Aruba</option>
<option>Australia</option>

<option>Austria</option>
<option>Azerbaijan</option>
<option>Bahamas</option>
<option>Bahrain</option>
<option>Bangladesh</option>
<option>Barbados</option>
<option>Belarus</option>
<option>Belgium</option>
<option>Belize</option>

<option>Benin</option>
<option>Bermuda</option>
<option>Bhutan</option>
<option>Bolivia</option>
<option>Bosnia and Herzegovina</option>
<option>Botswana</option>
<option>Bouvet Island</option>
<option>Brazil</option>
<option>British Indian Ocean territory</option>

<option>Brunei Darussalam</option>
<option>Bulgaria</option>
<option>Burkina Aso</option>
<option>Burundi</option>
<option>Cambodia</option>
<option>Cameroon</option>
<option>Canada</option>
<option>Cape Verde</option>
<option>Cayman Islands</option>

<option>Central African Republic</option>
<option>Chad</option>
<option>Chile</option>
<option>China</option>
<option>Christmas Island</option>
<option>Cocos (Keeling) Islands</option>
<option>Colombia</option>
<option>Comoros</option>
<option>Congo</option>

<option>Congo, Democratic Republic</option>
<option>Cook Islands</option>
<option>Costa Rica</option>
<option>C&ocirc;te d'Ivoire (Ivory Coast)</option>
<option>Croatia (Hrvatska)</option>
<option>Cuba</option>
<option>Cyprus</option>
<option>Czech Republic</option>

<option>Denmark</option>
<option>Djibouti</option>
<option>Dominica</option>
<option>Dominican Republic</option>
<option>East Timor</option>
<option>Ecuador</option>
<option>Egypt</option>
<option>El Salvador</option>
<option>Equatorial Guinea</option>

<option>Eritrea</option>
<option>Estonia</option>
<option>Ethiopia</option>
<option>Falkland Islands</option>
<option>Faroe Islands</option>
<option>Fiji</option>
<option>Finland</option>
<option>France</option>
<option>French Guiana</option>

<option>French Polynesia</option>
<option>French Southern Territories</option>
<option>Gabon</option>
<option>Gambia</option>
<option>Georgia</option>
<option>Germany</option>
<option>Ghana</option>
<option>Gibraltar</option>
<option>Greece</option>

<option>Greenland</option>
<option>Grenada</option>
<option>Guadeloupe</option>
<option>Guam</option>
<option>Guatemala</option>
<option>Guinea</option>
<option>Guinea-Bissau</option>
<option>Guyana</option>
<option>Haiti</option>

<option>Heard and McDonald Islands</option>
<option>Honduras</option>
<option>Hong Kong</option>
<option>Hungary</option>
<option>Iceland</option>
<option>India</option>
<option>Indonesia</option>
<option>Iran</option>
<option>Iraq</option>

<option>Ireland</option>
<option>Israel</option>
<option>Italy</option>
<option>Jamaica</option>
<option>Japan</option>
<option>Jordan</option>
<option>Kazakhstan</option>
<option>Kenya</option>
<option>Kiribati</option>

<option>Korea (north)</option>
<option>Korea (south)</option>
<option>Kuwait</option>
<option>Kyrgyzstan</option>
<option>Lao People's Democratic Republic</option>
<option>Latvia</option>
<option>Lebanon</option>
<option>Lesotho</option>
<option>Liberia</option>

<option>Libyan Arab Jamahiriya</option>
<option>Liechtenstein</option>
<option>Lithuania</option>
<option>Luxembourg</option>
<option>Macao</option>
<option>Macedonia (FYROM)</option>
<option>Madagascar</option>
<option>Malawi</option>
<option>Malaysia</option>

<option>Maldives</option>
<option>Mali</option>
<option>Malta</option>
<option>Marshall Islands</option>
<option>Martinique</option>
<option>Mauritania</option>
<option>Mauritius</option>
<option>Mayotte</option>
<option>Mexico</option>

<option>Micronesia</option>
<option>Moldova</option>
<option>Monaco</option>
<option>Mongolia</option>
<option>Montserrat</option>
<option>Morocco</option>
<option>Mozambique</option>
<option>Myanmar</option>
<option>Namibia</option>

<option>Nauru</option>
<option>Nepal</option>
<option>Netherlands</option>
<option>Netherlands Antilles</option>
<option>New Caledonia</option>
<option>New Zealand</option>
<option>Nicaragua</option>
<option>Niger</option>
<option>Nigeria</option>

<option>Niue</option>
<option>Norfolk Island</option>
<option>Northern Mariana Islands</option>
<option>Norway</option>
<option>Oman</option>
<option>Pakistan</option>
<option>Palau</option>
<option>Palestinian Territories</option>
<option>Panama</option>

<option>Papua New Guinea</option>
<option>Paraguay</option>
<option>Peru</option>
<option>Philippines</option>
<option>Pitcairn</option>
<option>Poland</option>
<option>Portugal</option>
<option>Puerto Rico</option>
<option>Qatar</option>

<option>R&eacute;union</option>
<option>Romania</option>
<option>Russian Federation</option>
<option>Rwanda</option>
<option>Saint Helena</option>
<option>Saint Kitts and Nevis</option>
<option>Saint Lucia</option>
<option>Saint Pierre and Miquelon</option>

<option>Saint Vincent and the Grenadines</option>
<option>Samoa</option>
<option>San Marino</option>
<option>Sao Tome and Principe</option>
<option>Saudi Arabia</option>
<option>Senegal</option>
<option>Serbia and Montenegro</option>
<option>Seychelles</option>
<option>Sierra Leone</option>

<option>Singapore</option>
<option>Slovakia</option>
<option>Slovenia</option>
<option>Solomon Islands</option>
<option>Somalia</option>
<option>South Africa</option>
<option>South Georgia and the South Sandwich Islands</option>
<option>Spain</option>
<option>Sri Lanka</option>

<option>Sudan</option>
<option>Suriname</option>
<option>Svalbard and Jan Mayen Islands</option>
<option>Swaziland</option>
<option>Sweden</option>
<option>Switzerland</option>
<option>Syria</option>
<option>Taiwan</option>
<option>Tajikistan</option>

<option>Tanzania</option>
<option>Thailand</option>
<option>Togo</option>
<option>Tokelau</option>
<option>Tonga</option>
<option>Trinidad and Tobago</option>
<option>Tunisia</option>
<option>Turkey</option>
<option>Turkmenistan</option>

<option>Turks and Caicos Islands</option>
<option>Tuvalu</option>
<option>Uganda</option>
<option>Ukraine</option>
<option>United Arab Emirates</option>
<option>United Kingdom</option>
<option selected>United States of America</option>
<option>Uruguay</option>
<option>Uzbekistan</option>

<option>Vanuatu</option>
<option>Vatican City</option>
<option>Venezuela</option>
<option>Vietnam</option>
<option>Virgin Islands (British)</option>
<option>Virgin Islands (US)</option>
<option>Wallis and Futuna Islands</option>
<option>Western Sahara</option>
<option>Yemen</option>

<option>Zaire</option>
<option>Zambia</option>
<option>Zimbabwe</option></select>
EOF;
 }
}
$do = new me();
?>

Untitled PHP (7-Jan @ 09:06)

Syntax Highlighted Code

  1.  
  2. <?php
  3. include "../connect.php";
  4. include "classes/job.php";
  5. [32 more lines...]

Plain Code


<?php
include "../connect.php";
include "classes/job.php";
echo "<span id=\"tab_job\">";
echo "<table style=\"border:none\">";
    echo "<tr>";
        echo "<td class=\"menu_orange\">Nom</td>";
        echo "<td class=\"menu_orange\">Serveur</td>";
        echo "<td class=\"menu_orange\">Fr&eacute;quence</td>";
        echo "<td class=\"menu_orange\">Horaire</td>";
        echo "<td class=\"menu_orange\">Type</td>";
        echo "<td class=\"menu_orange\">Nbr serveur(s)</td>";
    echo "</tr>";
    $sql="SELECT * FROM job where job_actif=\"o\"";
    $query=mysql_query($sql);
    while($row=mysql_fetch_array($query))
    {
    $job=new job();
    $job->job_id=$row["job_id"];
    $job->get_job();    
        echo "<tr>";
            echo "<td>$job->job_nom</td>";
            echo "<td>$job->job_serv_sauv</td>";
            echo "<td>".$job->get_frequence()."</td>";
            echo "<td>".$job->get_horaire()."</td>";
            echo "<td>".$job->get_type_sauvegarde()."</td>";
            echo "<td>".$job->nbr_serveur_job()."</td>";
            $js=" onchange='valid_job(\"$job->job_id\",1,this.value,false)'";
            echo "<td>".$job->select_statut($job->job_id,$js)."</td>";
            echo "</tr>";
    unset($job);
    }
echo "</table>";
echo "</span>";

?>

Request (2-Jan @ 17:09)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  class Request{
  4.        
  5. [105 more lines...]

Plain Code

<?php

 class Request{
        
        protected $aParams = array();
        protected $oUrl = null;
        protected $sRequest = null;
        
        
        protected $sDefaultModuleName = 'default';
        protected $sDefaultControllerName = 'index';
        protected $sDefaultActionName = 'index';
        
        public function __construct(){
            $this->oUrl = WebContent_Url::getInstance();
        }
        
        public function getRequest(){
            if(null === $this->sRequest)
                 $this->sRequest = $this->oUrl->Request();
        
            return $this->sRequest;
        }
        
        public function getParams($mKey = null, $mDefault = null){
            if($mKey === null){
                return $this->aParams;
            }
            
            return isset($this->aParams[$mKey]) ? $this->aParams[$mKey] : null;
        }
    
    public function setParams($mParams){
        $this->aParams = (array) $mParams;
    }
    
    
    public function getModuleName(){
        return isset($this->aParams['module']) ? $this->aParams['module'] : null;
    }
    public function setModuleName($sName){
        $this->aParams['module'] = $sName;
    }
    public function getDefaultModuleName(){return $this->sDefaultModuleName;}
    
    public function getControllerName(){
        return isset($this->aParams['controller']) ? $this->aParams['controller'] : null;
    }
    public function getDefaultControllerName(){return $this->sDefaultControllerName;}
    
    
    public function getActionName(){
        return isset($this->aParams['action']) ? $this->aParams['action'] : null;
    }
    
    public function setActionName($sName){
        $this->aParams['action'] = $sName;    
    }
    public function getDefaultActionName(){return $this->sDefaultActionName;}
    
    
    public function getPost($mKey = null, $mDefault = null){
        if($mKey === null){
            return $_POST;
        }
        
        return isset($_POST[$mKey]) ? $_POST[$mKey] : null;
    }
    
    public function getGet($mKey = null, $mDefault = null){
        if($mKey === null){
            return $_GET;
        }
        
        return isset($_GET[$mKey]) ? $_GET[$mKey] : $mDefault;
    }
    
     public function getServer($mKey = null, $mDefault = null){
        if($mKey === null){
            return $_SERVER;
        }

        return (isset($_SERVER[$mKey])) ? $_SERVER[$mKey] : $mDefault;
    }
    
    public function getHeader($sHeader){
    
        $sHttpHeader = 'HTTP_'.strtoupper($sHeader);
        if(isset($_SERVER[$sHttpHeader])){
            return $_SERVER[$sHttpHeader];
        }
        
        $aHeaders = apache_request_headers();
        
        if(!empty($aHeaders[$sHeader])){
            return $aHeaders[$sHeader];
        }
        
        return false;
    }
    
    public function isXmlHttpRequest(){
        return ($this->getHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');
    }
    
    public function isPost(){
        return('POST' == $this->getServer('REQUEST_METHOD')) ? true : false;
    }
}
?>

Template Monster index.php bug fixed (15-Dec @ 10:26)

desbest.myopenid.com

Syntax Highlighted Code

  1. <?php
  2. include 'header.php';
  3. ?>
  4.  
  5. [97 more lines...]

Plain Code

<?php
include 'header.php';
?>

<br />
<h2><a href="#"><?php echo $category_title; ?> Templates</a></h2>
<br />

<?php

$cat_url = 'http://www.templatemonster.com/webapi/templates_screenshots4.php?linebreak=;&delim=,&list_delim=|&sort_by=price&order=asc&full_path=true&category='.$cat.'&'.$your_security_code.'';
  $cats = URLopen($cat_url);
  $lists = explode(";", $cats);

  // control page count
  $count = count($lists);
  $per_page = 36;
  $page_count = ceil($count/$per_page);

  if(!isset($_GET['pg'])) {
      $page = 1;
      $start = 0;
  } else {
      $page = $_GET['pg'];
      $start = ($page-1)*$per_page;
  }

  $stop = $start + ($per_page-1);


  echo '<div id="tb">';

// loop the current page records only!!
for($i=$start; $i<($stop+1); $i++) {
    if(!isset($lists[$i])) { continue; }
    $spl = explode(",", $lists[$i]);

    $id = $spl[0]; // temp ID
    if(!isset($id) || $id == "") { continue; }
    $price = $spl[1]; // price
    $exclusive = $spl[2]; // exclusive price
    $date = $spl[3]; // exclusive price
    $downloads = $spl[4];// downloads
    $is_hosting = $spl[5]; // is hosting ?
    $is_flash = $spl[6]; // is flash ?
    $is_adult = $spl[7]; // is adult ?
    $is_unique_log = $spl[8]; // is unique logo temp?
    $is_nunique_log = $spl[9]; // is non unique logo temp?
    $is_unique_corp = $spl[10]; // is unique corporate identity?
    $is_nunique_corp = $spl[11]; // is non unique corporate identity?
    $author_id = $spl[12]; // Authours ID
    $is_full = $spl[13]; // is full site ?
    $all_pages = $spl[14]; // is full site ?
    $screens = $spl[15]; // list of screenshots { list }

    $images = str_replace("{", "", $screens);
    $images = str_replace("}", "", $images);
    $images = str_replace(",", "", $images);
    $images = explode("|", $images);

    $t=1;
    foreach ($images as $im) {
        if (ereg("\-m\.", $im)) {
            $thumb = $im;
        }
        if (ereg("\-b\.", $im)) {
            $prev = $im;
        }
        
        $t++;
    }

if(isset($thumb)) { 
?>
<div class="float">
<a href="#" onClick="preview('<?php echo $aff; ?>','<?php echo $id; ?>');void(true)"><img width=147 height=156 src="<?php echo $thumb; ?>" border="0" alt="image <?php echo $id; ?>" onMouseover="showPreview('<?php echo $prev; ?>')" onMouseout="hidePreview()"/></a><br />
<p><b>$<?php echo $price; ?></b>   <a href="#" onClick="preview('<?php echo $aff; ?>','<?php echo $id; ?>');void(true)">More Details</a></p>
</div>

<?php
  }
}
?>
<div style="clear:both"></div>
</div>
<br />
<?php
echo "<br /><b>Page: </b>";
for($r=1; $r<$page_count+1; $r++) {
  if($r == $page) {
    echo "$page ·";
  } else {
    echo '<a href='.$path_to_dir.'/'.$thispage2.''.$cat.'/'.$category.'/'.$r.'.htm>'.$r.'</a>·';
  }
}

if($page_count > $page) {
  echo "<a href=$path_to_dir/$thispage2".$cat."/".$category."/".($page+1).".htm>Next</a>";
}

include 'footer.php';
?>

Untitled PHP (4-Dec @ 21:19)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpinfo();
?>

Untitled PHP (30-Nov @ 07:27)

Syntax Highlighted Code

  1. <?php
  2. echo "yasser";
  3. ?>

Plain Code

<?php
echo "yasser";
?>

Untitled PHP (27-Nov @ 03:30)

Syntax Highlighted Code

  1. <?php
  2. echo 'hello';
  3. ?>

Plain Code

<?php
echo 'hello';
?>

Untitled PHP (20-Nov @ 04:17)

Syntax Highlighted Code

  1. <?='Hello World.'?>

Plain Code

<?='Hello World.'?>

Untitled PHP (14-Nov @ 09:25)

Syntax Highlighted Code

  1. echo '<a href="'. $item['link'] .'" title="'. $item['title'] .'">'. $item['title'] .'</a><br />\n';
  2.  
  3.  
  4.  

Plain Code

echo '<a href="'. $item['link'] .'" title="'. $item['title'] .'">'. $item['title'] .'</a><br />\n';


Untitled PHP (14-Nov @ 08:52)

Syntax Highlighted Code

  1. $url = 'http://www.abc.net.au/news/indexes/business/rss.xml';
  2. $rss = fetch_rss($url);
  3. foreach ($rss->items as $item ) {
  4.  
  5. [6 more lines...]

Plain Code

$url = 'http://www.abc.net.au/news/indexes/business/rss.xml';
$rss = fetch_rss($url);
foreach ($rss->items as $item ) {

    if($item['category'] == 'industry'){
        
        echo "<a href=\""+$item['link']+"\" title=\""+$item['title']+"\">"+$item['title']+"</a><br />\n";
      
    }
        
}

Untitled PHP (14-Nov @ 08:50)

Syntax Highlighted Code

  1. $url = 'http://www.abc.net.au/news/indexes/business/rss.xml';
  2. $rss = fetch_rss($url);
  3. foreach ($rss->items as $item ) {
  4.  
  5. [6 more lines...]

Plain Code

$url = 'http://www.abc.net.au/news/indexes/business/rss.xml';
$rss = fetch_rss($url);
foreach ($rss->items as $item ) {

    if($item['category'] == 'industry'){
        
        echo "<a href="$item['link']" title="$item['title']">$item['title']</a><br />\n";
      
    }
        
}

Untitled PHP (14-Nov @ 08:49)

Syntax Highlighted Code

  1. $url = 'http://www.upcoming.org/syndicate/my_events/349';
  2. $rss = fetch_rss($url);
  3. foreach ($rss->items as $item ) {
  4.  
  5. [6 more lines...]

Plain Code

$url = 'http://www.upcoming.org/syndicate/my_events/349';
$rss = fetch_rss($url);
foreach ($rss->items as $item ) {

    if($item['category'] == 'industry'){
        
        echo "<a href="$item['link']" title="$item['title']">$item['title']</a><br />\n";
      
    }
        
}

Untitled PHP (1-Nov @ 03:49)

Syntax Highlighted Code

  1. <?php
  2. class model extends Model{
  3.  
  4.     function model(){
  5. [4 more lines...]

Plain Code

<?php
class model extends Model{

    function model(){
        parent::Model();
    }

}
?>

Untitled PHP (30-Oct @ 21:26)

Syntax Highlighted Code

  1. <?php
  2.  
  3. if(machten('17', $sessie) == TRUE){
  4.     if($_GET['site'] == 'gewicht'){
  5. [76 more lines...]

Plain Code

<?php

if(machten('17', $sessie) == TRUE){
    if($_GET['site'] == 'gewicht'){
        $lidquery = mysql_query('SELECT * FROM leden WHERE sessie="' . $sessie . '"');
        $lidinfo = mysql_fetch_array($lidquery);

        if(isset($_GET['vak']) == FALSE){
            echo '
            <b>U heeft nog niet het vak geselecteerd waarin u de gewichten wilt aanpassen.</b><br />
            <b>U heeft nog niet de klas geselecteerd waarin u de gewichten wilt aanpassen.</b>
            <form method="GET" action="./index.php?site=gewicht">
                <select name="vak">
            ';
            $vakquery = mysql_query('SELECT * FROM vakken WHERE lid_id=' . $lidinfo['id']);
            while($vakinfos = mysql_fetch_array($vakquery)){
                echo '<option ';
                echo 'value="' . $vakinfos['vakid'] . '" ';
                echo '>';
                echo $vakinfos['vak'];
                echo '</option>';
            }
            
            echo '
                </select>
                <input type="submit" value="OK" />
            </form>
            
            ';

        if(isset($_GET['vak']) == TRUE){
            if(isset($_GET['klas']) == FALSE){
            if(is_numeric($_GET['vak']) == TRUE){ $vakid = $_GET['vak']; }
            elseif(is_numeric($_GET['vak']) == FALSE){ $vakid = 0; }
            $vakquery = mysql_query('SELECT * FROM vakken WHERE vakid=' . $vakid);
            $vakinfo = mysql_fetch_array($vakquery);
            echo '
            <b>U heeft ' . $vakinfo['vak'] . ' als vak geselecteerd.</b><br />
            <b>U heeft nog niet de klas geselecteerd waarin u de gewichten wilt aanpassen.</b>
            <form method="GET" action="./index.php?site=gewicht">
                <select name="klas">
            ';
            $klasquery = mysql_query('SELECT * FROM klas');
            while($klasinfo = mysql_fetch_array($klasquery)){
                echo '<option ';
                echo 'value="' . $klasinfo['id'] . '" ';
                echo '>';
                echo $klasinfo['klas'];
                echo '</option>';
            }
            
            echo '
                </select>
                <input type="submit" value="OK" />
            </form>
            
            ';
            }
            if(isset($_GET['klas']) == TRUE){

                if(is_numeric($_GET['vak']) == TRUE){ $vakid = $_GET['vak']; }
                elseif(is_numeric($_GET['vak']) == FALSE){ $vakid = 0; }
                $vakquery = mysql_query('SELECT * FROM vakken WHERE vakid=' . $vakid);
                $vakinfo = mysql_fetch_array($vakquery);
                if(is_numeric($_GET['klas']) == TRUE){ $klasid = $_GET['klas']; }
                elseif(is_numeric($_GET['klas']) == FALSE){ $klasid = 0; }
                $klasquery = mysql_query('SELECT * FROM klassen WHERE id=' . $klasid);
                $klasinfo = mysql_fetch_array($klasquery);
                echo '
                <b>U heeft ' . $vakinfo['vak'] . ' als vak geselecteerd.</b><br />
                <b>U heeft ' .  $klasinfo['klas'] . 'als klas geselecteerd waarin u de gewichten wilt aanpassen.</b>
                ';
            }
        }
    }
}
elseif(machten('17', $sessie) == FALSE){
    
}

?>

Untitled PHP (27-Oct @ 13:10)

Syntax Highlighted Code

  1. <?php phpinfo(); ?>

Plain Code

<?php phpinfo(); ?>

Untitled PHP (10-Oct @ 20:52)

Syntax Highlighted Code

  1. /* Toestemming opvragen */
  2. $oACL->isAllowed('moderator', 'forum', 'post'); // true
  3. $oACL->isAllowed('guest', 'poll', 'delete'); // true

Plain Code

/* Toestemming opvragen */
$oACL->isAllowed('moderator', 'forum', 'post'); // true
$oACL->isAllowed('guest', 'poll', 'delete'); // true

Untitled PHP (10-Oct @ 20:27)

Syntax Highlighted Code

  1. /* Rechten verlenen */
  2. // Iedereen behalve gebanden mogen alles bekijken
  3. $oACL->allow('admin', 'blog', 'view');
  4. $oACL->allow('admin', 'poll', 'view');
  5. [31 more lines...]

Plain Code

/* Rechten verlenen */
// Iedereen behalve gebanden mogen alles bekijken
$oACL->allow('admin', 'blog', 'view');
$oACL->allow('admin', 'poll', 'view');
$oACL->allow('admin', 'forum', 'view');
$oACL->allow('moderator', 'blog', 'view');
$oACL->allow('moderator', 'poll', 'view');
$oACL->allow('moderator', 'forum', 'view');
$oACL->allow('member', 'blog', 'view');
$oACL->allow('member', 'poll', 'view');
$oACL->allow('member', 'forum', 'view');
$oACL->allow('guest', 'blog', 'view');
$oACL->allow('guest', 'poll', 'view');
$oACL->allow('guest', 'forum', 'view');


// Posten op het forum mag alleen door leden en hoger
$oACL->allow('admin', 'forum', 'post');
$oACL->allow('moderator', 'forum', 'post');
$oACL->allow('forum', 'forum', 'post');


// Alleen admins en moderators mogen op het forum verwijderen
$oACL->allow('admin', 'forum', 'delete');
$oACL->allow('moderator', 'forum', 'delete');


// Alleen admins mogen een poll verwijderen
$oACL->allow('admin', 'poll', 'delete');

// Alleen leden mogen stemmen bij polls
$oACL->allow('member', 'poll', 'vote');

// Alleen admins mogen een blog aanmaken of verwijderen
$oACL->allow('admin', 'blog', 'post');
$oACL->allow('admin', 'blog', 'delete');

Untitled PHP (10-Oct @ 17:26)

Syntax Highlighted Code

  1. <?php
  2. /* Rollen, objecten en rechten definiëren */
  3. $oACL = new AccessControlList(
  4.     array('admin', 'moderator', 'member', 'guest', 'banned'), // Rollen
  5. [2 more lines...]

Plain Code

<?php
/* Rollen, objecten en rechten definiëren */
$oACL = new AccessControlList(
    array('admin', 'moderator', 'member', 'guest', 'banned'), // Rollen
    array('blog', 'poll', 'forum'), // Objecten
    array('view', 'post', 'vote', 'delete') // Rechten
);

Untitled PHP (10-Oct @ 16:15)

Syntax Highlighted Code

  1. <?php
  2. class AccessControlList {
  3.     protected $aRoles;
  4.     protected $aResources;
  5. [41 more lines...]

Plain Code

<?php
class AccessControlList {
    protected $aRoles;
    protected $aResources;
    protected $aPrivileges;
    protected $aRules;
    protected $bDefault;

    public function __construct($aRoles, $aResources, $aPrivileges, $bDefault = false) {
        /* Rollen, objecten en rechten definiëren */
        $this->aRoles = $aRoles;
        $this->aResources = $aResources;
        $this->aPrivileges = $aPrivileges;
        /* Standaard instelling voor onbekende regels */
        $this->bDefault = $bDefault;
    }

    /* Functie om de opgegeven rollen en objecten om te zettin in de rol index */
    protected function getRule($sRole, $sResource, $sPrivilege) {
        return isset($this->aRules[$sRole][$sResource][$sPrivilege])
            ? $this->aRules[$sRole][$sResource][$sPrivilege]
            : null;
    }

    /* Functie om rechten te verlenen aan rollen op objecten */
    public function allow($sRole, $sResource, $sPrivilege) {
        $this->aRules[$sRole][$sResource][$sPrivilege] = true;
    }

    /* Functie om rechten expliciet te ontnemen */
    public function deny($sRole, $sResource, $sPrivilege) {
        $this->aRules[$sRole][$sResource][$sPrivilege] = false;
    }

    /* Functie om te controleren of een recht is verleend */
    public function isAllowed($sRole, $sResource, $sPrivilege) {
        $bRule = $this->getRule($sRole, $sResource, $sPrivilege);
        return $bRule === null ? $this->bDefault : $bRule === true;
    }

    /* Functie om te controleren of een recht is ontnomen */
    public function isDenied($sRole, $sResource, $sPrivilege) {
        $bRule = $this->getRule($sRole, $sResource, $sPrivilege);
        return $bRule === null ? $this->bDefault : $bRule === false;
    }
}

Untitled PHP (9-Oct @ 17:13)

Syntax Highlighted Code

  1. $fred = "was here";
  2. echo "fred $fred";

Plain Code

$fred = "was here";
echo "fred $fred";

Untitled PHP (9-Oct @ 17:10)

Syntax Highlighted Code

  1. echo 'hello';
  2.  
  3.  

Plain Code

echo 'hello';

Untitled PHP (4-Oct @ 19:53)

Syntax Highlighted Code

  1. erewrwerewr

Plain Code

erewrwerewr

Untitled PHP (2-Oct @ 20:15)

Syntax Highlighted Code

  1. <?php
  2. class BitwiseRuleManager {
  3.     protected $aRoles;
  4.     protected $aResources;
  5. [103 more lines...]

Plain Code

<?php
class BitwiseRuleManager {
    protected $aRoles;
    protected $aResources;
    protected $aPrivileges;
    
    public function __construct($aRoles, $aResources, $aPrivileges, $bMode = true) {
        /* Rollen, objecten en rechten definiëren */
        $this->aRoles = self::makeBinaryValues($aRoles);
        // Bij de objecten moet begonnen worden met tellen waar bij de rollen gestopt was, vandaar dat hier een offset wordt meegegeven. Dit is belangrijk omdat er straks rollen en objecten tegelijk in één regel gebruikt worden: de binaire waarden moeten uniek blijven.
        $this->aResources = self::makeBinaryValues($aResources, count($this->aRoles));
        $this->aPrivileges = self::makeBinaryValues($aPrivileges);
    }
    
    /* Functie om de keys om te zetten in een binaire waarden */
    static public function makeBinaryValues($aInput, $iOffset = 0) {
        foreach ($aInput as $iKey => $sValue) {
            $aOutput[$sValue] = pow(2, $iOffset + $iKey);
        }
        return $aOutput;
    }
    
    /* Functie om de opgegeven rollen en objecten om te zettin in de rol index */
    protected function getRuleKey($aRoles = array(), $aResources = array()) {
        $iRuleKey = 0;
        
        foreach ($aRoles as $sRole) {
            $iRuleKey |= $this->aRoles[$sRole];
        }
        foreach ($aResources as $sResource) {
            $iRuleKey |= $this->aResources[$sResource];
        }
        
        return $iRuleKey;
    }
    
    /* Functie om de opgegeven rechten om te zettin in een bruikbare combinatie */
    protected function getPrivilege($aPrivileges = array()) {
        $iPrivilege = 0;
        
        foreach ($aPrivileges as $sPrivilege) {
            $iPrivilege |= $this->aPrivileges[$sPrivilege];
        }
        
        return $iPrivilege;
    }
    
    /* Functie om rechten te verlenen aan rollen op objecten */
    public function allow($aRoles = array(), $aResources = array(), $aPrivileges = array()) {
        $iRuleKey = $this->getRuleKey($aRoles, $aResources);
        $iPrivilege = $this->getPrivilege($aPrivileges);

        // Regel toevoegen als die nog niet bestaat en anders bijwerken
        if (isset($this->aRules[$iRuleKey])) {
            $this->aRules[$iRuleKey] |= $iPrivilege;
        } else {
            $this->aRules[$iRuleKey] = $iPrivilege;
        }
    }
    
    /* Functie om te controleren of één of meer rollen bepaalde rechten hebben op één of meer objecten */
    public function isAllowed($aRoles = array(), $aResources = array(), $aPrivileges = array()) {
        $iRuleKey = $this->getRuleKey($aRoles, $aResources);
        $iPrivilege = $this->getPrivilege($aPrivileges);
        
        $iFoundRuleKey = $iFoundPrivilege = 0;
        foreach ($this->aRules as $iCurrentRuleKey => $iCurrentPrivilege) {
            if (($iUsableRule = $iCurrentRuleKey & $iRuleKey) > 0 ) {
                // Alleen bruikbare regels opslaan
                $iFoundRuleKey |= $iUsableRule;
                $iFoundPrivilege |= $iCurrentRuleKey & $iPrivilege;
            }        
        }
        
        // Controleren of de gevonden rechten voldoende zijn en voor alle opgegeven rollen en objecten gelden
        return $iFoundRuleKey === $iRuleKey && $iFoundPrivilege === $iPrivilege;
    }
}

/* Rollen, objecten en rechten definiëren */
$oBRM = new BitwiseRuleManager(
    array('admin', 'moderator', 'member', 'guest', 'banned'), // Rollen
    array('blog', 'poll', 'forum'), // Objecten
    array('view', 'post', 'vote', 'delete') // Rechten
);

/* Rechten verlenen */
// Iedereen behalve gebanden mogen alles bekijken
$oBRM->allow(array('admin', 'moderator' , 'member', 'guest'), array('blog', 'poll', 'forum'), array('view'));
// Posten op het forum mag alleen door leden en hoger
$oBRM->allow(array('admin', 'moderator' , 'member'), array('forum'), array('post'));
// Alleen admins en moderators mogen op het forum verwijderen
$oBRM->allow(array('admin', 'moderator'), array('forum'), array('delete'));
// Alleen admins mogen een poll verwijderen
$oBRM->allow(array('admin'), array('poll'), array('delete'));
// Alleen leden mogen stemmen bij polls
$oBRM->allow(array('member'), array('poll'), array('vote'));
// Alleen admins mogen een blog aanmaken of verwijderen
$oBRM->allow(array('admin'), array('blog'), array('post', 'delete'));
echo '<pre>';

$oBRM->isAllowed(array('moderator'), array('forum'), array('post', 'delete')); // true

/* Toestemming vragen */

if ($oBRM->isAllowed(array('member', 'guest'), array('poll'), array('vote'))) {
    echo '1';
}

Show Array Debugger (2-Oct @ 11:20)

foamcow

Syntax Highlighted Code

  1. function debug_show_array($a,$n){
  2.     echo("<p>Array = ".$n."</p>");
  3.     echo("<ul>");
  4.     foreach($a as $k=>$v){
  5. [7 more lines...]

Plain Code

function debug_show_array($a,$n){
    echo("<p>Array = ".$n."</p>");
    echo("<ul>");
    foreach($a as $k=>$v){
        if(is_array($v)){
            debug_show_array($v,$k);
        } else {
            echo("<li><strong>$k</strong> : $v</li>");
        }
    }
    echo("</ul>");
}

Untitled PHP (29-Sep @ 10:32)

Syntax Highlighted Code

  1. foreach ($days as $key => $value)
  2.         {
  3.             $days2[$value] = $value;
  4.         }
  5. [21 more lines...]

Plain Code

foreach ($days as $key => $value)
        {
            $days2[$value] = $value;
        }

        $day->addMultiOption(0, "Day:");
        $day->addMultiOptions($days2);

        $month = $form->getElement("month");

        $months = $locale->getTranslationList("months", $langs[1]);

        $month->addMultiOption(0, "Month:");
        $month->addMultiOptions($months["format"]["wide"]);

        $year = $form->getElement("year");

        $date = new Zend_Date();

        $years = array_reverse(range(1900, $date->get(Zend_Date::YEAR)));
        $years2 = array();

        foreach ($years as $key => $value)
        {
            $years2[$value] = $value;
        }

Untitled PHP (27-Sep @ 19:36)

Syntax Highlighted Code

  1. echo "sss";

Plain Code

echo "sss";

Untitled PHP (27-Sep @ 10:21)

Syntax Highlighted Code

  1. function ($id) {
  2. $id = 1;
  3. }

Plain Code

function ($id) {
$id = 1;
}

Untitled PHP (26-Sep @ 18:29)

Syntax Highlighted Code

  1. <ul id="forcaregivers">
  2.   <li><a href="#">Menu Item 1</a></li>
  3.   <li><a href="#">Menu Item 2</a></li>
  4.   <li><a href="#">Menu Item 3</a></li>      
  5. [4 more lines...]

Plain Code

<ul id="forcaregivers">
  <li><a href="#">Menu Item 1</a></li>
  <li><a href="#">Menu Item 2</a></li>
  <li><a href="#">Menu Item 3</a></li>      
  <li><a href="#">Menu Item 4</a></li>
  <li><a href="#">Menu Item 5</a></li>
  <li><a href="#">Menu Item 6</a></li>
</ul>  

Untitled PHP (26-Sep @ 18:28)

Syntax Highlighted Code

  1. something hnew

Plain Code

something hnew

Untitled PHP (24-Sep @ 17:26)

Syntax Highlighted Code

  1. Hello

Plain Code

Hello

Untitled PHP (24-Sep @ 15:34)

Syntax Highlighted Code

  1. <?php
  2.  
  3.   echo 'Sup.';
  4.  
  5. ?>

Plain Code

<?php

  echo 'Sup.';

?>

Untitled PHP (23-Sep @ 18:17)

Syntax Highlighted Code

  1. http://chart.apis.google.com/chart?chts=333333,12&chtt=Visitors%20in%20September%202008&cht=lc&chs=230x130&chd=t:7,7,13,18,51,31,27,64,52,52,93,100,34,33,54,51,53,57,52,89,68,66,27,0,0,0,0,0,0,0&chm=B,FFDAA1,0,0,0&chco=FF9900&chxt=x,y&chxl=0:|1st|30th|1:||528

Plain Code

http://chart.apis.google.com/chart?chts=333333,12&chtt=Visitors%20in%20September%202008&cht=lc&chs=230x130&chd=t:7,7,13,18,51,31,27,64,52,52,93,100,34,33,54,51,53,57,52,89,68,66,27,0,0,0,0,0,0,0&chm=B,FFDAA1,0,0,0&chco=FF9900&chxt=x,y&chxl=0:|1st|30th|1:||528

Untitled PHP (22-Sep @ 17:46)

Syntax Highlighted Code

  1. <?php
  2. // para Portales Verticales - Francisco Piantoni
  3. // Septiembre 2008
  4. // Félix A. Vera (felix.vera@gmail.com)
  5. [58 more lines...]

Plain Code

<?php
// para Portales Verticales - Francisco Piantoni
// Septiembre 2008
// Félix A. Vera (felix.vera@gmail.com)
//
// circulodeanunciantes.com
//

$debug = false;

include "includes/conexion.php";

$sql = "select count(*) as TotalRegistros from notas_notas";
$resultado = mysql_query($sql);
$fila = mysql_fetch_object($resultado);

$rengxpag        = 15;
$total_registros = $fila->TotalRegistros;
$total_paginas   = ceil($total_registros / $rengxpag);
$pagina          = (isset($_GET["pagina"])) ? $_GET["pagina"] : 1;
$desde           = ($pagina==1) ? 0 : ($pagina * $rengxpag);
$hasta           = ($pagina==1) ? $rengxpag : ($desde + $rengxpag); 

if ($debug)
   {
   echo "Renglones por pagina: ".$rengxpag."<br />";
   echo "Total de Registros: ".$total_registros."<br />";
   echo "Total Paginas: ".$total_paginas."<br />";
   echo "Pagina actual: ".$pagina."<br />";
   echo "Desde: ".$desde."<br />";
   echo "Hasta: ".$hasta."<br />";
   echo "<br /><br />";
   }


// NOTAS

$sql = "SELECT ";
$sql.= "Notas.IDNota, Notas.FechaDeNota, Notas.FechaDeVencimiento, Notas.IDLugar, Notas.IDSeccion, Notas.IDColumna, ";
$sql.= "Notas.IDPosicion, Notas.Titulo, Notas.Volanta, Notas.Copete, Notas.Contenido, Notas.Epigrafe, Notas.IDAutor, ";
$sql.= "Notas.Fuente, Notas.URL, Notas.Portada, Lugares.IDLugar, Lugares.Descripcion as LugaresDescripcion, Lugares.Activo, ";
$sql.= "Secciones.IDSeccion, Secciones.Nombre As NombreSeccion, Secciones.Activa, Columnas.IDColumna, Columnas.Nombre As NombreColumna, ";
$sql.= "Columnas.Activa, Posiciones.IDPosicion, Posiciones.Nombre As NombrePosicion, Autores.IDAutor, Autores.ApellidosNombres, ";
$sql.= "Autores.Email, Autores.Antecedentes, Autores.Activo ";
$sql.= "FROM ";
$sql.= "notas_notas AS Notas ";
$sql.= "Inner Join notas_lugares AS Lugares ON Notas.IDLugar = Lugares.IDLugar AND Lugares.Activo = 'S' ";
$sql.= "Inner Join notas_secciones AS Secciones ON Notas.IDSeccion = Secciones.IDSeccion AND Secciones.Activa = 'S' ";
$sql.= "Inner Join notas_columnas AS Columnas ON Notas.IDColumna = Columnas.IDColumna AND Columnas.Activa = 'S' ";
$sql.= "Inner Join notas_posiciones AS Posiciones ON Notas.IDPosicion = Posiciones.IDPosicion ";
$sql.= "Inner Join notas_autores AS Autores ON Notas.IDAutor = Autores.IDAutor AND Autores.Activo = 'S' ";
$sql.= "Order By Notas.FechaDeNota Desc "; 
$sql.= "Limit $desde,$hasta ";

echo ($debug) ? "Query: ".$sql."<br />" : "";
 
$resultado = mysql_query($sql);
$fila = mysql_fetch_object($resultado);
$coincidencias = mysql_num_rows($resultado);
if ($coincidencias <> 0) { mysql_data_seek($resultado,0); }


?>

Untitled PHP (22-Sep @ 17:44)

Syntax Highlighted Code

  1. <?php
  2. // para Portales Verticales - Francisco Piantoni
  3. // Septiembre 2008
  4. // Félix A. Vera (felix.vera@gmail.com)
  5. [24 more lines...]

Plain Code

<?php
// para Portales Verticales - Francisco Piantoni
// Septiembre 2008
// Félix A. Vera (felix.vera@gmail.com)
//
// circulodeanunciantes.com
//

$x_usuario = "Adminsitrador";
$x_ip      = $_SERVER['REMOTE_ADDR'];
?>
<table align="center" width="980" cellpadding="3" cellspacing="0" border="0">
   <tr>
      <td width="75%" align="left">
         &nbsp;|&nbsp;
         <a href="menu.html"           target="_self">Inicio</a>&nbsp;|&nbsp;
         <a href="#" onClick="$('#cuerpo').load('notas_list.php');">Notas</a>&nbsp;|&nbsp;
         <a href="autores_list.php"    target="_self">Autores</a>&nbsp;|&nbsp;
         <a href="posiciones_list.php" target="_self">Posiciones</a>&nbsp;|&nbsp;
         <a href="lugares_list.php"    target="_self">Lugares</a>&nbsp;|&nbsp;
         <a href="columnas_list.php"   target="_self">Columnas</a>&nbsp;|&nbsp;
         <a href="encuestas_list.php"  target="_self">Encuentas</a>&nbsp;|&nbsp;
         <a href="usuarios_list.php"   target="_self">Usuarios</a>&nbsp;|      
      </td>
      <td class="usuario">
         <?php echo date("d-m-Y");?><br /><span class="azul"><?php echo $x_usuario."</span> en ".$x_ip." "?>
      </td>
   </tr>
</table>

Untitled PHP (22-Sep @ 15:49)

Syntax Highlighted Code

  1. j
  2. $g_debug = false;
  3. $g_iframePath = "/modules/postindeces/post_iframe_proxy.php";
  4.  
  5. [10 more lines...]

Plain Code

j
$g_debug = false;
$g_iframePath = "/modules/postindeces/post_iframe_proxy.php";

try
{
  $select_regions = PostGenerateSelectPlace(PostGetDynamicPlaces(false, "fill_regions"), "fill_regions");
  $select_districts = PostGenerateSelectPlace(array("districts" => array()), "fill_districts");
  $select_cities = PostGenerateSelectPlace(array("cities" => array()), "fill_cities");
  $select_places = PostGenerateSelectPlace(array("places" => array()), "fill_places");
}
catch (LsnException $e)
{
  LsnLog::Exception($e);
}

Untitled PHP (22-Sep @ 15:49)

Syntax Highlighted Code

  1. ss

Plain Code

ss

Untitled PHP (22-Sep @ 13:11)

Syntax Highlighted Code

  1. echo "Hallo"

Plain Code

echo "Hallo"

Substr_word (21-Sep @ 20:37)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /**
  4.  * Function to shorten a string and cut it
  5. [19 more lines...]

Plain Code

<?php

/**
 * Function to shorten a string and cut it
 * until the last word.
 *
 * @param String $text
 * @param Integer $limit
 * @return string
 */
function substr_word( $text, $limit = 100 )
{
    // First limit
    $short = substr( $text, 0, $limit );

    // Get last whitespace position
    $whitespacePos = strrpos( $short, ' ' );

    // Here is where the magic happens
    $shorter = substr( $short, 0, $whitespacePos );
    
    // Return the actual data
    return $shorter;
}

Untitled PHP (21-Sep @ 19:13)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
?>

Untitled PHP (20-Sep @ 17:00)

Syntax Highlighted Code

  1. echo "Hello world";

Plain Code

echo "Hello world";

Untitled PHP (20-Sep @ 13:59)

Syntax Highlighted Code

Plain Code

echo

Untitled PHP (19-Sep @ 17:47)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. ?>

Plain Code

<?php

phpinfo

?>

Untitled PHP (18-Sep @ 13:43)

Syntax Highlighted Code

  1. $codefinder = '?';

Plain Code

$codefinder = '?';

Untitled PHP (18-Sep @ 10:20)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class Test {}
  4.  

Plain Code

<?php
phpinfo();

class Test {}

Untitled PHP (17-Sep @ 15:25)

Syntax Highlighted Code

  1. <?php
  2. require_once ("../common.php");
  3. echo "fff";
  4.  
  5. [18 more lines...]

Plain Code

<?php
require_once ("../common.php");
echo "fff";

/*
if (!isset ($_POST['ratio']) || empty ($_POST['ratio']) || ($_POST['ratio']!="up" || $_POST['ratio']!="down")) {echo "0"; exit();}
if (!isset ($_POST['m_id']) || empty ($_POST['m_id'])) {echo "0"; exit();}
if (!isset ($_POST['b_id']) || empty ($_POST['b_id'])) {echo "0"; exit();}
if (!isset ($_SESSION['usersess']) || empty ($_SESSION['usersess'])) {echo "0"; exit();}

$user = unserialize($_SESSION['usersess']);

$db = CDbFactory::createDb(MYSQL_DATABASE,MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_BASE);

if ($_POST['ratio']=="up") $_POST['ratio']=+1;
if ($_POST['ratio']=="down") $_POST['ratio']=-1;

$raiting = new BlogRaiting($db, (int)$_POST['b_id'], (int)$user->id);
$res=$raiting->add((int)$_POST['m_id'], (int)$_POST['ratio']);

if(!$res) {addToLog(CERROR::NOTMESSAGEPOLL.strval($_POST['m_id']),basename(__FILE__),__LINE__,$db->getLastError()); echo "0"; } else echo "1";
*/
?>

Untitled PHP (17-Sep @ 11:55)

Syntax Highlighted Code

  1. class {
  2.  function Essai() {
  3.    if (isset($_POST['aaa'])) echo 'essai';
  4.  }
  5. }

Plain Code

class {
 function Essai() {
   if (isset($_POST['aaa'])) echo 'essai';
 }
}

whatasdfawe (17-Sep @ 02:26)

Syntax Highlighted Code

  1. <?php
  2. echo 'hi';
  3. ?>

Plain Code

<?php
echo 'hi';
?>

Untitled PHP (16-Sep @ 14:57)

Syntax Highlighted Code

  1. <?
  2.  
  3. echo "hello there";

Plain Code

<?

echo "hello there";

Untitled PHP (16-Sep @ 08:31)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'cos';
  4.  
  5. [5 more lines...]

Plain Code

<?php

echo 'cos';

$i = 0;
while($i<10)
{
echo $i;
}
?>

Untitled PHP (16-Sep @ 00:09)

Syntax Highlighted Code

  1. <?php
  2.    
  3.    echo time();

Plain Code

<?php
   
   echo time();

TARUGO (15-Sep @ 08:41)

Syntax Highlighted Code

  1. <?php
  2. echo TARUGO;
  3. ?>

Plain Code

<?php
echo TARUGO;
exit;
?>

Untitled PHP (15-Sep @ 08:40)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
echo time();
?>

Untitled PHP (14-Sep @ 07:32)

Syntax Highlighted Code

  1. echo 'Hello world';

Plain Code

echo 'Hello world';

Untitled PHP (13-Sep @ 13:13)

Syntax Highlighted Code

  1. <?php
  2. echo 'salut :)';
  3. ?>

Plain Code

<?php
echo 'salut :)';
?>

Untitled PHP (13-Sep @ 11:07)

Syntax Highlighted Code

Plain Code

phpinfo();

Untitled PHP (13-Sep @ 02:07)

Syntax Highlighted Code

  1. echo "Hello World"

Plain Code

echo "Hello World"

Untitled PHP (12-Sep @ 12:27)

Syntax Highlighted Code

  1. fpdf

Plain Code

fpdf

Untitled PHP (12-Sep @ 12:25)

Syntax Highlighted Code

  1. this is the test of the ind

Plain Code

this is the test of the ind

Untitled PHP (12-Sep @ 10:26)

Syntax Highlighted Code

  1. <?='hello World'; ?>

Plain Code

<?='hello World'; ?>

Untitled PHP (11-Sep @ 22:47)

Syntax Highlighted Code

  1. <php
  2. $var = "WIN";
  3. echo $var;
  4. ?>

Plain Code

<php
$var = "WIN";
echo $var;
?>

Untitled PHP (11-Sep @ 17:47)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo strtoupper('test');
  4.  
  5. ?>

Plain Code

<?php

echo strtoupper('test');

?>

Untitled PHP (9-Sep @ 22:00)

Syntax Highlighted Code

  1. echo "TEST"

Plain Code

echo "TEST"

Untitled PHP (9-Sep @ 16:58)

Syntax Highlighted Code

  1. function do_upload()
  2. {
  3.     if (!isset($_POST["upload"]))
  4.     {
  5. [35 more lines...]

Plain Code

function do_upload()
{
    if (!isset($_POST["upload"]))
    {
        $upload_conf = array(
            'upload_path'        => './webroot/temp',
            'allowed_types'        => 'jpg|jpeg|png|gif',
            'encrypt_name'        => TRUE,
            'max_size'        => '2048',
            'max_width'        => '4200',
            'max_height'        => '3150'
        );
        $this->load->library('upload',$upload_conf);

        if ($this->upload->do_upload())
        {
            $this->do_resize($this->upload->data(),'news');
            $data = array(
                'upload_data' => $this->upload->data(),
                'error' => ''
            );
        }
        else
        {
            $data = array(
                'upload_data' => '',
                'error' => $this->load->view('msgbox/error', array('msg' => $this->upload->display_errors('<span>', '</span>')), True)
            );
        }
    }
    else
    {
        $data = array(
            'upload_data' => '',
            'error' => $this->load->view('msgbox/error', array('msg' => 'Ters giden birşeyler var!'), True)
        );
    }
    $this->load->view('imgupload/view', $data);
}

Untitled PHP (9-Sep @ 00:28)

Syntax Highlighted Code

  1. echo "si";

Plain Code

echo "si";

Untitled PHP (8-Sep @ 14:20)

Syntax Highlighted Code

  1. <php
  2.  
  3. $page = 'myid.php';
  4. ?>

Plain Code

<php

$page = 'myid.php';
?>

Untitled PHP (8-Sep @ 09:34)

Syntax Highlighted Code

  1. <?php
  2. if (@$_REQUEST['ajax']) {
  3.     // connect to local database 'test' on localhost
  4.     $link = mysql_connect('localhost', 'root', '');
  5. [21 more lines...]

Plain Code

<?php
if (@$_REQUEST['ajax']) {
    // connect to local database 'test' on localhost
    $link = mysql_connect('localhost', 'root', '');
    if ($link == false)
        trigger_error('Connect failed - ' . mysql_error(), E_USER_ERROR);

    $connected = mysql_select_db('test', $link);
    
    if ($connected) {
        $results = mysql_query('select * from test.select_chain where category="' . strtolower(mysql_real_escape_string(strip_tags($_REQUEST['category']))) . '"');
        
        $json = array();
        
        while (is_resource($results) && $row = mysql_fetch_object($results)) {
            //$json[] = '{"id" : "' . $row->id . '", "label" : "' . $row->label . '"}';
            $json[] = '"' . $row->label . '"';
        }
        
        echo '[' . implode(',', $json) . ']';
        die(); // filthy exit, but does fine for our example.
    } else {
        user_error("Failed to select the database");
    }
}
?>

Untitled PHP (8-Sep @ 08:48)

Syntax Highlighted Code

  1. <?php
  2. if($_GET['foo'] == 'bar') {
  3.     phpinfo();
  4. }
  5. ?>

Plain Code

<?php
if($_GET['foo'] == 'bar') {
    phpinfo();
}
?>

gedeelte loginscript (7-Sep @ 22:57)

Syntax Highlighted Code

  1. <?php
  2.  
  3. if(isset($_POST['gebruikersnaam'] && $_POST['wachtwoord'])){
  4.     $postgebruikersnaam = $_POST['gebruikersnaam'];
  5. [12 more lines...]

Plain Code

<?php

if(isset($_POST['gebruikersnaam'] && $_POST['wachtwoord'])){
    $postgebruikersnaam = $_POST['gebruikersnaam'];
    $postgebruikersnaam = mysql_real_escape_string($postgebruikersnaam);
    $postwachtwoord = $_POST['wachtwoord'];
    $postwachtwoord = sha1($postwachtwoord);
    if(mysql_query('SELECT * FROM leden WHERE gebruikersnaam="' . $postgebruikersnaam . '" AND wachtwoord="' . $postgebruikersnaam . '"' == FALSE){
        echo 'Er is geen overeenkomst gevonden met een bestaande gebruiker. Probeer de gegevens opnieuw in te voeren.<br /><br />';
        include('./include/loginform.php';
        }
    elseif(mysql_query('SELECT * FROM leden WHERE gebruikersnaam="' . $postgebruikersnaam . '" AND wachtwoord="' . $postgebruikersnaam . '"' != FALSE){
        
        }
    }

?>

gedeelte loginscript (7-Sep @ 22:54)

Syntax Highlighted Code

  1. <?php
  2.  
  3. if(isset($_POST['gebruikersnaam'] && $_POST['wachtwoord'])){
  4.     $postgebruikersnaam = $_POST['gebruikersnaam'];
  5. [11 more lines...]

Plain Code

<?php

if(isset($_POST['gebruikersnaam'] && $_POST['wachtwoord'])){
    $postgebruikersnaam = $_POST['gebruikersnaam'];
    $postwachtwoord = $_POST['wachtwoord'];
    $postwachtwoord = sha1($postwachtwoord);
    if(mysql_query('SELECT * FROM leden WHERE gebruikersnaam="' . $postgebruikersnaam . '" AND wachtwoord="' . $postgebruikersnaam . '"' == FALSE){
        echo 'Er is geen overeenkomst gevonden met een bestaande gebruiker. Probeer de gegevens opnieuw in te voeren.<br /><br />';
        include('./include/loginform.php';
        }
    elseif(mysql_query('SELECT * FROM leden WHERE gebruikersnaam="' . $postgebruikersnaam . '" AND wachtwoord="' . $postgebruikersnaam . '"' != FALSE){
        
        }
    }

?>

Untitled PHP (7-Sep @ 18:05)

Syntax Highlighted Code

  1. <?php
  2. echo "wtf"; ?>

Plain Code

<?php
echo "wtf"; ?>

Untitled PHP (7-Sep @ 15:22)

Syntax Highlighted Code

  1. <?php
  2. require('../includes/core.inc.php');
  3.  
  4. $smarty = new Smarty();
  5. [3 more lines...]

Plain Code

<?php
require('../includes/core.inc.php');

$smarty = new Smarty();

$smarty->display('admin/addBackgroundTags.tpl');
?>

Untitled PHP (7-Sep @ 15:22)

Syntax Highlighted Code

  1. <?php
  2. echo 'test';
  3. ?>

Plain Code

<?php
echo 'test';
?>

Untitled PHP (6-Sep @ 16:02)

Syntax Highlighted Code

  1. lawjflasködfjiow
  2. asflksjaf#+

Plain Code

lawjflasködfjiow
asflksjaf#+

Untitled PHP (6-Sep @ 10:52)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class newClass {
  4.  private $_private;
  5. [11 more lines...]

Plain Code

<?php

class newClass {
 private $_private;
 public $public;

 public function __construct() {
  $this->_private = "Here is a value";
  
  $this->public = 'adasdasd';
 }

 private function() {
  echo 1234;
 }
}

dfdfdfdfdfdfdfdfdfdfdfdfdfdf (6-Sep @ 09:54)

Syntax Highlighted Code

  1. dfdf

Plain Code

dfdf

Untitled PHP (6-Sep @ 05:31)

Syntax Highlighted Code

  1. <?php
  2. function foo() {
  3.   echo "bar";
  4. }
  5. [2 more lines...]

Plain Code

<?php
function foo() {
  echo "bar";
}

echo foo();
?>

Untitled PHP (4-Sep @ 08:30)

Syntax Highlighted Code

  1. <?php
  2. if ( 1 == 1 ) print 'ok';
  3. else print 'not ok';
  4.  
  5. ?>

Plain Code

<?php
if ( 1 == 1 ) print 'ok';
else print 'not ok';

?>

test (4-Sep @ 08:29)

Syntax Highlighted Code

  1. test

Plain Code

test

Untitled PHP (3-Sep @ 01:09)

Syntax Highlighted Code

  1. this

Plain Code

this

Untitled PHP (3-Sep @ 01:08)

Syntax Highlighted Code

  1. // lastfm user
  2.   33      private $user;
  3.   34      // lastfm user password
  4.   35      private $password;
  5. [10 more lines...]

Plain Code

// lastfm user
  33      private $user;
  34      // lastfm user password
  35      private $password;
  36      // scrobbler session id
  37      private $sessionId         = '';
  38      // last handshake failure timestamp (0 = no failure)
  39      private $handShakeFailure  = 0;
  40      // number of hard failures
  41      private $submitFailures    = 0;
  42      // store tracks here
  43      private $queue             = array();
  44      private $nowPlayingUrl;
  45      private $submissionUrl;

Untitled PHP (1-Sep @ 10:09)

Syntax Highlighted Code

  1. <?php ?>

Plain Code

<?php ?>

Untitled PHP (29-Aug @ 11:28)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'cape deh';
  4. ?>

Plain Code

<?php

echo 'cape deh';
?>

Untitled PHP (29-Aug @ 10:43)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
  3.    <head>
  4.        <title>Nouveau Site</title>
  5. [88 more lines...]

Plain Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
   <head>
       <title>Nouveau Site</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <meta name="description" content=" " />
       <meta name="keywords" content=" " /> 
       <link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" />
       <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
   </head>

<body>
<div id="header">
<br />
HEADER HEADER HEADER HEADER HEADER HEADER HEADER HEADER <br />HEADER HEADER HEADER HEADER HEADER HEADER HEADER HEADER <br />
</div>
<div id="global">
  <div id="menu_gauche"> 
  <br />
<ul><li><a href="index.php?page=inscription">Inscription</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li></ul> 
 </div>
  <div id="menu_droite">
  <br />
<ul><li><a href="###">lien</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li>
<li><a href="###">lien</a></li></ul>
  </div>
  <div id="page_principale"> 
  <br />
<p>Traitement des données...</p>
<?php

$pseudo = $_POST['pseudo'];
$mdp = $_POST['mdp'];
$mdp2 = $_POST['mdp2'];
$email = $_POST['email'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$ville = $_POST['ville'];
$jour = $_POST['jour'];
$mois = $_POST['mois'];
$annee = $_POST['annee'];
$how = $_POST('how'];

if ($mdp == $mdp2)
{
echo ('Vos coordonnées ont bien étés entrées. voulez vous les valider ?');

?>
<h3> Récapitulons : </h3>
<table align="center">
<tr><td><label for="pseudo">Pseudo</label> : </td><td><?php echo $pseudo; ?></td></tr>
<tr><td><label for="mdp">Mot de passe</label> : </td><td><?php echo $mdp; ?></td></tr>
<tr><td><label for="email">E-mail</label> : </td><td><?php echo $email; ?></td></tr>
<tr><td><label for="nom">Nom</label> : </td><td><?php echo $nom; ?></td></tr>
<tr><td><label for="prenom">Prénom</label> : </td><td><?php echo $prenom; ?></td></tr>
<tr><td><label for="ville">Ville</label> : </td><td><?php echo $ville; ?></td></tr>
<tr><td>Date de naissance : </td><td><?php echo $jour; ?> / <?php echo $mois; ?> / <?php echo $annee; ?></td></tr>      
<tr><td><label for="how">Comment avez-vous découvert ce site </label> : </td><td><?php echo $how; ?></td></tr>
</table>
<br />
<br />
<table>
<td><a href='index.php?page=envoi' >Oui, je valide</a></td><td><a href='index.php?page=inscription'>Non, je dois modifier mes coordonnees</a></td></tr>
</table>
<br />
<?php

}
elseif ($mdp != $mdp2);
{
echo('Les deux mots de passes que vousavez entrés sont différents. Veuillez recommencer.');
}
else
{
echo('une erreur interne est survenue.');
}
  </div>
  <div id="footer"> 
  <br />
  FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER <br />
  </div>
  <br />
</div>
</body>
</html>

Untitled PHP (28-Aug @ 18:19)

Syntax Highlighted Code

  1. <html>
  2. <head>
  3. <title>Gratis online pokeren voor geld zonder storten Pokeren voor beginners! Online pokeren! Uitleg over pokeren! Kortom: Leren Pokeren! leer poker via nupokeren.nl Bekijk leuke poker films.</title>
  4. <meta name="description" content="Makkelijk leren pokeren, duidelijke taal, duidelijke uitleg en de spelregels van het immens populaire pokerspel Texas Hold`em. Heeft u meer vragen kunt u altijd terecht in ons pokerforum en zullen u vraag zo snel mogelijk beantwoorden.">
  5. [231 more lines...]

Plain Code

<html>
<head>
<title>Gratis online pokeren voor geld zonder storten Pokeren voor beginners! Online pokeren! Uitleg over pokeren! Kortom: Leren Pokeren! leer poker via nupokeren.nl Bekijk leuke poker films.</title>
<meta name="description" content="Makkelijk leren pokeren, duidelijke taal, duidelijke uitleg en de spelregels van het immens populaire pokerspel Texas Hold`em. Heeft u meer vragen kunt u altijd terecht in ons pokerforum en zullen u vraag zo snel mogelijk beantwoorden.">
<meta name="keywords" content="Pokeren, online pokeren, gratis pokeren, leren pokeren, spelregels pokeren, uitleg pokeren, gratis online pokeren, regels pokeren, pokeren spelen, leer pokeren, internet poker, poker,Texas Holdem, Texas Hold`em, pokeren texas holdem, pokeren nederlands, cursus pokeren, spelregels pokeren, combinaties pokeren,nu pokeren, poker film, poker filmpjes, poker films">
<meta name="language" content="NL">
<meta name="verify-v1" content="4wItMkV+nA9KZm1J3dt148mE9kOwrvTDaRTe4ob194Y=" /> 
<meta name="revisit" content="7 Days">
<meta name="robots" content="index,follow">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link href="stijl.css" rel="stylesheet" type="text/css" media="all" />

<STYLE type=text/css>BODY {
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #000000;
scrollbar-face-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-3dlight-color: #000000;
</STYLE>

<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
  <table id="Tabel_01" width="751" height="601" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="7" rowspan="2"><img src="afbeeldingen/index_01.gif" width="386" height="96" alt=""></td>
      <td colspan="6"><img src="afbeeldingen/index_02.gif" width="268" height="63" alt=""></td>
      <td colspan="3" rowspan="2"><img src="afbeeldingen/index_03.gif" width="96" height="96" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="63" alt=""></td>
    </tr>
    <tr>
      <td colspan="6"><img src="afbeeldingen/index_04.gif" width="268" height="33" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="33" alt=""></td>
    </tr>
    <?php include("top.php"); ?>
    <tr>
      <td colspan="12"><img src="afbeeldingen/index_15.gif" width="584" height="9" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
      <td colspan="9"><img src="afbeeldingen/index_16.gif" width="494" height="14" alt=""></td>
      <?php include("ads.php"); ?>
      <td rowspan="4"><img src="afbeeldingen/index_18.gif" width="47" height="470" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="14" alt=""></td>
    </tr>
    <tr>
      <td rowspan="3"><img src="afbeeldingen/index_19.gif" width="56" height="456" alt=""></td>
      <td colspan="9" background="afbeeldingen/index_20.gif" width="491" height="389" align="left" valign="top">
<DIV STYLE="overflow-y: scroll; overflow-x: no; height: 100%; width: 100%; color: white;"> <center>
<h2>Gratis online pokeren voor geld zonder storten</h2></center>

<P> Hier vind u een overzicht van freeroll toernooien, een freeroll is een pokertoernooi waaraan u gratis kan deelnemen, u hoeft hiervoor geen geld te storten op uw poker account. Het enige wat u wel moet doen is een account aanmaken en een "echt geld rekening", want de prijzen die u wint zijn namelijk wel van echt geld. Ook de "echt geld rekening" kost niets en verpicht u ook niet om geld te storten.</P><bR>
Spelregels van verschillende variaties kunt u <a href="poker-variaties/poker_variaties.php">hier vinden</A>.</P>
<a href="phpbbnp/viewforum.php?f=18&sid=703db4d4acb0b56b846a30a3769c5505">Trots op uw resultaat? Post dit dan hier.</a></p><br>
<?php
date_default_timezone_set( 'Europe/Amsterdam' );


    include "admin/config.php";
    $settings_freeroll_pages = 10;
//Create the $counter var
    $count_freeroll = mysql_query("SELECT COUNT(*) AS NUM FROM freerolls");
    $count_freeroll_result = mysql_result($count_freeroll, 0, "num");

function count_down($dag, $maand, $jaar, $event, $event_klaar)
{
        // Bereken datum
        $date_time = mktime(0, 0, 0, $maand, $dag, $jaar);
        $time_now = time();
        $cd_remaining_time = $date_time-$time_now;
        $cd_remaining_days = round($cd_remaining_time / 84600);

        if($cd_remaining_days == 00 || $cd_remaining_days == 0)
        {
                $days_text = "dag";
        }
        else
        {
                $days_text = "dagen";
        }
        
        if($cd_remaining_days > 0)
        {
                $text = "Nog <b>".$cd_remaining_days."</b> ".$days_text;
        }
        else
        {
                $text = $event_klaar;
        }

        return $text;
} 

//Create the $pages var
    $number_pages = $count_freeroll_result / $settings_freeroll_pages;
    $number_pages = ceil($number_pages);

            if(isset($_GET['page'])&&$_GET['page'] <= $number_pages&&$_GET['page']>0&&is_numeric($_GET['page']))
            {
                $page = $_GET['page'];
            } else {
                $page = 1;
            }

    $first_result = $page * $settings_freeroll_pages - $settings_freeroll_pages;

$freeroll_select = mysql_query("SELECT * FROM freerolls WHERE fdate > UNIX_TIMESTAMP() ORDER BY fdate ASC LIMIT ".$first_result.", ".$settings_freeroll_pages);
    if(mysql_num_rows($freeroll_select) == 0){
        echo "Er zijn nog geen freerolls geplaatst";
    } else {
        echo "<table style='color: white;' border-color='#FFFFFF'><tr><td>Starts</td><td>Type</td><td>Room</td><td>Reward</td></tr>";

            $rest = "";

        while($freeroll_result = mysql_fetch_array($freeroll_select)){
        $dag = $freeroll_result['dag'];
        $maand = $freeroll_result['maand'];
        $maan = $freeroll_result['maand'];
        $uur = $freeroll_result['uur'];
        $minuut = $freeroll_result['minuut'];
        $link = $freeroll_result['room_link'];
        $type = $freeroll_result['game_type'];
        $room_id = $freeroll_result['room_id'];
        $reward = $freeroll_result['reward'];
        //$tijd_count = $freeroll_result['tijd_count'];
        $room_result = mysql_query("SELECT * FROM rooms WHERE room_id = ".$room_id . "");
        $room_result_echo = mysql_fetch_array($room_result);
        
        /*$tijd_count_nu = date( j ) . date( m ) . date( H ) . date( i ) . date( Y ); 
        $tijd_count = $freeroll_result['tijd_count'];*/
        
        $tijd_count_nu = time(); 
        $tijd_count = $freeroll_result['fdate'];
        
        $reward = str_replace('dollar','$', $reward);
        $reward = str_replace('euro','&euro;', $reward);
                if($maand==1){ $maand="Januari";}
                if($maand==2){ $maand="Februari";}
                if($maand==3){ $maand="Maart";}
                if($maand==4){ $maand="April";}
                if($maand==5){ $maand="Mei";}
                if($maand==6){ $maand="Juni";}
                if($maand==7){ $maand="Juli";}
                if($maand==8){ $maand="Augustus";}
                if($maand==9){ $maand="September";}
                if($maand==10){ $maand="Oktober";}
                if($maand==11){ $maand="November";}
                if($maand==12){ $maand="December";}
                
            if( mktime( $uur, $minuut, 0, $maan, $dag, 2008 ) < time() ){
                $delete_verlopen = mysql_query("DELETE FROM freerolls WHERE freeroll_id = ".$freeroll_result['freeroll_id']) or die (mysql_error());
            }
            /*elseif( $freeroll_result[ 'maand' ] <= date( 'm' ) AND $freeroll_result[ 'dag' ] <= date( 'd' ) )
            {
                if( $freeroll_result[ 'uur' ] <= date( 'H' ) )
                {
                    if( $freeroll_result[ 'minuut' ] < date( 'i' ) )
                    {
                        $delete_verlopen = mysql_query("DELETE FROM freerolls WHERE freeroll_id = ".$freeroll_result['freeroll_id']) or die (mysql_error());
                    }
                }
            }*/
            
                        
            /*if(date(j) == $dag){
            $dag = "Vandaag";
            } else {
            $month = "true";
            }*/
            
        
        
        echo "<tr><td>".$dag." " . $maand;
                if($month == "true"){
                    echo " ".$maand;
                }
        echo " <span style='font-size: 11px;'><br />" . count_down( $freeroll_result['dag'], $maan, 2008, ' tot de start', 'Vandaag!' ) . " om " . $uur . ":" . $minuut . "</span></td>";
        echo "<td>".$type."</td>";
        echo "<td><a href='".$link."'>".$room_result_echo['room_naam']."</a></td>";
        echo "<td>".$reward."</td></tr>";
        }
        echo "</table>";
        echo "Pagina: ";
        render_pagenumbers($page,$number_pages,$settings_freeroll_pages, $rest);
    }
?>





</td>
      <td rowspan="3"><img src="afbeeldingen/index_21.gif" width="30" height="456" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="389" alt=""></td>
    </tr>
    <tr>
      <td colspan="9" rowspan="2" background="afbeeldingen/index_22.gif" width="491" height="67" align="center"><h1>Welkom op <a href="index.php">nupokeren.nl</a></h1></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="13" alt=""></td>
    </tr>
    <tr>
      <td colspan="4"><img src="afbeeldingen/index_23.gif" width="126" height="54" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="1" height="54" alt=""></td>
    </tr>
    <tr>
      <td><img src="afbeeldingen/spacer.gif" width="56" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="27" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="56" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="68" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="74" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="76" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="29" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="28" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="99" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="34" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="30" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="20" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="57" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="13" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="36" height="1" alt=""></td>
      <td><img src="afbeeldingen/spacer.gif" width="47" height="1" alt=""></td>
      <td></td>
    </tr>
  </table>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2760448-1";
urchinTracker();
</script>
<body bgcolor="#055217"></body>
</html>

Untitled PHP (28-Aug @ 10:55)

Syntax Highlighted Code

Plain Code

mysql_fetch_object

Untitled PHP (28-Aug @ 10:49)

Syntax Highlighted Code

  1. <?php
  2. require_once("db/mailer_db.php");
  3. header("Cache-Control: no-cache");
  4. $cond = " WHERE ";
  5. [31 more lines...]

Plain Code

<?php
require_once("db/mailer_db.php");
header("Cache-Control: no-cache");
$cond = " WHERE ";
if ($_POST['year_in']!=0) {
    $cond .= "year_in=".$_POST['year_in'];
}
if ($_POST['categoryid']!=0) {
    if ($cond=="WHERE ") {
        $cond .= "categoryid=".$_POST['categoryid'];
    } else {
        $cond .= " AND categoryid=".$_POST['categoryid'];
    }
}
if ($_POST['regionid']!=0) {
    if ($cond=="WHERE ") {
        $cond .= "regionid=".$_POST['regionid'];
    } else {
        $cond .= " AND regionid=".$_POST['regionid'];
    }
}
if ($cond==" WHERE ") {
    $cond = "";
}
$init = "SELECT enrollee.*, regions.title FROM enrollee LEFT JOIN regions ON enrollee.regionid=regions.id".$cond." ORDER BY lastname";
$i_r = mysql_query($init) or die(mysql_error()."<br>".$query);
$reply = "<div>Запрос".$cond."</div>";
$thetable = "<table class=\"basictable\" border=\"1\">
<tr class=\"tableheader\"><td>#</td><td>id</td><td>lastname</td><td>region</td></tr>";
$i = 1;
while ($i_a = mysql_fetch_assoc($i_r)) {
    $thetable .= "<tr><td>".$i++."</td><td>".$ass['id']."</td><td>".$ass['lastname']."</td><td>".$ass['title']."</td></tr>";
}
$thetable .= "</table>";
echo $reply.$thetable;
?>

Untitled PHP (26-Aug @ 20:53)

Syntax Highlighted Code

Plain Code

phpinfo();

Untitled PHP (26-Aug @ 13:36)

Syntax Highlighted Code

  1. echo 'test';

Plain Code

echo 'test';

Untitled PHP (25-Aug @ 15:37)

Syntax Highlighted Code

  1. <?
  2. require_once('add_smarty.php');
  3. require_once("session.php");
  4. require_once('mysql_cfg.php');
  5. [246 more lines...]

Plain Code

<?
require_once('add_smarty.php');
require_once("session.php"); 
require_once('mysql_cfg.php');
require_once('bbcode.php');

/*
CREATE TABLE `comments` (
`id` INT NOT NULL AUTO_INCREMENT ,
`topicid` INT NOT NULL,
`userid` INT NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`datum` DATETIME NOT NULL ,
`text` LONGTEXT NOT NULL ,
PRIMARY KEY ( `id` ) ,
INDEX ( `datum` ) 
) TYPE = innodb;
*/

function unescape_string($s)
{
    $r = $s;
    //$r = str_replace('&', '&amp;', $r);
    //$r = str_replace('<', '&lt;', $r);
    //$r = str_replace('>', '&gt;', $r);
    
    
    $r = str_replace('\\"', '"', $r);
    $r = str_replace("\\'", "'", $r);
    $r = str_replace('\\\\', '\\', $r);
    
    //$r = str_replace('\\"', '\\"', $r);
    
    return $r;
}

function getip() 
{
    if (isSet($_SERVER)) 
    {
        if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) 
        {
            $realip = $_SERVER["HTTP_X_FORWARDED_FOR"];
        } 
        elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) 
        {
            $realip = $_SERVER["HTTP_CLIENT_IP"];
        } 
        else {
            $realip = $_SERVER["REMOTE_ADDR"];
        }
    } 
    else 
    {
        if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) 
        {
            $realip = getenv( 'HTTP_X_FORWARDED_FOR' );
        } 
        elseif ( getenv( 'HTTP_CLIENT_IP' ) ) 
        {
            $realip = getenv( 'HTTP_CLIENT_IP' );
        } 
        else {
            $realip = getenv( 'REMOTE_ADDR' );
        }
    }
    return $realip;
}


function make_ago_timer2 ($_seconds)
{
    $seconds =intval($_seconds);
    if ($seconds > (60*60*24) )
    {
        $i = intval($seconds / (60*60*24));
        return ($i > 1) ? "$i Tagen" : "einem Tag";
    }
    elseif ($seconds > (60*60) )
    {
        $i = intval($seconds / (60*60));
        return ($i > 1) ? "$i Stunden" : "einer Stunde";
    }
    elseif ($seconds > (60) )
    {
        $i = intval($seconds / (60));
        return ($i > 1) ? "$i Minuten" : "einer Minute";
    }
    else
    {
        $i = intval($seconds);
        return ($i > 1) ? "$i Sekunden" : "einer Sekunde";
    }
}

function get_topic_comment_count($topic)
{
    $query = 'SELECT count(*) as c FROM comments WHERE topicid = '.$topic.';';
    $row = mysql_fetch_array(mysql_query($query));
    return $row['c'];
}

function add_page_switcher($topic, $cur_from, $posts_per_page = 10)
{
    
    $count = get_topic_comment_count($topic);
    $i = 0;
    $comment_pages = array();
    while ($i*$posts_per_page < $count)
    {
        $i++;
        $comment_pages[] = array("i" => $i, "from" => ($i-1)*$posts_per_page, "count" => $posts_per_page, "current" => (($i-1)*$posts_per_page == $cur_from));
    }
    global $smarty;
    $smarty->assign('comment_pages', $comment_pages);
}


function add_comments($topic, $from = 0, $count = 10)
{
    $query = 'SELECT *, UNIX_TIMESTAMP(NOW())- UNIX_TIMESTAMP(datum) as diff_datum FROM comments WHERE topicid = '.$topic.' ORDER BY datum DESC LIMIT '.$from.', '.$count.';';
    $data = mysql_query($query);
    $comments = array();
    while ($row = mysql_fetch_array($data))
    {
        $comments[] = array_merge($row,array(
            "ago_time"    => make_ago_timer2($row['diff_datum']), 
            "parsed_text" => bbcode_parse(unescape_string($row['text']))));
        //$comments[] = array_merge($row,array("ago_time" => make_ago_timer2($row['diff_datum']), "parsed_text" => "<pre>".htmlspecialchars($row['text'])."</pre>"));
    }
    global $smarty;
    $smarty->assign('comments', $comments);
    
    add_page_switcher($topic, $from);
}

if (isset($_GET['ajax']))
{
    $action = $_GET['ajax'];

    
    if ($action == "addcomments")
    {

        $topic = intval($_GET['topic']);
        $from = intval($_GET['from']);
        $count = intval($_GET['count']);
        
        
/*
CREATE TABLE `comments` (
`id` INT NOT NULL AUTO_INCREMENT ,
`topicid` INT NOT NULL,
`userid` INT NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`datum` DATETIME NOT NULL ,
`text` LONGTEXT NOT NULL ,
PRIMARY KEY ( `id` ) ,
INDEX ( `datum` ) 
) TYPE = innodb;
*/
        $user = session_get_user_secure();
        $userid = 0;
        $username = "";
        $ip = "";
        $hostname = "";
        $time_left = 0;
        $guest_comment_delay = 60*3;
        if ($user)
        {
            $userid = $user['id'];
            $username = $user['name'];
        }
        else
        {
            $username = "Gast ( ".mysql_escape_string(htmlspecialchars($_GET['username']))." )";
            $ip = mysql_real_escape_string(getip());
            $hostname = gethostbyaddr($ip);
            $query = 'SELECT (UNIX_TIMESTAMP(`datum`)+'.$guest_comment_delay.' - UNIX_TIMESTAMP(NOW())) as time FROM comments WHERE `ip` = "'.$ip.'" AND UNIX_TIMESTAMP(`datum`) > UNIX_TIMESTAMP(NOW())-'.$guest_comment_delay.' ORDER BY `datum` DESC;';
            $row = mysql_fetch_array(mysql_query($query));
            echo mysql_error();
            if ($row)
            {
                $time_left = $row['time'];
                
            }
        }
        
        //$text = mysql_escape_string(nl2br(htmlspecialchars($_GET['text'])));
        
        $text = mysql_escape_string($_GET['text']);
        $text = trim($text);
        $text = str_replace("Â"," ",$text);
        
        
        if ($time_left > 0)
        {
            if ($_GET['method'] == "ajax")
            {
                echo "<span class=\"error\">Du darfst als Gast nicht so schnell Kommentare posten. Bitte warte noch $time_left Skeunden</span>";
                add_comments($topic, 0, $count);
                $smarty->assign('draw_comments_form', false);
                $smarty->display('comments.tpl');
            }
        }
        else
        {
            if (!$text)
            {
                if ($_GET['method'] == "ajax")
                {
                    echo '<span class="error">Kein Text eingegeben.</span>';
                    add_comments($topic, 0, $count);
                    $smarty->assign('draw_comments_form', false);
                    $smarty->display('comments.tpl');
                }
            }
            else
            {
                $query = 'INSERT INTO comments (`topicid`, `userid`, `username`, `datum`, `text`, `ip`, `host`)
                VALUES("'.$topic.'", "'.$userid.'", "'.$username.'", NOW(), "'.$text.'", "'.$ip.'", "'.$hostname.'")
                ;';
                $data = mysql_query($query);
                echo mysql_error();
                
                if ($_GET['method'] == "ajax")
                {
                    add_comments($topic, 0, $count);
                    
                    $smarty->assign('draw_comments_form', false);
                    $smarty->display('comments.tpl');
                }
            }            
        }
        
    }
    elseif ($action == "changepage")
    {
        $from  = isset($_GET['from'] ) ? intval($_GET['from'])  : 0;
        $count = isset($_GET['count']) ? intval($_GET['count']) : 10;
        $topic = isset($_GET['topic']) ? intval($_GET['topic']) : 0;
        add_comments($topic, $from, $count);
        $smarty->assign('draw_comments_form', false);
        $smarty->display('comments.tpl');
    }
}

$additional_headers[] = '<link rel="stylesheet" type="text/css" href="bbcode.css" />';
$smarty->assign('additional_headers', $additional_headers);

?>

Untitled PHP (24-Aug @ 14:46)

Syntax Highlighted Code

  1. <?
  2. echo 'hola mundo';
  3. ?>

Plain Code

<?
echo 'hola mundo';
?>

Untitled PHP (23-Aug @ 10:24)

Syntax Highlighted Code

  1. if(isset($liste_chemin[$this->dtn]))
  2.         {
  3.             $chemin = "url:".$liste_chemin[$this->dtn];
  4.         }
  5. [8 more lines...]

Plain Code

if(isset($liste_chemin[$this->dtn]))
        {
            $chemin = "url:".$liste_chemin[$this->dtn];
        }
        else
        {
            $chemin = "url:/hotels/";
        }

        if(! empty($this->pda) && ! empty($this->pdb))
        {
            $chemin .= $this->pda."/".$this->pdb."/";
        }

Untitled PHP (23-Aug @ 06:31)

Syntax Highlighted Code

  1. <?php
  2.   // if something's been posted - let's serve a differnt block of content
  3.   if (isset($_REQUEST['message'])) {
  4.    
  5. [90 more lines...]

Plain Code

<?php
  // if something's been posted - let's serve a differnt block of content
  if (isset($_REQUEST['message'])) {
    
    $to = 'you@yourdomain.com';
    $subject = 'Contact from contact form';
    $message = "From: " . $_REQUEST['name'] . "\n";
    $message .= "Email: " . $_REQUEST['email'] . "\n";
    $message .= "Message: \n" . $_REQUEST['message'];
    
    $header = 'From: contact_form@yourdomain.com';
    
    if (mail($to, $subject, $message, $header)) {
      echo 'Your message has been sent.'; // this should be the response...off we go.
    } else {
      echo 'There was a problem sending your contact message';
    }
    
    die(); // not the best way to do a contact form - but does fine for our demo.
    
    // Let's test.
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>jQuery AJAX forms</title>
    <script type="text/javascript" src="jquery.js"></script>
    
    <script type="text/javascript" charset="utf-8">
      // let's start the jQuery while I wait.
      // step 1: onload - capture the submit event on the form.
      $(function() { // onload...do
        $('#contactForm').submit(function() {
          // now we're going to capture *all* the fields in the
          // form and submit it via ajax.
          
          // :input is a macro that grabs all input types, select boxes
          // textarea, etc.  Then I'm using the context of the form from 
          // the initial '#contactForm' to narrow down our selector
          var inputs = [];
          $(':input', this).each(function() {
            inputs.push(this.name + '=' + escape(this.value));
          })
          
          // now if I join our inputs using '&' we'll have a query string
          jQuery.ajax({
            data: inputs.join('&'),
            url: this.action,
            timeout: 2000,
            error: function() {
              console.log("Failed to submit");
            },
            success: function(r) { 
              alert(r);
            }
          }) // checkout http://jquery.com/api for more syntax and options on this method.
          
          // re-test...
          // by default - we'll always return false so it doesn't redirect the user.
          return false;
        })
      })
    </script>
    <style type="text/css" media="screen">
      BODY { margin: 0; padding: 0; font: 1em "Trebuchet MS", verdana, arial, sans-serif; }
      BODY { font-size: 70%; }
      H1 { margin-bottom: 2px; font-family: Garamond, "Times New Roman", Times, Serif;}
      DIV.container { margin: auto; width: 90%; margin-bottom: 10px;}
      TEXTAREA { width: 80%;}
      FIELDSET { border: 1px solid #ccc; padding: 1em; margin: 0; }
      LEGEND { color: #ccc; font-size: 120%; }
      INPUT, TEXTAREA { font-family: Arial, verdana; font-size: 125%; padding: 7px; border: 1px solid #999; }
      LABEL { display: block; margin-top: 10px; }      
    </style>
  </head>
  <body>
    <div class="container">
      <div id="content_text">
        <h1>jQuery AJAX forms</h1>
        <form action="contact" method="get" id="contactForm">
          <fieldset>
            <legend>Enter your message</legend>
            <label for="email">Email:</label> <input type="text" name="email" value="" id="email" /><br />
            <label for="name">Name:</label> <input type="text" name="name" value="" id="name" /><br />
            <label for="message">Message:</label><textarea name="message"></textarea>
            <p><input type="submit" value="Send Message" /></p>
          </fieldset>
        </form>
      </div>
    </div>
  </body>
</html>

Sitemap PHP (22-Aug @ 09:10)

Syntax Highlighted Code

  1. <?php
  2. $lines = file('sitemap.xml');
  3. $allMatches = array();
  4.  
  5. [20 more lines...]

Plain Code

<?php
$lines = file('sitemap.xml');
$allMatches = array();
 
foreach($lines as $line_number => $line){
 $line = trim($line);
 preg_match_all('/(?<=\<loc\>)(.*?)(?=\<\/loc\>)/U',$line,$matches,PREG_SET_ORDER);
 if($matches){
  if($matches[0][0] != ''){
   $allMatches[] = $matches[0][0];
  };
 };
};
 
$list = '';
foreach($allMatches as $url){
 $list .= $url."\n";
};
$fh = fopen('urllist.txt',"w+");
fwrite($fh,$list);
fclose($fh);
 
// print out list to provide some feedback…
echo $list;
?>

Untitled PHP (21-Aug @ 21:50)

Syntax Highlighted Code

  1. $test = $this->varname['val'] . ${$varivar};

Plain Code

$test = $this->varname['val'] . ${$varivar};

Untitled PHP (21-Aug @ 21:50)

Syntax Highlighted Code

  1. $test

Plain Code

$test

Untitled PHP (21-Aug @ 16:44)

Syntax Highlighted Code

  1. new

Plain Code

new

Untitled PHP (21-Aug @ 12:12)

Syntax Highlighted Code

  1. echo "hello, wolrd";
  2.  
  3.  

Plain Code

echo "hello, wolrd";

Untitled PHP (20-Aug @ 22:43)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /***************************************************************************\
  4.  *  SPIP, Systeme de publication pour l'internet                           *
  5. [51 more lines...]

Plain Code

<?php

/***************************************************************************\
 *  SPIP, Systeme de publication pour l'internet                           *
 *                                                                         *
 *  Copyright (c) 2001-2007                                                *
 *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
 *                                                                         *
 *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
 *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
\***************************************************************************/

if (!defined("_ECRIRE_INC_VERSION")) return;

// changer de langue espace prive (ou login)

// http://doc.spip.org/@action_converser_dist
function action_converser_dist()
{

    $securiser_action = charger_fonction('securiser_action', 'inc');
    $securiser_action();

    if (_FILE_CONNECT AND $lang = _request('var_lang_ecrire')) {
        spip_query("UPDATE spip_auteurs SET lang = " . _q($lang) . " WHERE id_auteur = " . $GLOBALS['auteur_session']['id_auteur']);
        $GLOBALS['auteur_session']['lang'] = $lang;
        $session = charger_fonction('session', 'inc');
        if ($spip_session = $session($GLOBALS['auteur_session'])) {
            preg_match(',^[^/]*//[^/]*(.*)/$,',
                   url_de_base(),
                   $r);
            include_spip('inc/cookie');
            spip_setcookie('spip_session', $spip_session, time() + 3600 * 24 * 14, $r[1]);
        }
    }
    action_converser_post();
}

// http://doc.spip.org/@action_converser_post
function action_converser_post()
{
    if ($lang = _request('var_lang_ecrire')) {
        include_spip('inc/lang');
        include_spip('inc/cookie');
        spip_setcookie('spip_lang_ecrire', $lang, time() + 365 * 24 * 3600);
        spip_setcookie('spip_lang', $lang, time() + 365 * 24 * 3600);
    }
    $redirect = rawurldecode(_request('url'));

    if (!$redirect) $redirect = _DIR_RESTREINT_ABS;
    $redirect = parametre_url($redirect,'lang',$lang,'&');
    redirige_par_entete($redirect, true);
}

?>

Untitled PHP (20-Aug @ 22:42)

Syntax Highlighted Code

  1. <?php
  2. $a =

Plain Code

<?php
$a = 

Untitled PHP (20-Aug @ 16:27)

Syntax Highlighted Code

  1. <?php
  2. function make_tinyurl($url){
  3.     return file_get_contents('http://tinyurl.com/api-create.php?url='.$url);
  4. }
  5. [1 more lines...]

Plain Code

<?php
function make_tinyurl($url){
    return file_get_contents('http://tinyurl.com/api-create.php?url='.$url);
}
echo make_tinyurl("http://www.codedumper.com");
?>

Untitled PHP (20-Aug @ 12:57)

Syntax Highlighted Code

  1. <?php>echo "hello";</php>

Plain Code

<?php>echo "hello";</php>

Untitled PHP (20-Aug @ 10:41)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $test = array('1'=>1,'2'=>2);
  4.  
  5. [4 more lines...]

Plain Code

<?php

$test = array('1'=>1,'2'=>2);

foreach($test as $key) {
echo $key;
}

?>

Untitled PHP (19-Aug @ 12:42)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. echo "Hola Mundo!!<br>";
  5. [1 more lines...]

Plain Code

<?php


echo "Hola Mundo!!<br>";

?>

Untitled PHP (17-Aug @ 16:24)

Syntax Highlighted Code

  1. test

Plain Code

test

cool (17-Aug @ 04:18)

Syntax Highlighted Code

  1. sergiu

Plain Code

sergiu

Untitled PHP (16-Aug @ 17:50)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4.  
  5. [99 more lines...]

Plain Code

<?php 






// define your variables 
$host = "irc.ircworld.nl"; 
$port=6667; 


$nick="SanBot"; 
$ident="SanBot"; 
$chan="#ibot"; 

$readbuffer=""; 
$realname = "Sanbot"; 
$cmdprefix = ",";

$irc = connect($host, $port);

function connect($_host, $_port)
{
    echo "Conneting to: ".$_host.":".$_port."\n";
    
    // open a socket connection to the IRC server 
    $connection = fsockopen($_host, $_port, $erno, $errstr, 30);
    
    if (!$connection) { 
        echo "No connection\n";
        echo $errstr." (".$errno.")<br />\n"; 
    } else {
        echo "Connection Succesfull!\n";
        return $connection;
    }
}


    // print the error if ther eis no connection 
    if (!$irc) { 
        echo "No connection\n";
        echo $errstr." (".$errno.")<br />\n"; 
    } else { 
        // write data through the socket to join the channel 
        fwrite($irc, "NICK ".$nick."\r\n"); 
        fwrite($irc, "USER ".$ident." ".$host." bla :".$realname."\r\n"); 
        fwrite($irc, "PRIVMSG nickserv :identify *******\r\n"); 
        fwrite($irc, "JOIN :".$chan."\r\n"); 
         
           while (!feof($irc)) { 
            
            // Continue the rest of the script here
            while(trim($data = fgets($irc, 128))) {
         
                echo $data."\n";
                flush();
         
                // Separate all data
                $ex = explode(' ', $data);
         
                // Send PONG back to the server
                if($ex[0] == "PING"){
                    fputs($irc, "PONG ".$ex[1]."\n");
                }
                
                
                // DO something on the IRC server
                $command = str_replace(chr(58), '', $ex[3]);
                if ($command == $cmdprefix."sterf") 
                {
                    echo  "QUIT :Goodbye!\r\n";
                    fputs($irc, "QUIT :Goodbye!\r\n");
                }
                elseif($command == $cmdprefix."dood")
                {
                    echo  "QUIT :Goodbye!\r\n";
                    fputs($irc, "QUIT :Goodbye!\r\n");
                }
                elseif($command == $cmdprefix."join")
                {
                    echo "JOIN ".$ex[4]."\r\n";
                    fputs($irc, "JOIN ".$ex[4]."\r\n");
                }
                elseif($command == $cmdprefix."part")
                {
                    echo "PART ".$ex[4]."\r\n";
                    fputs($irc, "PART ".$ex[4]."\r\n");
                }
                elseif($command == $cmdprefix."say")
                {
                    echo "PRIVMSG ".$ex[4]." :".$ex[5]." ".$ex[6]."\r\n";
                    fputs($irc, "PRIVMSG ".$ex[4]." :".$ex[5]." ".$ex[6]."\r\n");
                }
         
            }
         
        }
    
    
    }

     
?> 

Untitled PHP (16-Aug @ 17:18)

Syntax Highlighted Code

  1. <?php
  2. //(Re)Connect function need to be fixed!
  3.  
  4.  
  5. [78 more lines...]

Plain Code

<?php 
//(Re)Connect function need to be fixed!



// define your variables 
$host = "irc.ircworld.nl"; 
$port=6667; 
$nick="SanBot"; 
$ident="SanBot"; 
$chan="#ibot"; 
$readbuffer=""; 
$realname = "Sanbot"; 
$cmdprefix = ",";
$autoreconnect = 1;
$is_connected = 0;

$irc = connect($host, $port);

function connect($_host, $_port)
{
    echo "Conneting to: ".$_host.":".$_port."\n";
    
    // open a socket connection to the IRC server 
    $connection = fsockopen($_host, $_port, $erno, $errstr, 30);
    
    if (!$connection) { 
        echo "No connection\n";
        echo $errstr." (".$errno.")<br />\n"; 
    } else {
        echo "Connection Succesfull!\n";
        return $connection;
    }
}

    // print the error if ther eis no connection 
    if (!$irc) { 
        echo "No connection\n";
        echo $errstr." (".$errno.")<br />\n"; 
    } else { 
        // write data through the socket to join the channel 
        fwrite($irc, "NICK ".$nick."\r\n"); 
        fwrite($irc, "USER ".$ident." ".$host." bla :".$realname."\r\n"); 
        fwrite($irc, "PRIVMSG nickserv :identify ******\r\n");
         
           while (!feof($irc)) { 
            
            // Continue the rest of the script here
            while($data = fgets($irc, 128)) {
         
                echo $data."\n";
                flush();
         
                // Separate all data
                $ex = explode(' ', $data);
         
                // Send PONG back to the server
                if($ex[0] == "PING"){
                    fputs($irc, "PONG ".$ex[1]."\n");
                }
                
                
                // DO something on the IRC server
                $command = str_replace(array(chr(10), chr(13),chr(58)), '', $ex[3]);
                if ($command == $cmdprefix."sterf") 
                {
                    fputs($irc, "QUIT Goodbye! \n");
                }
                elseif($command == $cmdprefix."join")
                {
                    fputs($irc, "JOIN ".$ex[4]);
                }
    
         
            }
         
        }
    
    
    }

     
?> 

Untitled PHP (16-Aug @ 16:15)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "fasz";
  4.  
  5. ?>

Plain Code

<?php

echo "fasz";

?>

Untitled PHP (15-Aug @ 20:59)

Syntax Highlighted Code

  1. text is red

Plain Code

text is red

Untitled PHP (15-Aug @ 15:26)

Syntax Highlighted Code

  1. echo "Hello World!";

Plain Code

echo "Hello World!";

Untitled PHP (15-Aug @ 02:00)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpinfo();
?>

Untitled PHP (14-Aug @ 17:36)

Syntax Highlighted Code

  1. <?php
  2. foreach ($songs as $mp3file)
  3. {    
  4.     //Get the filename of the song
  5. [17 more lines...]

Plain Code

<?php
foreach ($songs as $mp3file)
{    
    //Get the filename of the song
    $temp_filename = explode('/',$mp3file);
    $filename = $temp_filename[count($temp_filename)-1];
    $filename = urldecode($filename);
    
    echo "Start downloaden ".$filename."<br>";
    
    //Get the song
    if(!$filecontent = @file_get_contents($mp3file))
    {
        echo "Downloaden niet voltooid! ".$filename;
    }
    
    //Save the song
    file_put_contents($filename,$filecontent);
    echo "Downloaden voltooid: ".$filename."<br>";
    echo "---------------------------------------";
}
?>

Untitled PHP (13-Aug @ 13:37)

Syntax Highlighted Code

  1. var_dump($test);

Plain Code

var_dump($test);

Untitled PHP (12-Aug @ 20:08)

Syntax Highlighted Code

  1. echo "wotcha!";

Plain Code

echo "wotcha!";

Untitled PHP (11-Aug @ 13:02)

Syntax Highlighted Code

  1. xcvxcxcxc

Plain Code

xcvxcxcxc

Untitled PHP (10-Aug @ 18:51)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "test";
  4. ?>

Plain Code

<?php

echo "test";
?>

Untitled PHP (8-Aug @ 14:49)

Syntax Highlighted Code

  1. echo ('1');

Plain Code

echo ('1');

Untitled PHP (8-Aug @ 14:48)

Syntax Highlighted Code

  1. echo ('1');

Plain Code

echo ('1');

Untitled PHP (7-Aug @ 11:21)

Syntax Highlighted Code

  1. <?php
  2. if (function_exists('file_get_contents'))
  3. {
  4. }
  5. [271 more lines...]

Plain Code

<?php
if (function_exists('file_get_contents')) 
{
} 
else 
{
    function file_get_contents($file) 
    {
        $handle = fopen($file, "rb");
        $data = fread($handle, filesize($file));
        fclose($handle);
        return $data;
    }
}
if (function_exists('phpbyte_error')) 
{
}
else 
{
    function phpbyte_error($str) 
    {
        return "<html>
        <body style=\"font-family:Arial, sans-serif; font-size:12px;\">
        &nbsp;<br>
        <blockquote>
        <h4>Encoder gebruikt <a href=\"http://www.phpbyte.nl\">phpbyte.nl</a></h4>
        <p style=\"font-size:11px;\"><b>Error :</b></p>
        <div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
        $str
        </div><br>
        <p style=\"color:#666666;font-size:10px;\">
        Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
        </p>
        </blockquote>
        </body>
        </html>";
        }
}
if (function_exists('phpbyte_run_through')) 
{
} 
else 
{
function phpbyte_run_through($input) 
{
        $sec = 1327;
        $reverse = 0;
        $j = $sec;
        $pad = strlen($input);
        
        for($i = 0; $i < strlen($input); $i++) 
        {
            if($j == 0) {
                $reverse = 1;
            } elseif ($j == $sec) 
            {
                $reverse = 0;
            }
            
            if($reverse == 0) 
            {
                $j--;
            } elseif ($reverse == 1) 
            {
                $j++;
            }
            
            $enc .= substr($input, $i, $i+1) ^ chr( $j * ($pad + 1) );
            
            $pad--;
        }
        
        return $enc;
    }
}

if (function_exists('getsometext')) 
{

} 
else 
{
    function getsometext($aasscc) 
    {
        $fst = str_pad("",strlen($aasscc),chr(10));
        $revert = base64_decode($aasscc) ^ $fst;
        return $revert;    
    }
}

$ll1l11lll1 = array(getsometext("b2liZQ==") => "",getsometext("enhjZH4=") => "",getsometext("enhjZH5s") => "",getsometext("bmNv") => "");
$O0O0OO00O0 = file_get_contents($phpbyte_self);
$OO0O0OO000 = strtr($O0O0OO00O0,$ll1l11lll1);
if(md5(trim($O0O0OO00O0)) == md5(trim($OO0O0OO000)))
{
    $O0O0OO00O0 = explode("?".">",$O0O0OO00O0);
    $O0O0OO00O0 = phpbyte_run_through(base64_decode(trim($O0O0OO00O0[1])));
    eval($O0O0OO00O0);
}
else 
{
    $msg = phpbyte_error("PhpByte is aangepast hacker slot zit daarom op het bestand.");
    
    // This is: die($msg);
    eval(getsometext("bmNv") . "('" . $msg . "');");
}

if(!class_exists(Cipher_bleh)) 
{
    class Cipher_bleh 
    {
        var $p = array(0xC25A59B5, 0xEFE830F5);
        function setKey($key)
        {
            $key = $this->_formatKey($key);
            $keyPos = $keyXor = 0;
            $iMax = count($this->p);
            $keyLen = count($key);
            for ($i = 0; $i < $iMax; $i++) 
            {
                for ($t = 0; $t < 4; $t++) 
                {
                    $keyXor = ($keyXor << 8) | (($key[$keyPos]) & 0x0ff);
                    if (++$keyPos == $keyLen) 
                    {
                        $keyPos = 0;
                    }
                }
                $this->p[$i] = $this->p[$i] ^ $keyXor;
            }
            $encZero = array('L' => 0, 'R' => 0);
            for ($i = 0; $i + 1 < $iMax; $i += 2) 
            {
                $encZero = $this->_encryptBlock($encZero['L'], $encZero['R']);
                $this->p[$i] = $encZero['L'];
                $this->p[$i + 1] = $encZero['R'];
            }
        }
        
        function encryptBlock($block, $key = null)
        {
            if (!is_null($key)) 
            {
                $this->setKey($key);
            }
            list($L, $R) = array_values(unpack('N*', $block));
            $parts = $this->_encryptBlock($L, $R);
            return pack("NN", $parts['L'], $parts['R']);
        }
        
        function _encryptBlock($L, $R)
        {
            $L ^= $this->p[0];
            $R ^= $this->p[1];
            return array('L' => $R, 'R' => $L);
        }
        
        function decryptBlock($block, $key = null)
        {
            if (!is_null($key)) 
            {
                $this->setKey($key);
            }
            $L = null;
            $R = null;
            $retarray = array_values(unpack('N*', $block));
            if(isset($retarray[0])) 
            {
                $L = $retarray[0];
            }
            if(isset($retarray[1])) 
            {
                $R = $retarray[1];
            }
            $L ^= $this->p[1];
            $decrypted = pack("NN", $R ^ $this->p[0], $L);
            return $decrypted;
        }
        
        function _formatKey($key)
        {
            return array_values(unpack('C*', $key));
        }
    }
    
    function full_str_pad($input, $pad_length, $pad_string = '',$pad_type = 0) 
    {
        $str = '';
        $length = $pad_length - strlen($input);
        if ($length > 0) {
            if ($pad_type == STR_PAD_RIGHT) {
                $str = $input.str_repeat($pad_string, $length);
            } elseif ($pad_type == STR_PAD_BOTH) {
                $str = str_repeat($pad_string, floor($length/a));
                $str .= $input;
                $str .= str_repeat($pad_string, ceil($length/a));
            } else {
                $str = str_repeat($pad_string, $length).$input;
            }
        } else {
            $str = $input;
        }
        
        return $str;
    }
    
    function phpbyte_run_script($encdata) {
        $secret = "new unknown secret";
        $the_cipher = new Cipher_bleh;
        $decrypt = '';
        $data = $encdata;
        for ($i=0; $i<strlen($data); $i+=8) {
            $decrypt .= $the_cipher->decryptBlock(substr($data, $i, 8),$secret);
        }
        return trim($decrypt);
    }
}

if(function_exists('file_get_contents')) 
{
} 
else 
{
    function file_get_contents($file) 
    {
        $handle = fopen($file, "rb");
        $data = fread($handle, filesize($file));
        fclose($handle);
        return $data;
    }
}

if(function_exists('phpbyte_error')) 
{
} 
else 
{
    function phpbyte_error($str) 
    {
        return "<html>
<body style=\"font-family:Arial, sans-serif; font-size:12px;\">
&nbsp;<br>
<blockquote>
<h4>Encoder gebruikt <a href=\"http://phpbyte.nl\">phpbyte.nl</a></h4>
<p style=\"font-size:11px;\"><b>Error :</b></p>
<div style=\"border:1px solid #C60005;font-family:Courier;color:#C60005;background-color:#FFE1E2;padding:3px;width:300px;height:70px;\">
$str
</div><br>
<p style=\"color:#666666;font-size:10px;\">
Copyright &copy; " . date("Y") . " PhpByte.nl - All rights reserved
</p>
</blockquote>
</body>
</html>";
    }
}

if($phpbyte != 1) 
{
    die(phpbyte_error("Dit script kan niet aangeroepen worden. Script Gestopt!"));
}

$filename = $phpbyte_dpath . "/" . $phpbyte_fname;
$data = file_get_contents($filename);
$phpbyte_data = explode("?".">",$data);
$phpbyte_data = base64_decode( trim( $phpbyte_data[1] ) );

if($phpbyte_zlib == 1) 
{
    $phpbyte_data = gzinflate($phpbyte_data);
} 
else 
{
}
eval( phpbyte_run_script($phpbyte_data) );
?>

Untitled PHP (7-Aug @ 01:31)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /**
  4.  * MyTask class
  5. [15 more lines...]

Plain Code

<?php

/**
 * MyTask class
 */

class MyTask
{
    function __construct()
    {

    }
    
    function init()
        {
            //...
    }
}

?>

Untitled PHP (6-Aug @ 04:42)

Syntax Highlighted Code

  1. test

Plain Code

test

Untitled PHP (6-Aug @ 02:06)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo("'ello");
  4. ?>

Plain Code

<?php

echo("'ello");
?>

Untitled PHP (6-Aug @ 02:06)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo("'ello");
  4. ?>

Plain Code

<?php

echo("'ello");
?>

Untitled PHP (5-Aug @ 20:30)

Syntax Highlighted Code

  1. $var1 = "Hello";
  2. $var2 = "hello";
  3. $res = strcasecmp($var1, $var2);

Plain Code

$var1 = "Hello";
$var2 = "hello";
$res = strcasecmp($var1, $var2);

PHP Hello World (2-Aug @ 18:41)

kanuj

Syntax Highlighted Code

  1. <?
  2. echo 'Hello World';
  3. ?>

Plain Code

<?
echo 'Hello World';
?>

Untitled PHP (2-Aug @ 15:31)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "Foobar";
  4.  
  5. ?>

Plain Code

<?php 

echo "Foobar";

?>

Untitled PHP (2-Aug @ 15:30)

Syntax Highlighted Code

  1. <?php
  2.  
  3.   echo "Foobar";
  4.  
  5. ?>

Plain Code

<?php

  echo "Foobar";

?>

Untitled PHP (1-Aug @ 19:11)

Syntax Highlighted Code

  1. <?php
  2. print('Hello!');
  3. ?>

Plain Code

<?php
print('Hello!');
?>

Sliding scale value calc funciton (31-Jul @ 16:19)

foamcow

Syntax Highlighted Code

  1. function slidingScale($scale,$value){
  2.  
  3. krsort($scale);
  4.     foreach($scale as $k=>$v){
  5. [10 more lines...]

Plain Code

function slidingScale($scale,$value){

krsort($scale);
    foreach($scale as $k=>$v){
        if($value<=$k){
            $charge = $v;
        }
    }
    if(!is_numeric($charge)){
        pleasecall(); // or do something else
        die();
    } else {
        return $charge;
    }
}

Untitled PHP (30-Jul @ 18:09)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. echo "hello world";
  5. [2 more lines...]

Plain Code

<?php 


echo "hello world";


?>

Untitled PHP (29-Jul @ 20:05)

Syntax Highlighted Code

  1. <?

Plain Code

<?

Untitled PHP (29-Jul @ 19:13)

Syntax Highlighted Code

  1. <?php echo "hi"; ?>

Plain Code

<?php echo "hi"; ?>

Untitled PHP (29-Jul @ 17:02)

Syntax Highlighted Code

  1. // test
  2. function test($woop=true) {
  3.    $foo='bar';
  4. }

Plain Code

// test
function test($woop=true) {
   $foo='bar';
}

Untitled PHP (28-Jul @ 22:27)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'Hello World';

Plain Code

<?php

echo 'Hello World';

Untitled PHP (28-Jul @ 15:47)

Syntax Highlighted Code

  1. merci beaucoup

Plain Code

merci beaucoup

Untitled PHP (26-Jul @ 21:54)

Syntax Highlighted Code

  1. <?php
  2. //Give them the download
  3. require_once('includes/head.php');
  4. /****************************************************************************************
  5. [164 more lines...]

Plain Code

<?php
//Give them the download
require_once('includes/head.php');
/****************************************************************************************
*    This is the main file. This is the file that does all the processing once the user
*    presses the big red button. Almost all moding can be done here.
*    If you find more efficent ways of doing anything please send updated code.
****************************************************************************************/

$sys_folder = 'deploys'; //What folder all the deploys are in
$deploy_download = 'deploy_'.date('smd').rand(1,999); //What the folders will be named
$deploy_dir = $sys_folder.'/'.$deploy_download; //directory where deploy, deploys
$deploy_file = "index.html";

if($session !== '' && $session !== 'blank'){
    $project_name = $session;
}
else {
    $project_name = "deploy";
}

if(isset($_GET['misc_options_exe'])) {
    $deploy_file = "index.php";
}

mkdir($deploy_download); //make the the directory

$html_doctype = $_GET['html_version'];

if($html_doctype == 'xhtml_s' || $html_doctype == 'xhtml_t' ){
    $html_attr = 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"'; //If it's an XHTML document
}
elseif($html_doctype == 'html_s' || $html_doctype == 'html_t') {
    $html_attr = 'lang="en"'; //If its an HTML document
}

//Give the user the chosen html version
switch ($html_doctype) {
case 'xhtml_s':
    $html_doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
    break;
case 'xhtml_t':
    $html_doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
    break;
case 'html_s':
    $html_doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">';
    break;
case 'html_t':
    $html_doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">';
    break;
}

//If the user wants CSS go through the options and make a css folder
$css_post = $_GET['css'];
if($css_post == 'css_yes') {
    $css = '<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8" />'; //Put it in the template
    mkdir($deploy_download.'/css');
}
else{
    $css = '';
}

//If the user picks to create a CSS file...
if(isset($_GET['css_options'])){
    $css_options = $_GET['css_options'];
    switch($css_options) {
        case 'css_resets': //... and chooses the reset option, copy the reset file to the new location
            exec("cp -r files/CSS/reset.css ".$deploy_download."/css/style.css");
            break;

        case 'css_blank': //... ane chooses the blank option open the folder and create a new file named style.css
            $fh = fopen($deploy_download.'/css/style.css', 'w') or die("can't open file");
            fclose($fh); //close the file
            break;
        default:
            $css = '';
            break;
    }
}

//jQuery section
$j_version = '1.2.6'; //Update with new releases of jQuery
if(isset($_GET['jquery'])) {
    $j_compression = $_GET['jquery'];
    $jquery_post = $_GET['jquery_choice'];

    switch($j_compression) {
        case 'jquery_min':
            $j_compression = '.min';
            break;
        case 'jquery_pack':
            $j_compression = '.pack';
             break;
        case 'jquery_un':
            $j_compression = '';
             break;
    }

    //If the user wants jQuery put a script tag in the head, and make a js folder with the jQuery file inside.
    if ($jquery_post == 'jquery_yes'){
        $jquery = '<script type="text/javascript" src="js/jquery-'.$j_version.$j_compression.'.js"></script>';
        mkdir($deploy_download.'/js');
        exec('cp -r files/JavaScript/jQuery/jquery-'.$j_version.$j_compression.'.js '.$deploy_download.'/js/jquery-'.$j_version.$j_compression.'.js');
    }
    else {
        $jquery = '';
    }

}
else {
    $jquery = '';
}

if($project_name !== 'deploy'){
    $html_title = $project_name;
}
else {
    $html_title = 'Title';
}
//Create the html file
$html_temp = ''.$html_doctype.'

<html '.$html_attr.'>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>'.$html_title.'</title>
    '.$css.'
    '.$jquery.'
</head>

<body>
    
</body>
</html>
';

    $fh = fopen($deploy_download.'/'.$deploy_file, 'w') or die("can't open file"); //Open the new file
        fwrite($fh, $html_temp); //write the file
            fclose($fh); //close the file
    
    //Make some additional folders before it's too late if the user checked the following options.
    if(isset($_GET['misc_options_images'])){
        mkdir($deploy_download.'/images');
    }

    if(isset($_GET['misc_options_includes'])){
        mkdir($deploy_download.'/includes');
    }

    if(isset($_GET['misc_options_flash'])){
        mkdir($deploy_download.'/flash');
    }
    
    //Finish up by zipping the file and moving into the storage area, or sys folder.
    exec('zip -r '.$deploy_download.'/'.$project_name.'.zip '.$deploy_download.''); //zip the file
        rename($deploy_download, $deploy_dir);
    
    //Get rid of this project session
    session_destroy();
?>


        <a class="submit" href="<?php echo $deploy_dir.'/'.$project_name.'.zip'; ?>">Download</a><br />
        <p id="remember">Don't forget to bookmark this page. By bookmarking this page you create a shortcut that will instantly give you a download rather than filling out the form for a second time!</p>
        <?php include('includes/footer.php'); ?>

Untitled PHP (26-Jul @ 18:11)

Syntax Highlighted Code

  1. <td style="border-bottom:1px #cccccc solid">Details: <?=$mailing->mailing_details?><br />
  2.           Sent: <?=$mailing->date_sent?></td>
  3.           <td style="border-bottom:1px #cccccc solid"><input type="checkbox" name="received[]" id="received[]" />
  4.           Received</td>

Plain Code

<td style="border-bottom:1px #cccccc solid">Details: <?=$mailing->mailing_details?><br />
          Sent: <?=$mailing->date_sent?></td>
          <td style="border-bottom:1px #cccccc solid"><input type="checkbox" name="received[]" id="received[]" />
          Received</td>

Untitled PHP (26-Jul @ 14:56)

Syntax Highlighted Code

  1. function eat_biscuit() {
  2.   if  ($i) {
  3.     echo 'eat a biscuit';
  4.   }
  5. [3 more lines...]

Plain Code

function eat_biscuit() {
  if  ($i) {
    echo 'eat a biscuit';
  }
  else {
    echo 'you need to bake biscuits before eating them!';
  }
}

Untitled PHP (26-Jul @ 07:17)

Syntax Highlighted Code

  1. <?php
  2.  

Plain Code

<?php

phpinfo();

Untitled PHP (25-Jul @ 17:24)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "Hello World";
  4.  
  5. ?>

Plain Code

<?php

echo "Hello World";

?>

Untitled PHP (23-Jul @ 17:53)

Syntax Highlighted Code

  1. public function executeRefresh()
  2. {
  3.   $output = '[["title", "My basic letter"], ["name", "Mr Brown"]]';
  4.   $this->getResponse()->setHttpHeader("X-JSON", '('.$output.')');
  5. [4 more lines...]

Plain Code

public function executeRefresh()
{
  $output = '[["title", "My basic letter"], ["name", "Mr Brown"]]';
  $this->getResponse()->setHttpHeader("X-JSON", '('.$output.')');

  return sfView::HEADER_ONLY;
}

Untitled PHP (23-Jul @ 17:17)

Syntax Highlighted Code

  1. <?php
  2. echo $doc;
  3. ?>

Plain Code

<?php 
echo $doc;
?>

Untitled PHP (23-Jul @ 12:22)

Syntax Highlighted Code

  1. function posudko_name($id,$inf=69)
  2. {
  3.     $el=CIBlockElement::GetList(Array("SORT"=>"ASC"), Array("IBLOCK_ID"=>$inf));
  4.     while($arRes = $el->Fetch()){
  5. [12 more lines...]

Plain Code

function posudko_name($id,$inf=69)
{
    $el=CIBlockElement::GetList(Array("SORT"=>"ASC"), Array("IBLOCK_ID"=>$inf));
    while($arRes = $el->Fetch()){
        if($arRes['ID']==$id){
            $temp = explode("  ",$arRes['NAME']);
            $pr=CIBlockElement::GetProperty(69,$arRes['ID']); // берем свойства
                while($arPr = $pr->Fetch()){ // цикл просмотра свойств
                    switch($arPr['CODE'])
                    {
                        case 'opis': $i_posudo_name[0]=$temp[0]; $i_posudo_name[1]=$arPr['VALUE']; break;
                    }
                }
        }
    }
return $i_posudo_name;
}

Untitled PHP (23-Jul @ 10:25)

Syntax Highlighted Code

  1. <?
  2. echo 'Hi World';
  3. ?>

Plain Code

<?
echo 'Hi World';
?>

Untitled PHP (23-Jul @ 00:32)

Syntax Highlighted Code

  1. public function ajaxBaeControlAction()
  2.     {
  3.         $url = $this->view->url(array('controller'=>'cart', 'action'=>'ajax-bae-form'));
  4.        
  5. [13 more lines...]

Plain Code

public function ajaxBaeControlAction()
    {
        $url = $this->view->url(array('controller'=>'cart', 'action'=>'ajax-bae-form'));
        
        // $this->ajaxBaeFormAction();
        
        foreach ($this->cart_session->items as $item_id => $bae_data)
        {
            if (is_array($bae_data))
            {
                jQuery::jQuery('p#bae_' . $item_id)->html('<a href="#" onclick="javascript:$.php(\'' . $url . $this->view->get_requests_string . '\');return false;">Estimate Built, click to edit</a>');
            }
            else
            {
                jQuery::jQuery('p#bae_' . $item_id)->html('<a href="#" onclick="javascript:$.php(\'' . $url . $this->view->get_requests_string . '\');return false;">+ Build-An-Estimate</a>');
            }
        }
    }

fcgdfgdf (22-Jul @ 19:37)

Syntax Highlighted Code

  1. echo "ddd";
  2. $d = 12;
  3.  

Plain Code

echo "ddd";
$d = 12;

Untitled PHP (22-Jul @ 15:28)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. echo "hello";
  5. ?>

Plain Code

<?php


echo "hello";
?>

Untitled PHP (21-Jul @ 19:18)

Syntax Highlighted Code

  1. <?php
  2.     echo 'test';
  3. ?>

Plain Code

<?php
    echo 'test';
?>

Untitled PHP (20-Jul @ 15:17)

Syntax Highlighted Code

  1. <?php
  2. echo ('this is a test');
  3. ?>

Plain Code

<?php
echo ('this is a test');
?>

Untitled PHP (19-Jul @ 08:38)

Syntax Highlighted Code

  1. <?php
  2. echo "你是一隻豬";
  3. ?>

Plain Code

<?php
echo "你是一隻豬";
?>

Untitled PHP (18-Jul @ 02:47)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpinfo();
?>

demo (17-Jul @ 07:32)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'sarbesh' ;
  4.  
  5. ?>

Plain Code

<?php

echo 'sarbesh' ;

?>

Untitled PHP (17-Jul @ 05:41)

Syntax Highlighted Code

Plain Code

phpinfo();

Untitled PHP (16-Jul @ 21:52)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpinfo();
?>

Untitled PHP (16-Jul @ 17:15)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class foo
  4. {
  5. [7 more lines...]

Plain Code

<?php

class foo
{

    public function __construct ()
    {
        echo "test";
    }
}

?>

Untitled PHP (15-Jul @ 08:23)

Syntax Highlighted Code

  1. http://ejohn.org/apps/rss2json/?url=http://ejohn.org/index.rdf

Plain Code

http://ejohn.org/apps/rss2json/?url=http://ejohn.org/index.rdf

Untitled PHP (14-Jul @ 08:08)

Syntax Highlighted Code

  1. asasa

Plain Code

asasa

Untitled PHP (14-Jul @ 03:23)

Syntax Highlighted Code

  1. dDDF

Plain Code

dDDF

Untitled PHP (12-Jul @ 21:29)

Syntax Highlighted Code

  1. <?php
  2. echo "bonjour"
  3. ?>

Plain Code

<?php
echo "bonjour"
?>

Untitled PHP (12-Jul @ 12:12)

Syntax Highlighted Code

  1. <?php
  2. if (empty($_POST))
  3. {
  4.     $form_ok = true;
  5. [5 more lines...]

Plain Code

<?php
if (empty($_POST))
{
    $form_ok = true;
    if (isset($_REQUEST['test']) && !empty(isset($_REQUEST['test']))
    {
        //do stuff
    }
}
?>

Untitled PHP (12-Jul @ 08:27)

Syntax Highlighted Code

  1. echo "Nice work";

Plain Code

echo "Nice work";

Untitled PHP (11-Jul @ 12:32)

Syntax Highlighted Code

  1. <?php
  2.  
  3. prwemrpwemr
  4.  
  5. ?>

Plain Code

<?php

prwemrpwemr

?>

Untitled PHP (11-Jul @ 09:58)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "Hello World!";
  4.  
  5. ?>

Plain Code

<?php

echo "Hello World!";

?>

Untitled PHP (10-Jul @ 23:04)

Syntax Highlighted Code

  1. <?PHP echo "Hellp"; ?>

Plain Code

<?PHP echo "Hellp"; ?>

Untitled PHP (10-Jul @ 23:04)

Syntax Highlighted Code

  1. <?php echp Hello ?>

Plain Code

<?php echp Hello ?>

Untitled PHP (10-Jul @ 09:01)

Syntax Highlighted Code

  1. <?php
  2. echo "Hello world";
  3. // comment goes here..
  4. ?>

Plain Code

<?php 
echo "Hello world";
// comment goes here..
?>

Untitled PHP (10-Jul @ 07:43)

Syntax Highlighted Code

  1. fasd

Plain Code

fasd

Untitled PHP (10-Jul @ 07:43)

Syntax Highlighted Code

  1. <?
  2.  
  3. if(empty($_GET['pagina']))
  4.     header("location: ../../index.php?pagina=nieuws/lezen");
  5. [180 more lines...]

Plain Code

<?

if(empty($_GET['pagina']))
    header("location: ../../index.php?pagina=nieuws/lezen");

$select = "SELECT * FROM nieuws_berichten WHERE id = '".$_GET['id']."'";
$query = mysql_query($select)or die(mysql_error());
$list = mysql_fetch_object($query);

if(mysql_num_rows($query) == 0)
{
    echo "<div class=\"titel\">Fout</div>";
    echo "<div class=\"bericht\">Dit bericht bestaat niet... <a href=\"javascript:history.go(-1)\">Ga terug</a></div>";
}
else
{
    $bericht = ubbvervangen($list->bericht);
    $bericht = smiliesvervangen($bericht);
    $bericht = wordwrap($bericht, 100);

    $onderwerp = $list->onderwerp;
    $onderwerp = htmlspecialchars($onderwerp);
    $onderwerp = ucwords($onderwerp);

    $select2 = "SELECT * FROM leden_gegevens WHERE id = '".$list->lidid."'";
    $query2 = mysql_query($select2)or die(mysql_error());
    $list2 = mysql_fetch_object($query2);

    $select5 = "SELECT * FROM nieuws_reacties WHERE nieuwsid = '".$list->id."'";
    $query5 = mysql_query($select5)or die(mysql_error());

    $gebruikersnaam = $list2->gebruikersnaam;
    $gebruikersnaam = strip_tags($gebruikersnaam);
    $gebruikersnaam = ucwords($gebruikersnaam);

    if ($list2->status == "Beheerder")
        $status = "<font color=\"#FF0000\">Beheerder</font>";
    elseif ($list2->status == "SuperModerator")
        $status = "<font color=\"#000080\">SuperModerator</font>";
    elseif ($list2->status == "Moderator")
        $status = "<font color=\"#0000FF\">Moderator</font>";
    elseif ($list2->status == "Verbannen")
        $status = "<font color=\"#008000\">Verbannen</font>";
    else
        $status = "Lid";

    if (file_exists("paginas/leden/avatar/".$list2->id.".jpg"))
        $avatar = "<img src=\"paginas/leden/avatar/".$list2->id.".jpg\" border=\"0\">";
    else
        $avatar = "";

    $select4 = "SELECT * FROM leden_gegevens WHERE gebruikersnaam = '".$_COOKIE['gebruikersnaam']."'";
    $query4 = mysql_query($select4)or die(mysql_error());
    $list4 = mysql_fetch_object($query4);


    if(empty($_COOKIE['gebruikersnaam']))
        $menu = "";
    elseif ($list4->status == "Beheerder" || $list4->status == "Moderator" || $list4->status == "SuperModerator")
        $menu = "<a href=\"index.php?pagina=nieuws/reageren&id=".$list->id."\"><img alt=\"Reageren\" src=\"afbeeldingen/icons/icon_reageren.gif\"></a> <a href=\"index.php?pagina=nieuws/bewerken&id=".$list->id."\"><img alt=\"Bewerken\" src=\"afbeeldingen/icons/icon_bewerk.gif\"></a> <a href=\"javascript:beheer('Weet je zeker dat je dit bericht wilt verwijderen?','index.php?pagina=nieuws/verwijderen&id=".$list->id."');\"><img alt=\"Verwijderen\" src=\"afbeeldingen/icons/icon_verwijder.gif\"></a>";
    else
        $menu = "<a href=\"index.php?pagina=nieuws/reageren&id=".$list->id."\"><img alt=\"Reageren\" src=\"afbeeldingen/icons/icon_reageren.gif\"></a>";

    echo "<h3  class=\"onderwerp\">".$onderwerp."</h3>";
    echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
    echo "<td width=\"100%\" valign=\"top\">";
    echo "<div class=\"nieuwsbericht\">Door: <a href=\"index.php?pagina=leden/profiel&id=".$list3->id."\">".$gebruikersnaam."</a> | Datum: ".$list->datum."<br><br></div>";
    echo "".$bericht."<br><br>";
    echo "<div class=\"vorige\"><a href=\"#\" onclick=\"history.go(-1)\">« Ga terug</a></div>";
    echo "<div class=\"opties\">".$menu."</div>";
    echo "</table>";
    echo "<hr>";

        echo "<h3 class=\"reacties\"><b>Reacties (".mysql_num_rows($query5).")</b></h3>";


    $select2 = "SELECT * FROM nieuws_reacties WHERE nieuwsid = '".$list->id."'";
    $query2 = mysql_query($select2)or die(mysql_error());

    $aantalpagina = ceil(mysql_num_rows($query2) / 20);

    if($aantalpagina == 1)
    {
        $vorige = "&#171; Vorige";
        $volgende = "Volgende &#187;";
        $begin = "0";
    }
    elseif(empty($_GET['p']) || $_GET['p'] == "1")
    {
        $vorige = "&#171; Vorige";
        $volgende = "<a href=\"index.php?pagina=nieuws/lezen&id=".$_GET['id']."&p=2\">Volgende</a> &#187;";
        $begin = "0";
    }
    elseif($_GET['p'] == $aantalpagina)
    {
        $vorige = "&#171; <a href=\"index.php?pagina=nieuws/lezen&id=".$_GET['id']."&p=".($aantalpagina -1)."\">Vorige</a>";
        $volgende = "Volgende &#187;";
        $begin = $website['leden'] * ($aantalpagina -1);
    }
    else
    {
        $vorige = "&#171; <a href=\"index.php?pagina=nieuws/lezen&id=".$_GET['id']."&p=".($_GET['p'] -1)."\">Vorige</a>";
        $volgende = "<a href=\"index.php?pagina=nieuws/lezen&id=".$_GET['id']."&p=".($_GET['p'] +1)."\">Volgende</a> &#187;";
        $begin = 20 * ($_GET['p'] -1);
    }

    for($i = 1; $i <= $aantalpagina; $i++)
    {
        if($aantalpagina == "1")
            $paginas .= "1 | ";
        else
            if($_GET['p'] == $i)
                $paginas .= "".$i." | ";
            else
                $paginas .= "<a href=\"index.php?pagina=nieuws/lezen&id=".$_GET['id']."&p=".$i."\">".$i."</a> | ";
    }

    $navigatie = "".$vorige." | ".$paginas." ".$volgende."";

    $select2 = "SELECT * FROM nieuws_reacties WHERE nieuwsid = '".$list->id."' ORDER BY id ASC LIMIT ".$begin.", 20";
    $query2 = mysql_query($select2)or die(mysql_error());


    while ($list2 = mysql_fetch_object($query2))
    {
        $bericht = ubbvervangen($list2->bericht);
        $bericht = smiliesvervangen($bericht);
        $bericht = wordwrap($bericht, 100);

        $select3 = "SELECT * FROM leden_gegevens WHERE id = '".$list2->lidid."'";
        $query3 = mysql_query($select3)or die(mysql_error());
        $list3 = mysql_fetch_object($query3);

        $gebruikersnaam = $list3->gebruikersnaam;

        if ($list3->status == "Beheerder")
            $gebruikersnaam = "<font color=\"#FF0000\">".$gebruikersnaam."</font>";
        elseif ($list3->status == "SuperModerator")
            $status = "<font color=\"#000080\">SuperModerator</font>";
        elseif ($list3->status == "Moderator")
            $status = "<font color=\"#0000FF\">Moderator</font>";
        elseif ($list3->status == "Verbannen")
            $status = "<font color=\"#008000\">Verbannen</font>";
        else
            $status = "Lid";


        $select5 = "SELECT * FROM leden_gegevens WHERE gebruikersnaam = '".$_COOKIE['gebruikersnaam']."'";
        $query5 = mysql_query($select5)or die(mysql_error());
        $list5 = mysql_fetch_object($query5);

        if (file_exists("paginas/leden/avatar/".$list3->id.".jpg"))
            $avatar = "<img src=\"paginas/leden/avatar/".$list3->id.".jpg\" border=\"0\">";
        else
            $avatar = "";

        if(empty($_COOKIE['gebruikersnaam']))
            $menu = "";
        elseif ($list5->status == "Beheerder" || $list5->status == "Moderator" || $list5->status == "SuperModerator")
            $menu = "<a href=\"index.php?pagina=nieuws/reageren&id=".$list->id."\"><img alt=\"Reageren\" src=\"afbeeldingen/icons/icon_reageren.gif\"></a> <a href=\"index.php?pagina=nieuws/bewerken&reactieid=".$list2->id."\"><img alt=\"Bewerken\" src=\"afbeeldingen/icons/icon_bewerk.gif\"></a> <a href=\"javascript:beheer('Weet je zeker dat je dit bericht wilt verwijderen?','index.php?pagina=nieuws/verwijderen&reactieid=".$list2->id."');\"><img alt=\"Verwijderen\" src=\"afbeeldingen/icons/icon_verwijder.gif\"></a>";
        elseif( $list5->geruikersnaam == $list3->lidid )
            $menu = "<a href=\"index.php?pagina=nieuws/bewerken&reactieid=".$list2->id."\"><img alt=\"Bewerken\" src=\"afbeeldingen/icons/icon_bewerk.gif\"></a> <a href=\"index.php?pagina=nieuws/reageren&id=".$list->id."\"><img alt=\"Reageren\" src=\"afbeeldingen/icons/icon_reageren.gif\"></a>";
        else
            $menu = "<a href=\"index.php?pagina=nieuws/reageren&id=".$list->id."\"><img alt=\"Reageren\" src=\"afbeeldingen/icons/icon_reageren.gif\"></a>";



        echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
        echo "<tr>";
        echo "<td width=\"20%\" valign=\"top\"><b><a href=\"index.php?pagina=leden/profiel&id=".$list3->id."\">".$gebruikersnaam."</a></b><br><br>";
        echo "".$avatar."";
        echo "<br></td>";
        echo "<td width=\"75%\" valign=\"top\">".$bericht."<br><br></td>";
        echo "</tr>";
        echo "<tr>";
        echo "<td><br> ".$list2->datum."</td>";
        echo "<td align=\"right\">".$menu."</td>";
        echo "</tr>";
        echo "</table><hr>";


    }
}
?>

Untitled PHP (9-Jul @ 19:32)

Syntax Highlighted Code

  1. function alpha_rotate($src_RGB, $src_alpha, $angle, $PNGsupport){
  2.        global $r0, $g0, $b0;
  3.  
  4.        if($angle != 0) {
  5. [30 more lines...]

Plain Code

function alpha_rotate($src_RGB, $src_alpha, $angle, $PNGsupport){
       global $r0, $g0, $b0;

       if($angle != 0) {
         $src_RGB = imagerotate($src_RGB, $angle, 0x000000);
         $src_alpha = imagerotate($src_alpha, $angle, 0x000000);
       }

       imagealphablending($src_RGB, false);
       
       for ($theX=0;$theX<imagesx($src_RGB);$theX++){
           for ($theY=0;$theY<imagesy($src_RGB);$theY++){
   
               $rgb = imagecolorat($src_RGB,$theX,$theY);
               $r = ($rgb >> 16) & 0xFF;
               $g = ($rgb >> 8) & 0xFF;
               $b = $rgb & 0xFF;
               
               $rgb = imagecolorat($src_alpha,$theX,$theY);
               $a = $rgb & 0xFF;
               $a = 127-floor($a/2);
               $t = $a/128.0;

               if($PNGsupport) {
                 $myColour = imagecolorallocatealpha($src_RGB,$r,$g,$b,$a);
               } else {
                 $myColour = imagecolorallocate($src_RGB,$r*(1.0-$t)+$r0*$t,$g*(1.0-$t)+$g0*$t,$b*(1.0-$t)+$b0*$t);
               }
               imagesetpixel($src_RGB, $theX, $theY, $myColour);    
           }
       }

       return $src_RGB;
}

Untitled PHP (4-Jul @ 21:59)

Syntax Highlighted Code

  1. <?php
  2. echo $_SERVER['PHP_SELF'];
  3. ?>

Plain Code

<?php
echo $_SERVER['PHP_SELF'];
?>

Untitled PHP (4-Jul @ 19:27)

Syntax Highlighted Code

  1. index.php:
  2.  
  3. <?php
  4. require_once('includes/begin.php');
  5. [25 more lines...]

Plain Code

index.php:

<?php
require_once('includes/begin.php');
?>

___

includes/begin.php:
<?php
//Database configfile
require_once('config/database.php');
?>

___

Wanneer index.php in de root staat werkt 't allemaal perfect..

Wanneer ik index.php verplaats naar de map

admin zou index.php dit worden:
<?php
require_once('../includes/begin.php');
?>


echter krijg ik dan deze error:

Warning: require_once(config/database.php) [function.require-once]: failed to open stream: No such file or directory in D:\Projecten\cms\includes\begin.php on line 9

Untitled PHP (4-Jul @ 06:18)

Syntax Highlighted Code

  1. <?php
  2. echo 'test'.$foo;
  3. ?>

Plain Code

<?php 
echo 'test'.$foo; 
?>

Untitled PHP (3-Jul @ 20:46)

Syntax Highlighted Code

  1. $i = 12;

Plain Code

$i = 12;

Untitled PHP (3-Jul @ 16:41)

Syntax Highlighted Code

  1. yttfg
  2. hdfhdfh

Plain Code

yttfg
hdfhdfh

Untitled PHP (3-Jul @ 11:50)

Syntax Highlighted Code

  1. sadasdd

Plain Code

sadasdd

Untitled PHP (2-Jul @ 22:21)

Syntax Highlighted Code

  1. dfsgfdg

Plain Code

dfsgfdg

Untitled PHP (2-Jul @ 22:20)

Syntax Highlighted Code

  1. echo 'hello world';

Plain Code

echo 'hello world';

Untitled PHP (2-Jul @ 16:01)

Syntax Highlighted Code

  1. while (true)
  2. {
  3. \techo 'Hi';
  4. }

Plain Code

while (true)
{
\techo 'Hi';
}

Untitled PHP (2-Jul @ 13:59)

Syntax Highlighted Code

  1. <?
  2. echo('hi');
  3. ?>

Plain Code

<?
echo('hi');
?>

Untitled PHP (1-Jul @ 16:43)

Syntax Highlighted Code

  1. fgfgfgg

Plain Code

fgfgfgg

Untitled PHP (1-Jul @ 16:04)

Syntax Highlighted Code

  1. <?
  2. $something = "something"
  3.  
  4. ?>

Plain Code

<?
$something = "something"

?>

Untitled PHP (30-Jun @ 21:52)

Syntax Highlighted Code

  1. $mavar = 'steak';
  2. echo $mavar;

Plain Code

$mavar = 'steak';
echo $mavar;

Untitled PHP (30-Jun @ 15:57)

Syntax Highlighted Code

  1. echo "korv";

Plain Code

echo "korv";

Untitled PHP (30-Jun @ 13:11)

Syntax Highlighted Code

  1. <?php
  2. if($a===$b) {
  3. }
  4. ?>

Plain Code

<?php
if($a===$b) {
mysql_connect();
}
?>

Untitled PHP (30-Jun @ 13:10)

Syntax Highlighted Code

  1. asdadasdasd

Plain Code

asdadasdasd

Untitled PHP (29-Jun @ 13:12)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $e = test();
  4.  
  5. [3 more lines...]

Plain Code

<?php

$e = test();

echo "salut"

?>

Untitled PHP (29-Jun @ 12:13)

Syntax Highlighted Code

  1. echo "aa";

Plain Code

echo "aa";

Untitled PHP (28-Jun @ 21:48)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 1;
  4. echo 1;echo 1;echo 1;
  5. [10 more lines...]

Plain Code

<?php

echo 1;
echo 1;echo 1;echo 1;
echo 1;
echo 1;
echo 1;
echo 1;
echo 1;echo 1;echo 1;echo 1;echo 1;echo 1;




?>

Untitled PHP (25-Jun @ 04:13)

Syntax Highlighted Code

  1. <?php
  2. // 7e6595dae6c06c29dcc107d88fa93e46
  3. class Home extends Controller {
  4.     public function __construct(){
  5. [11 more lines...]

Plain Code

<?php
// 7e6595dae6c06c29dcc107d88fa93e46
class Home extends Controller {
    public function __construct(){
        // INTANCIA O CONTRUCTOR DA CLASSE PAI
        parent::Controller();
        // INSTANCIA O SCAFFOLDING
        $this->load->scaffolding( 'usuarios' );
    }

    public function index(){
        // CARREGA O ARQUIVO DE TEMPALTE
        $this->load->view('home');
    }
}
?>

Untitled PHP (24-Jun @ 20:01)

Syntax Highlighted Code

  1. echo 'hello';

Plain Code

echo 'hello';

Untitled PHP (24-Jun @ 12:17)

Syntax Highlighted Code

  1. blah

Plain Code

blah

Untitled PHP (23-Jun @ 21:21)

Syntax Highlighted Code

  1. <?php echo 'hello world' ?>

Plain Code

<?php echo 'hello world' ?>

Untitled PHP (23-Jun @ 13:15)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'Hello developer';
  4.  
  5. ?>

Plain Code

<?php

echo 'Hello developer';

?>

Untitled PHP (23-Jun @ 03:38)

Syntax Highlighted Code

  1. $comment['body']=strip_tags($this->input->post('comment'),$allowed_tag);;
  2.                     $comment['page_id']=$this->input->post('page_id');
  3.                     $comment['tanggal']=time();
  4.                    
  5. [5 more lines...]

Plain Code

$comment['body']=strip_tags($this->input->post('comment'),$allowed_tag);;
                    $comment['page_id']=$this->input->post('page_id');
                    $comment['tanggal']=time();
                    
                    $this->db->insert("comments",$comment);
                    //echo '{ status:1, message: "'..'" }';
                    $return['status']=1;
                    $return['message']=$comment;
                    $return['message']['tanggal']= date('d/m/y H:M',$return['message']['tanggal']);
                    echo json_encode($return);

Untitled PHP (22-Jun @ 14:23)

troycawley

Syntax Highlighted Code

  1.    <div id="what_matters" class="clear"><ul id="footer_links">
  2.         <?php wp_list_pages('title_li=&depth=1&include=3,5,6,7,8,18,43,46,79' ); ?>
  3.       </ul><strong><img src="/images/logo_whatmatters_gold.gif" alt="What Matters &#174;" height="17" width="134" /></strong></div>
  4.     <div id="footer" class="bg1">
  5. [21 more lines...]

Plain Code

    <div id="what_matters" class="clear"><ul id="footer_links">
        <?php wp_list_pages('title_li=&depth=1&include=3,5,6,7,8,18,43,46,79' ); ?>
      </ul><strong><img src="/images/logo_whatmatters_gold.gif" alt="What Matters &#174;" height="17" width="134" /></strong></div>
    <div id="footer" class="bg1">
        <p>All contents copyright &copy; 2007-<?php echo date('Y');?> <?php bloginfo('name'); ?>. <?php wp_register("",""); ?> <?php wp_loginout(); ?><br />
      <!--small><a href="http://validator.w3.org/check?uri=referer">xhtml</a> <a href="http://jigsaw.w3.org/css-validator/check/referer">css</a--> Site by: <a href="http://camwebdesign.com/">CAM Web Design</a></small></p>
    </div>
  </div><?php /* end #page */ ?>
</div><?php /* end #wrap */ ?>
<?php wp_footer(); ?>

<script src="/js/uwcmc.js?v=061408" type="text/javascript"></script>
<script src="/js/thickbox.js" type="text/javascript"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1406117-4");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>

Untitled PHP (22-Jun @ 11:24)

Syntax Highlighted Code

  1. <?
  2. require('includes/lib/dbconnect.inc');
  3. require('includes/classes/HtzCart.php');
  4. require('assets/snippets/hertz/view.php');
  5. ?>

Plain Code

<?
require('includes/lib/dbconnect.inc');
require('includes/classes/HtzCart.php');
require('assets/snippets/hertz/view.php');
?>

Untitled PHP (21-Jun @ 23:04)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $font-face = $_POST['face'];
  4.  
  5. [2 more lines...]

Plain Code

<?php

$font-face = $_POST['face'];

?>

Untitled PHP (21-Jun @ 15:29)

Syntax Highlighted Code

  1. gf
  2. fj
  3. fh
  4. j
  5. [1 more lines...]

Plain Code

gf
fj
fh
j
hjfhj
gfhjfjf jhjfhj

Untitled PHP (21-Jun @ 05:12)

Syntax Highlighted Code

  1. <?php echo "world"; ?>

Plain Code

<?php echo "world"; ?>

Untitled PHP (20-Jun @ 19:30)

Syntax Highlighted Code

  1. echo "Hello";

Plain Code

echo "Hello";

Untitled PHP (20-Jun @ 00:09)

Syntax Highlighted Code

  1. hghg

Plain Code

hghg

Untitled PHP (19-Jun @ 22:26)

Syntax Highlighted Code

  1. echo "hello world";

Plain Code

echo "hello world";

Untitled PHP (18-Jun @ 13:19)

Syntax Highlighted Code

  1. <?php
  2.    echo "Hello world";
  3. ?>

Plain Code

<?php
   echo "Hello world";
?>

Untitled PHP (17-Jun @ 09:11)

Syntax Highlighted Code

  1. <?php
  2. echo rand(0,9999);
  3.  

Plain Code

<?php
echo rand(0,9999);

Untitled PHP (16-Jun @ 23:38)

Syntax Highlighted Code

  1. fasdfasdf

Plain Code

fasdfasdf

PHP quote safe function (16-Jun @ 13:25)

logicbox

Syntax Highlighted Code

  1. //quote safe
  2. function q($value) {
  3.    global $db;
  4.    $db->connect(); //needs db connection
  5. [7 more lines...]

Plain Code

//quote safe 
function q($value) {
   global $db;
   $db->connect(); //needs db connection
   if (get_magic_quotes_gpc())
       $value = stripslashes($value);

   $value = "'" . mysql_real_escape_string($value) . "'";
   return $value;
}

//USAGE: $sql = "INSERT INTO table (field) VALUES (".q($value).")";

Untitled PHP (15-Jun @ 09:47)

Syntax Highlighted Code

  1. if ( $session->isLoggedIn() ){
  2.     $result = $db->listPublishedNews(5, 0);
  3.  
  4.         if ( isset($result) ){
  5. [9 more lines...]

Plain Code

if ( $session->isLoggedIn() ){
    $result = $db->listPublishedNews(5, 0);

        if ( isset($result) ){
            for ($i=0; $i<count($result); $i++){
                $result[$i]['published'] = strtotime( $result[$i]['published'] );
            }
            $smarty->assign('news',$result);
            $smarty->assign('head', "Aktualności Ligi Typerów");

            $workspace .= $smarty->fetch("news.xhtml");
            $smarty->clear_assign('head');
        }

Untitled PHP (15-Jun @ 03:14)

Syntax Highlighted Code

  1. <?php
  2.  
  3. class Tcms {
  4.     private $cmsTable='cms';     //nazwa tabeli w której trzymane sa dane z dla CMS
  5. [217 more lines...]

Plain Code

<?php

class Tcms {
    private $cmsTable='cms';     //nazwa tabeli w której trzymane sa dane z dla CMS
    private $photoCmsTable='cms_photo';    //nazwa tabeli z fotkami
    private $sectionCmsTable='cms_section';        //tabela kategorii
    private $mysql;    //mysql obj
    private $sections;
    public function __construct()
    {
        $this->mysql= new TmySql() or die('Connection Error in Tcms object!');
    }
    public function getAllArticle()
    {
        
        $query="SELECT * FROM ".$this->sectionCmsTable." ORDER BY id, ordering";    //ladowanie kategorii
        $result=mysql_query($query);
        while ($row=mysql_fetch_array($result))
        {
            //$this->sections[$row['id']]['name']=$row['name'];    //ladowanie do tablicy [id_dzialu]=nazwa_dzialu
            $this->sections[$row['id']]['parent']=$row['parent_id'];    //ladowanie rodzica dla kategorii
            $this->sections[$row['id']]['title']=$row['title'];    // tytul kategorii
            $this->sections[$row['id']]['link']=$row['link'];    // etykieta linku do Apache rewrite
            $this->sections[$row['id']]['order']=$row['ordering'];    // porzadek
            $this->sections[$row['id']]['visible']=$row['visible'];    // tytul kategorii
            

        }
        //var_dump($this->sections);
    }
    /***
     * Kontrolka dodawania elemntu CMS
     * 
     */
    public function cmsAdminAddPanel()
    {
        //przetwarza ajaxowe wywoanie 
        if ($_GET['action']=='addCMS')
        {
            var_dump($_POST);
            return true;
        }
        //pokazuje formularz dodawania artykulu
        $ret.=$this->cmsAddForm();
        $ret.='
        <script type="text/javascript">
        $(function(){
        $("#CMSaddForm").submit(function(){
                var inputs=[];
                $('#CMScont').val(tinyMCE.get('CMScont').getContent());
                //tinyMCE.triggerSave;
                $(":input",this).each(function() {
                    inputs.push(this.name+"="+escape(this.value));
                })
            jQuery.ajax({
                data: inputs.join("&"),
                type: "POST",
                url: this.getAttribute("action"),
                timeout: 2000,
                success: function(r) {
                    alert(r);
                    
                    }
            });
        return false;
        })})
        </script>
        ';
        return $ret;
        
    }
    private function cmsAddForm()
    {
        $ret.='<div id="cmsAddFormAjax"><form action="ajax/addCMSItem.php?action=addCMS" method="post" method="" class="CMSaddForm" id="CMSaddForm">';
        $ret.='<fieldset>
              <legend>Add new CMS Item</legend>';
        $ret.= '<div><label class="req">Title:<input name="title" type="text"></label></div>';
        $ret.='<div><label >Choose category:'.$this->getCategorySelect().'</label></div>';
        $ret.='<div><label >Link:<input name="link" type="text"></label></div>';
        $ret.='<div><label>Content:<textarea id="CMScont" rows="15" cols="30" name="cont" style="height:300px;border:0px">&nbsp;</textarea></label></div>';
        $ret.='</fieldset>
        <fieldset>
              
              <input type="submit" value="SAVE" class="button"  />
              <input type="reset" name="reset" value="Reset" class="button" />
          </fieldset>
        </form></div>
        <input type="button" value="add" id="testbut" />
            <script type="text/javascript">
            
            $("#testbut").bind("click",function(){
            tinyMCE.getInstanceById("CMScont").getBody().innerHTML=tinyMCE.getInstanceById("CMScont").getBody().innerHTML+'<img src="http://lpm.wiw.com.pl/img/tmp/slonecz.jpg"  style="float:left;display:block; margin:6px 14px 6px 0"/>'
            
            });
                </script>
        ';
        
        return $ret;
    }
    /**
     * Tworzy select z kategori CMS
     *
     * @return unknown
     */
    private function getCategorySelect()
    {
        $query = "SELECT * FROM ".$this->sectionCmsTable." ORDER BY title";
        $ret='';
        $r=mysql_query($query);
        if (!$r) return false;
        $ret.= '<select name="category">';
        while ($row=mysql_fetch_array($r))
        {
            //sprawdza czy na poczatku jestr znacznik reserved i usuwa go
            if (substr($row['title'],0,10)=='{reserved}') $row['title']=substr($row['title'],10);
            $ret.='<option value="'.$row['id'].'">'.$row['title'].'</option>';
        }
        $ret.='</select>';
        return $ret;
    }
    
    
    
    
    
    
    /**
     * laduje modul do templata i zwraca dokument html
     * $tpl => plik z templatem automatycznie dodaje tpl.php
     * $modules => tablica modulów
     * $default => ladownanie domyslnych modulow
     * 
     * @param filepath $tpl
     * @param array $modules
     * @param boolean $default
     * @return htmlDoc
     */
    public function pharser($tpl,$modules,$default=true)
    {

    $tpl=file_get_contents($_SERVER["DOCUMENT_ROOT"].$tpl.'.tpl.php');

    if (!$tpl) {echo 'dupa'; return false;}
    preg_match_all( '/[{]w+[}]/', $tpl, $wynik );
    //jesli lewa sekscja nie ustawiona to ładuje domyślną
    if ($default===true) 
    {
        if (!isset($modules['left'])) 
        {
            $menu=new Tcal();
            $modules['left']=$menu->apartamentMenu(); 
        }
        if (!isset($modules['jsfiles'])) $modules['jsfiles']='<script type="text/javascript" src="js/jquery.js"></script>';
    }
    foreach ($wynik[0] as $wart)
            {
                $mod=substr($wart,1,strlen($wart)-2);                
                if (isset($modules[$mod])) 
                {
                    $tpl=str_replace('{'.$mod.'}',$modules[$mod], $tpl);
                } else { $tpl=str_replace('{'.$mod.'}','', $tpl); }
                
            }
        
        return $tpl;
    
    }    
    
    
    
    
    
    
    /*public function test()
    {
        foreach ( $this->sections as $index=>$value )
        {
            ++$i;
            //var_dump($this->sections[$index]);
            //echo $this->sections[$index]['parent']. "<br/>";
            if ($this->sections[$index]['parent']==null) $parent[$i]=$index;
            else 
            {
                foreach ($this->sections as $indexsub=>$valuesub)
                {
                    //echo $valuesub['parent']." - $index <br/>";
                    if ($valuesub['parent']==$value['parent']) $sub[$index][$this->sections[$index]['order']]=$indexsub;
                }
                //var_dump($sub[$index]);
                krsort($sub[$index]);
                $parent[$i]=$index;
                $child[$i]=$sub[$index];
                
            }
            
            
        }
        
        //wywal na ekran
        print_r($parent);
        foreach ($parent as $index=>$main)
        {
            echo "<h5>".$main['title']."</h5>";
            if ($sub[$index])
            {
                echo "<ul>";
                foreach ($child[$index] as $value) {

                    echo "<li>".$this->sections[$value]['title']."</li>";
                    
                }
                echo "</ul><hr>";
                
            }
        }
        
    }
*/
}

?>

Untitled PHP (13-Jun @ 23:44)

Syntax Highlighted Code

Plain Code

extract();

Untitled PHP (13-Jun @ 22:58)

Syntax Highlighted Code

  1. print "hello";
  2.  
  3.  

Plain Code

print "hello";

Untitled PHP (13-Jun @ 19:33)

Syntax Highlighted Code

  1. <?php
  2.  
  3. /*
  4. Comentarios
  5. */

Plain Code

<?php

/*
Comentarios
*/

Untitled PHP (12-Jun @ 11:11)

Syntax Highlighted Code

  1. echo "lol";

Plain Code

echo "lol";

Untitled PHP (11-Jun @ 11:24)

Syntax Highlighted Code

  1. asdf
  2. sad
  3. f
  4. asdf
  5. [2 more lines...]

Plain Code

asdf
sad
f
asdf
sa
df
<b>asdf</b>

Untitled PHP (11-Jun @ 00:53)

Syntax Highlighted Code

  1. hello

Plain Code

hello 

Untitled PHP (10-Jun @ 23:15)

Syntax Highlighted Code

  1. àé$àéà
  2. $

Plain Code

àé$àéà
$

Untitled PHP (10-Jun @ 10:58)

Syntax Highlighted Code

  1. <?php
  2. echo "yo man";
  3. ?>

Plain Code

<?php
echo "yo man";
?>

Untitled PHP (9-Jun @ 17:13)

Syntax Highlighted Code

  1. $box = new MessageBox($this->g_id, $this->g_db);
  2. $msg = $box->getMessages(MessageBox::TYPE_GROUPCOMMENT, null, $this->g_id);
  3. return (is_array($msg)) ? count($msg) : 0;
  4.  

Plain Code

$box = new MessageBox($this->g_id, $this->g_db);
$msg = $box->getMessages(MessageBox::TYPE_GROUPCOMMENT, null, $this->g_id);
return (is_array($msg)) ? count($msg) : 0;

Untitled PHP (9-Jun @ 17:12)

Syntax Highlighted Code

  1. 1212312
  2. 1231321
  3. 5556
  4.  

Plain Code

1212312
1231321
5556

Untitled PHP (9-Jun @ 16:27)

Syntax Highlighted Code

  1. public function call_PIC2_getdata_listermb($login, $pwd, $nb_enreg = '', $id_tpe='', $code_part='', $lib_part='', $date_deb='', $date_fin='', $num_page='', $ordre_tri='', $type_tri='')
  2.     {
  3.         try
  4.         {
  5. [29 more lines...]

Plain Code

public function call_PIC2_getdata_listermb($login, $pwd, $nb_enreg = '', $id_tpe='', $code_part='', $lib_part='', $date_deb='', $date_fin='', $num_page='', $ordre_tri='', $type_tri='')
    {
        try
        {
            $params->produit = new SoapVar($this->_code_produit, XSD_STRING, 'string');
            $params->code_client = new SoapVar($login, XSD_STRING, 'string');
            $params->pwd_client = new SoapVar($pwd, XSD_STRING, 'string');
            
            $params->carte_num = new SoapVar($id_tpe, XSD_STRING, 'string');
            $params->date_deb = new SoapVar($date_deb, XSD_STRING, 'string');
    $params->date_fin = new SoapVar($date_fin, XSD_STRING, 'string');
    $params->code_part = new SoapVar($code_part, XSD_STRING, 'string');
    $params->lib_part = new SoapVar($lib_part, XSD_STRING, 'string');
    $params->type_tri = new SoapVar($ordre_tri, XSD_STRING, 'string');
    $params->ordre_tri = new SoapVar($type_tri, XSD_STRING, 'string');
    $params->nb_enreg = new SoapVar($nb_enreg, XSD_STRING, 'string');
    $params->num_page = new SoapVar($num_page, XSD_STRING, 'string');
    
    $params2->parameters = $params;
    
            $p = new SoapParam($params2, 'root');
    
            $res = $this->__soapCall('PIC2_getdata_listermb', array($p), NULL, $this->getHeaders());
    
            if (!$this->checkError($res))
                return $res;
        }
        catch(SoapFault $e)
        {
          $this->handleSoapFault();
    throw new PicardieException($e->__toString());
        }
    }

Untitled PHP (9-Jun @ 15:49)

Syntax Highlighted Code

Plain Code

phpinfo();

Page Decorator (9-Jun @ 15:15)

yining

Syntax Highlighted Code

  1. abstract class View_PageDecorator
  2. {
  3.     private $_decoratee;
  4.  
  5. [65 more lines...]

Plain Code

abstract class View_PageDecorator
{
    private $_decoratee;

    function __construct($decoratee)
    {
        $this->_decoratee = $decoratee;
    }

    function get_decoratee()
    {
        return $this->_decoratee;
    }

    abstract function render();
}

class View_LayoutPage extends View_PageDecorator
{

    public function render($response=null)
    {
        // render header
        $s = '<div id="header"><h3>Header</h3></div>';
        print($s);

        // render navi
        $s = '<div id="nav"><h3>Navi</h3></div>';
        print($s);

        $decoratee = $this->get_decoratee();
        $decoratee->render();

        // render footer
        $s = '<div id="footer"><h3>Footer</h3></div>';
        print($s);
    }

}

class View_DemoPage 
{
    function __construct()
    {
    }

    function handle_request($request, &$response)
    {
        if ('GET' == $request->get_method())
            $this->handle_get($request, $response);
        else if ('POST' == $request->get_method())
            $this->handle_post($request, $response);
        else
            print('unknown method name');
    }

    function handle_get($request, &$response)
    {
        // Decorate me with LayoutPage:
        $p = new View_LayoutPage($this);

        $p->render($response);    
    }

    function render($response=null)
    {
        print("<p>signup page here</p>");
    }
}

Untitled PHP (8-Jun @ 23:28)

Syntax Highlighted Code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. [78 more lines...]

Plain Code

<!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=iso-8859-1" />
<link type="text/css" rel="stylesheet" href="images/style.css" />
    <title>LiteReport.com</title>
    <meta name="keywords" content="Business Intelligence" />
    <meta name="description" content="Business Intelligence" />
</head>

<body>
<div id="wrapper">
  <div id="top_wrapper"> 
        <div id="logo" class="slogan">
            <h1>LiteReport<span class="logo1">.com</span></h1>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Easy Intelligence</div>
        
        <div id="foxmenucontainer">
            <div id="foxmenu">
                <ul>
                    <li><a href="#" rel="nofollow">about us</a></li>
                    <li><a href="#" rel="nofollow">solutions</a></li>
                    <li><a href="#" rel="nofollow">products</a></li>
                    <li><a href="#" rel="nofollow">services</a></li>
                    <li><a href="#" rel="nofollow">contact</a></li>
                </ul>
            </div>
        </div>
    <div style="clear:both"></div>
    </div>
    
    <div id="banner_wrapper">
        <div class="bstyle">Itaque earum rerum hic tenetur<br /> 
        &nbsp; &nbsp; &nbsp; &nbsp; a sapiente delectus, ut aut reiciendis</div>
    </div>
    
    <div id="top_content">
        <div id="data">
            <h2>Data storage</h2>
            Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
            <div id="click"><a href="#" rel="nofollow">...click here</a></div>
        </div>
        
        <div id="doc">
            <h2>Document Management</h2>
            Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
            <div id="click"><a href="#" rel="nofollow">...click here</a></div>
      </div>
    <div style="clear:both"></div>
  </div>
  
      <div id="bottom_content">
      <div id="welcome">
          <h3>Welcome to LiteReport</h3>
          <b>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.<br />
          <br />
          </b>Himilique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus.
          <br />
          <br />
      Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus. </div>
        <div id="news">
              <h3>Latest news</h3>
          <div id="news01">
                    <b>Et harum quidem rerum facilis est et expedita distinctio.</b><br />
                  <br />
                Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime ...
            <div id="learn"><a href="#" rel="nofollow">learn more</a></div>        
              </div>
            <b>Et harum quidem rerum facilis est et expedita distinctio.</b><br />
                  <br />
                Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime ...
            <div id="learn"><a href="#" rel="nofollow">learn more</a></div>
        </div>
        <div style="clear:both"></div>
    </div>
    
    <div id="footer_wrapper"><a href="#" rel="nofollow">about us</a>   |   <a href="#" rel="nofollow">solutions</a>   |    <a href="#" rel="nofollow">products</a>   |   <a href="#" rel="nofollow">services</a>    |   <a href="#" rel="nofollow">contact</a><br />
        <span class="copyright"><br />
    Designed by <a href="http://www.juneglobal.com/">June Global Solutions</a></span></div>
<div style="clear:both"></div>
</div>
</body>
</html>

Untitled PHP (8-Jun @ 11:13)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. ?>

Plain Code

<?php

phpinfo();

?>

Code Igniter - load a model from a model (7-Jun @ 19:11)

remy

Syntax Highlighted Code

  1. // from within your model
  2.  
  3. $CI =& get_instance();
  4. $CI->load->model('other');
  5. [1 more lines...]

Plain Code

// from within your model

$CI =& get_instance();
$CI->load->model('other');

$event = $CI->Other->method($var);

Untitled PHP (5-Jun @ 16:40)

Syntax Highlighted Code

  1. <?php
  2. echo 'Hello world.";
  3. ?>

Plain Code

<?php
echo 'Hello world.";
?>

Untitled PHP (5-Jun @ 16:13)

Syntax Highlighted Code

  1. <?php
  2. if(1)
  3. {
  4.     print "some";
  5. [1 more lines...]

Plain Code

<?php
if(1)
{
    print "some";
}
?>

Untitled PHP (4-Jun @ 17:09)

Syntax Highlighted Code

  1. <?php
  2. echo "enes";
  3. ?>

Plain Code

<?php
echo "enes";
?>

Untitled PHP (4-Jun @ 11:20)

Syntax Highlighted Code

  1. <?php
  2. echo 'da';
  3. ?>

Plain Code

<?php
echo 'da';
?>

Untitled PHP (3-Jun @ 21:51)

Syntax Highlighted Code

  1. <?php phpinfo()

Plain Code

<?php phpinfo()

Untitled PHP (3-Jun @ 17:34)

Syntax Highlighted Code

  1. <?php
  2. echo 'Test';
  3. ?>

Plain Code

<?php
echo 'Test';
?>

Untitled PHP (3-Jun @ 08:32)

Syntax Highlighted Code

  1. <?php
  2. class CCompras {
  3.     private $carrinho;
  4.  
  5. [86 more lines...]

Plain Code

<?php
class CCompras {
    private $carrinho;

    function __construct($carrinho="") {
        $this->carrinho = $carrinho;
    }

    function getCCompras() {
        return $this->carrinho;
    }
   
    function addCCompras($item) {
        if(isset($this->carrinho[$item])) {
            $this->carrinho[$item]++;
        } else {
            $this->carrinho[$item] = 1;
        }      
    }

    function delCCompras($item) {
        if(isset($this->carrinho[$item])) {
            $this->carrinho[$item]--;
            if($this->carrinho[$item] == 0) {
                unset($this->carrinho[$item]);
            }
        }
    }   
}


function addSaco($id) {
    if (isset($_SESSION['saco'][$id])) {
        $_SESSION['saco'][$id]++;
        return true;
    }
    else {
        $_SESSION['saco'][$id] = 1;
        return true;
    }
    echo '<h1>',$id,'</h1>';
    return false;    
}

function updateSaco() {
    foreach($_SESSION['saco'] as $id => $qty) {
        if($_POST[$id] == '0') {
            unset($_SESSION['saco'][$id]);
        }
        else {
            $_SESSION['saco'][$id] = $_POST[$id];
        }
    }
}
    
    
function totalItens($saco) {
    $numItens = 0;         
    if(is_array($saco)) {
        foreach($saco as $id => $qtd) {
            $numItens += $qtd;
        }
    }
    return $numItens;
}
    
function totalPreco($saco) {
    $preco = 0.0;
    if(is_array($saco)) {
        foreach($saco as $id => $qtd) {
            $cenas= explode('-',$id);
            $variante= $cenas[1];
            $query = sprintf("SELECT preco FROM fgvariantes WHERE id='%s'", mysql_real_escape_string($variante));
            $result = mysql_query($query);
            if($result) {
                $item_price = mysql_result($result, 0, 'preco');
                $preco += $item_price * $qtd;
            }
        }
    }
    return $preco;
}    

function listaProdutos($fgold,$auxLingua)
{
    $query = "SELECT p.id,p.ref,p.thumb,pt.descricao FROM fgprodutos as p, fgprodutos_txt as pt WHERE p.id = pt.idprod AND pt.lingua = '$auxLingua'";
    $result = mysql_query($query);
    $result = $fgold->mysql_res2array($result);
    return $result;
}
?>

Untitled PHP (3-Jun @ 02:56)

Syntax Highlighted Code

  1. <?php
  2. echo "test";
  3.  
  4. ?>

Plain Code

<?php
echo "test";

?>

Untitled PHP (2-Jun @ 05:54)

Syntax Highlighted Code

  1. <?php echo "test"; ?>

Plain Code

<?php echo "test"; ?>

Untitled PHP (2-Jun @ 04:23)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpinfo();
?>

Test (1-Jun @ 14:12)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpinfo();
?>

Untitled PHP (1-Jun @ 12:39)

Syntax Highlighted Code

  1. <?php
  2. echo"Ahoj";
  3. ?>

Plain Code

<?php
echo"Ahoj";
?>

what (1-Jun @ 02:39)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo 'test';
  4.  
  5. ?>

Plain Code

<?php

echo 'test';

?>

Untitled PHP (31-May @ 00:18)

Syntax Highlighted Code

  1. echo "hola";

Plain Code

echo "hola";

Untitled PHP (29-May @ 13:57)

Syntax Highlighted Code

  1. <?php phpinfo()?>

Plain Code

<?php phpinfo()?>

Untitled PHP (29-May @ 09:39)

Syntax Highlighted Code

  1. echo 'test';

Plain Code

echo 'test';

Untitled PHP (29-May @ 07:42)

Syntax Highlighted Code

  1. echo 'test';

Plain Code

echo 'test';

Untitled PHP (28-May @ 21:45)

Syntax Highlighted Code

  1. echo'aqq';

Plain Code

echo'aqq';

Untitled PHP (28-May @ 18:20)

Syntax Highlighted Code

  1. $ar = array('poop', 'poo');
  2. if (count($ar))
  3.     echo 'yes';

Plain Code

$ar = array('poop', 'poo');
if (count($ar))
    echo 'yes';

Untitled PHP (28-May @ 12:11)

Syntax Highlighted Code

  1. echo 123;

Plain Code

echo 123;

Untitled PHP (27-May @ 05:48)

micah

Syntax Highlighted Code

  1. echo 'Hello World';

Plain Code

echo 'Hello World';

Untitled PHP (26-May @ 22:25)

Syntax Highlighted Code

  1. <?php
  2. for ($i=0; $i<10;$i++)
  3. {
  4. echo "$i";
  5. [1 more lines...]

Plain Code

<?php
for ($i=0; $i<10;$i++)
{
echo "$i";
}
?>

Untitled PHP (26-May @ 22:23)

Syntax Highlighted Code

  1. for ($i=0; $i<10;$i++)
  2. {
  3. echo "$i";
  4. }

Plain Code

for ($i=0; $i<10;$i++)
{
echo "$i";
}

Untitled PHP (26-May @ 20:51)

Syntax Highlighted Code

  1. hello
  2.  
  3.  

Plain Code

hello

Untitled PHP (26-May @ 20:38)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "Hi.";
  4.  
  5. ?>

Plain Code

<?php

echo "Hi.";

?>

Untitled PHP (25-May @ 12:31)

Syntax Highlighted Code

  1. <?
  2. echo Puspakamal Koirala
  3. ?>

Plain Code

<? 
echo Puspakamal Koirala
?>

Untitled PHP (25-May @ 10:21)

Syntax Highlighted Code

  1. define('SITE_ROOT', '../../');
  2.  
  3. @include_once SITE_ROOT.'common.php';
  4. if (!defined('COMMON')) die("The file 'common.php' doesn't exist or is corrupt!");
  5. [17 more lines...]

Plain Code

define('SITE_ROOT', '../../');

@include_once SITE_ROOT.'common.php';
if (!defined('COMMON')) die("The file 'common.php' doesn't exist or is corrupt!");
if (!isAdmin()) dieBox($aLang['PleaseLogin']);

$zipfile = "data.zip";
$zipdir = "d";
$filename = SITE_ROOT.$zipdir.'/'.$zipfile;

/*
mysql $DB -u$USERNAME -p$PASSWORD -e 'show tables like "$LIKE%"' | grep -v Tables_in | xargs mysqldump --add-drop-table $DB -u$USERNAME -p$PASSWORD
*/

echo "Start ...<br />";
if(unlink($filename))echo "Delete old <strong>".$zipfile."</strong> file  ...<br />";
$cmd = "zip -r ".$filename." ".SITE_ROOT.$zipdir;
echo "Command: ".$cmd."<br />";
exec($cmd);
if(is_file($filename)) echo "<a href="".MYHOST.DATADIR."data.zip">Download data ...</a>n";

exit;

Untitled PHP (24-May @ 09:14)

Syntax Highlighted Code

  1. fd

Plain Code

fd

Untitled PHP (24-May @ 06:04)

Syntax Highlighted Code

Plain Code

print

Untitled PHP (22-May @ 22:26)

Syntax Highlighted Code

  1. <?php
  2.  
  3. ?>

Plain Code

<?php 

?>

MySQLConnect Class (22-May @ 14:57)

Syntax Highlighted Code

  1. <?php    
  2.  
  3.     class MySQLConnect{
  4.  
  5. [39 more lines...]

Plain Code

<?php    
 
    class MySQLConnect{
  

        private static $instance = NULL;
        private $connection;

        //Private constructor
    
        private function __construct() {
          require('dbconfig.php');
            
            $this->connection = mysql_connect($host, $user, $pass) or die("Unable to connect");
            mysql_select_db($database) or die(mysql_error());
        }

        static public function getInstance() {
            if (self::$instance == NULL) {
                self::$instance = new MySQLConnect ();
            }
            return self::$instance;
        }
    
        //Closes the mySQL Connection
        public function close(){
            if(isset($this->connection)){
                mysql_close($this->connection);
                unset($this->connection);
            }
            self::$instance = NULL;
        }
    
        public function __toString() {
            return "MySQLConnect Class";
        }
    
        public function query($q){
            return mysql_query($q);
        }
      
    }
?>

Untitled PHP (21-May @ 10:19)

Syntax Highlighted Code

  1. "Other"            => $matches[0],

Plain Code

"Other"            => $matches[0],

Untitled PHP (20-May @ 12:49)

Syntax Highlighted Code

  1. $test = 'test';

Plain Code

$test = 'test';

Untitled PHP (20-May @ 11:45)

Syntax Highlighted Code

  1. <?php echo "hello world"; ?>

Plain Code

<?php echo "hello world"; ?>

Untitled PHP (20-May @ 09:00)

Syntax Highlighted Code

  1. <?php
  2.  
  3.  
  4. ?>

Plain Code

<?php

phpinfo();

?>

Untitled PHP (20-May @ 03:24)

Syntax Highlighted Code

  1. <?
  2.  
  3. echo "Pagina cagada do caralho!";
  4.  
  5. ?>

Plain Code

<?

echo "Pagina cagada do caralho!";

?>

Untitled PHP (20-May @ 00:55)

Syntax Highlighted Code

  1. $somevarstring = "This is a test string";
  2. $somevarInt = 69;
  3.  
  4. echo $somevarstring . " -:- " . $somevarInt;

Plain Code

$somevarstring = "This is a test string";
$somevarInt = 69;

echo $somevarstring . " -:- " . $somevarInt;

Untitled PHP (19-May @ 22:38)

Syntax Highlighted Code

  1. echo "hmida"
  2.  

Plain Code

echo "hmida"

Untitled PHP (19-May @ 22:31)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "hello";
  4.  
  5. ?>

Plain Code

<?php

echo "hello";

?>

Untitled PHP (19-May @ 17:34)

Syntax Highlighted Code

  1. <?php echo ( 'Hello world.' ); ?>

Plain Code

<?php echo ( 'Hello world.' ); ?>

test44 (19-May @ 08:00)

Syntax Highlighted Code

  1. /**
  2. * default_sort_order
  3. *
  4. **/
  5. [4 more lines...]

Plain Code

/**
* default_sort_order
*
**/
  public function default_sort_order()
  {
    return array('building_id');
  } // default_sort_order()

Untitled PHP (16-May @ 09:29)

Syntax Highlighted Code

  1. <?php
  2. include('../inc/nocache.inc');
  3. include_once('../inc/dbinit.php');
  4. include_once('../acts/etc_acts.php');
  5. [339 more lines...]

Plain Code

<?php
include('../inc/nocache.inc');
include_once('../inc/dbinit.php');
include_once('../acts/etc_acts.php'); 
$good_id=$_POST['id'];
$obj_to_render=$_POST['obj'];
$abs_path='norna_cms';

if (($good_id!='')&&($obj_to_render!='')){
    
$sSQL="SELECT * FROM ".$tprefix."goods WHERE id=".$good_id." and pub=1";
$result=mysql_query($sSQL, $link);
$row=mysql_fetch_array($result, MYSQL_NUM);


//====================================================================================
//
//  main switcher from jquery requests for the spec HTML-elements with prenamed ID's
//
//====================================================================================
switch ($obj_to_render)
{
//====================================================================================  
case "good_name":{print($row[1]);break;}
//====================================================================================  
case "good_descr":{print($row[4]);break;}
//====================================================================================  
case "cat_descr":{
    $sSQL="SELECT small_descr FROM ".$tprefix."cats WHERE id=".$row[5]." and pub=1";
    $cats_result=mysql_query($sSQL, $link);
    $cats_row=mysql_fetch_array($cats_result, MYSQL_NUM);
    print($cats_row[0]);
break;}
//====================================================================================  
case "techs":{
if (!empty($row[11]))
  {
    $sSQL="SELECT name,pict FROM ".$tprefix."techs WHERE id in (".$row[11].")";
    $techs_result=mysql_query($sSQL, $link);
    while($techs_row=mysql_fetch_array($techs_result, MYSQL_NUM))
    {print('<img src="'.$abs_path.$techs_row[1].'" title="'.$techs_row[0].'" ><br><br>');}
  }
break;}
//====================================================================================  
case "patents":{
if (!empty($row[12]))
  {
    $sSQL="SELECT small_descr FROM ".$tprefix."patents WHERE id in (".$row[12].")";
    $techs_result=mysql_query($sSQL, $link);
    while($techs_row=mysql_fetch_array($techs_result, MYSQL_NUM))
    {print($techs_row[0].'<br>');}
  }
break;}
//====================================================================================  
case "recom":{
$sSQL_cnt = "SELECT count(*) As Total FROM ".$tprefix."cats WHERE pub='1'";
$result_cnt = mysql_query($sSQL_cnt, $link);
$row = mysql_fetch_object($result_cnt);
$nrows = $row -> Total;
if ($nrows!=0)
{
$random_cat1=rand(0,floor(($nrows-1)/2)-1);
if ($nrows!=1){$random_cat2=rand(floor(($nrows-1)/2),$nrows-1);} else {$random_cat2=$random_cat1;}

$sSQL="SELECT id,name,pict FROM ".$tprefix."cats WHERE pub='1'";
$result=mysql_query($sSQL, $link);

print('
<table class="rec_table" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width=50% valign=top>');

while ($row=mysql_fetch_array($result,MYSQL_NUM))
{   if ($count!=2)
    {
    if (($i==$random_cat1)||($i==$random_cat2))
    {
    $gsSQL_cnt = "SELECT count(*) As Total FROM ".$tprefix."goods WHERE pub='1' and cat_id=".$row[0];
    $gresult_cnt = mysql_query($gsSQL_cnt, $link);$row2 = mysql_fetch_array($gresult_cnt, MYSQL_NUM);
    if ($row2[0]!=0)
    {
    switch ($row2[0])
    {
        case 0:case 1: {$word_over='';break;};
        case 2: case 3: case 4: {$word_over='à';break;}
        default: {$word_over='îâ';break;}
    
    }
    print('<table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <td valign=top width=50% rowspan=2><img class="rec_img" src="norna_cms'.$row[2].'"/></td>
    <td valign=top><a href="#" onclick="get_content('.gen_id($row[0]).'); return false">'.$row[1].'</a></td>
    <tr><td valign=bottom><i>'.$row2[0].' äèñê'.$word_over.'</i></td></tr></table>');
    print('</td><td width=50% valign=top>');
    $count+=1;
    } 
    }
    } else {break;}
    $i+=1;
}
print('</td></tr></table>');
}
break;}
//====================================================================================  
case "cats":{
$sSQL="SELECT count(*) FROM ".$tprefix."cats WHERE pub=1";
$result=mysql_query($sSQL, $link);
$row=mysql_fetch_array($result, MYSQL_NUM);
if ($row[0]!=0)
{
if ($row[0] & 1 )
{$next_td_flag=($row[0]+1)/2;} else {$next_td_flag=$row[0]/2;}
$counter=0;
print('<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td valign=top>');    
$sSQL2="SELECT id,name FROM ".$tprefix."cats WHERE pub=1";
$result2=mysql_query($sSQL2, $link);
while ($row2=mysql_fetch_array($result2, MYSQL_NUM))
{
$gsSQL_cnt = "SELECT count(*) As Total FROM ".$tprefix."goods WHERE pub=1 and cat_id=".$row2[0];
$gresult_cnt = mysql_query($gsSQL_cnt, $link);$row3 = mysql_fetch_array($gresult_cnt, MYSQL_NUM);
if ($row3[0]!=0)
{
print('<a href="" onclick="get_content('.gen_id($row2[0]).'); return false">'.$row2[1].'</a><br>');
$counter+=1;
if ($counter==$next_td_flag) {print('</td><td width=50% valign=top>');}
}
}
print('</td></tr></table>');
}
break;}
//====================================================================================  
case "eps":{
        print('<ul class="eps_ul">');    

$psSQL="SELECT eps_count FROM ".$tprefix."config";
$presult=mysql_query($psSQL, $link);
$prow = mysql_fetch_array($presult, MYSQL_NUM);

  $how_much=$prow[0];

    $sSQL="SELECT name,url FROM ".$tprefix."eps WHERE good_id=".$row[0]." LIMIT ".$how_much;
    $eps_result=mysql_query($sSQL, $link);
    while($eps_row=mysql_fetch_array($eps_result, MYSQL_NUM))
    {if ($eps_row[0]!='')
    {
        if ($eps_row[1]!='')
        {print('<li class="eps_ul1"><a href="http://'.$eps_row[1].'" title="'.$eps_row[0].'">'.$eps_row[0].'</a></li>');}
        else {print('<li class="eps_ul2">'.$eps_row[0].'</li>');}
        print('<hr class="hr_bl2">');
    }
    }
print('</ul><img class="iePNG_center" src="pics/images/but_3.png" width="23" height="22" /> 
<a href="" onclick="get_all_eps('.$row[0].'); return false"><font color=#FFFFFF><b>Âñå ýïèçîäû</b></a></font>');
break;}
//====================================================================================  
case "all_eps":{
    print('<ul class="eps_ul"">');
    $sSQL="SELECT name,url FROM ".$tprefix."eps WHERE good_id=".$row[0];
    $eps_result=mysql_query($sSQL, $link);
    while($eps_row=mysql_fetch_array($eps_result, MYSQL_NUM))
    {if ($eps_row[0]!='')
    {
        if ($eps_row[1]!='')
        {print('<li class="eps_ul1"><a href="http://'.$eps_row[1].'" title="'.$eps_row[0].'">'.$eps_row[0].'</a></li>');}
        else {print('<li class="eps_ul2">'.$eps_row[0].'</li>');}
        print('<hr class="hr_bl2">');
    }
    }

print('</ul><img class="iePNG_center" src="pics/images/but_4.png" width="23" height="22" /> 
<a href="" onclick="by_ajax('.$row[0].','eps'); return false"><font color=#FFFFFF><b>Âñå ýïèçîäû</b></a></font>');
break;}
//====================================================================================  
case "eps_pict":{
print('
<div id="mycarousel3" class="jcarousel-skin-3"><ul></ul></div>
<script type="text/javascript">
var total=0;

function mycarousel_itemVisibleInCallbackAfterAnimation3(carousel, item, idx, state)
{
if (total!=0)
{
var page_num=Math.ceil(idx/3);
var delta_left=Math.round(211/(Math.ceil(total/3)-1))*(page_num-1); //move our scroller w id="handler"
$("#handler").css({left: delta_left});
}
}

jQuery(document).ready(function() {
jQuery('#mycarousel3').jcarousel({
visible:3, scroll:3,
initCallback: mycarousel_initCallback3,
itemLoadCallback: mycarousel_itemLoadCallback3,
itemVisibleInCallback: {onAfterAnimation: mycarousel_itemVisibleInCallbackAfterAnimation3}

});
 
});

function mycarousel_initCallback3(carousel){
$("#handler").css({left: "2px"});
jQuery.get('./acts/carousel_ajax_acts.php',{car_id:3, id: '.$good_id.'},
function(xml){total=carousel.size(parseInt(jQuery('total', xml).text()));},'xml');


$("#slider").slider({
minValue: 0,
maxValue: total,
handle: '#handler',
stop: function (event, ui) {
$('ul.jcarousel-list').animate({'left' : ui.value * -1}, 400);
},
slide: function (event, ui) {
$('ul.jcarousel-list').css('left', ui.value * -1);
}
});

};


function mycarousel_itemLoadCallback3(carousel, state)
{if (carousel.has(carousel.first, carousel.last)) {return;}
jQuery.get('./acts/carousel_ajax_acts.php',{first: carousel.first,last: carousel.last, car_id:3, id: '.$good_id.'},
function(xml){mycarousel_itemAddCallback3(carousel, carousel.first, carousel.last, xml);},'xml');};

function mycarousel_itemAddCallback3(carousel, first, last, xml)
{                   
var img_str = new Array();
total=carousel.size(parseInt(jQuery('total', xml).text())); 
jQuery('pict', xml).each
(function(i)
  {
  img_str[i]=jQuery(this).text();
  }
 );
jQuery('big_pict', xml).each
(function(i)
  {
  ref_str=jQuery(this).text();
// Create an object from HTML
        var item = jQuery(mycarousel_getItemHTML3(img_str[i],ref_str)).get(0);
// Apply thickbox
        tb_init(item);
        carousel.add(first+i, item);
 }
 );

};

function mycarousel_getItemHTML3(url,ref)
{
  return '<a href="norna_cms'+ ref +'"><img src="norna_cms'+ url +'" style="border: 1px solid #FFF";" width="90" height="72" border="0" alt="" /></a>';
  
};
   
 </script>
 ');
break;}
//====================================================================================  
case "publisher":{print($row[13]);break;}
//====================================================================================  
case "lenght":{print($row[14]);break;}
//====================================================================================  
case "link":{print('<a href="http://'.$row[10].'">Ãäå êóïèòü?</a>');break;}
//====================================================================================  
case "tree":{
$good_type_sSQL="SELECT name FROM ".$tprefix."types WHERE id=".$row[6];
$good_type_result=mysql_query($good_type_sSQL, $link);
$good_type=mysql_fetch_array($good_type_result, MYSQL_NUM);
print('<a style="color:#EA0063" href="index.php" >Ãëàâíàÿ ñòðàíèöà</a>  <a href="#">'.$good_type[0].'</a>  <a href="#" >'.$row[1].'</a>');
break;}
//====================================================================================  
case "etc_goods":{
$input_tab=$_REQUEST['input_tab'];
$sSQL_cnt = "SELECT count(*) As Total FROM ".$tprefix."goods WHERE pub=1 and cat_id=".$row[5];
$result_cnt = mysql_query($sSQL_cnt, $link);
$crow = mysql_fetch_array($result_cnt);

$section=0;$i=0;
$sSQL="SELECT id,name FROM ".$tprefix."goods WHERE pub=1 and cat_id=".$row[5];
$etc_result=mysql_query($sSQL, $link);
while ($etc_row=mysql_fetch_array($etc_result, MYSQL_NUM))
{
    if ($crow[0]<=10)          //count<=10: simple render of etc_goods
    {
    if ($etc_row[0]==$row[0])  //render our choice of good in special table-block
    {
print('
<table class="label_table" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="9" height="10" background="pics/images/button_left_top2.gif"></td><td rowspan="2" background="pics/images/button_background.gif" bgcolor="#DADADA" style="background-repeat:repeat-x" class="label_3">&raquo; '.$row[1].'</td><td width="9" height="10" background="pics/images/button_right_top2.gif"></td></tr><tr><td width="9" height="10" background="pics/images/button_left_bottom2.gif" style="background-position:bottom; background-repeat:repeat-x" bgcolor="#F0F0F0"></td><td width="9" height="10" background="pics/images/button_right_bottom2.gif" style="background-position:bottom; background-repeat:repeat-x" bgcolor="#F0F0F0"></td></tr></table><br>');
    //$cur_section=$section;   //what section is in?
    }else
    {print('<a style="margin-left:10px;" href="" onclick="get_content('.$etc_row[0].'); return false">'.$etc_row[1].'</a><br>');}
    }
    else                     //count>10 and id<>curren_good_id: special render of etc_goods
    {
    if ($etc_row[0]==$row[0])//render our choice of good in special table-block
    {       
     if (!isset($input_tab)){$input_tab=$section;}  //what section is in?
    }
    $goods_ar[$section][$i][0]=$etc_row[0];
    $goods_ar[$section][$i][1]=$etc_row[1];
    if ($i!=9){$i+=1;}else{$i=0;$section+=1;}
    }                                 
}

if ($crow[0]>10)
{
for ($sect_i=0;$sect_i<=$section;$sect_i++)
{
    if ($sect_i==$input_tab)
    {
        for ($i=0;$i<=9;$i++)
            {
            if ($goods_ar[$sect_i][$i][0]==$row[0])  //render our choice of good in special table-block
            {   
print('<table class="label_table" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="9" height="10" background="pics/images/button_left_top2.gif"></td><td rowspan="2" background="pics/images/button_background.gif" bgcolor="#DADADA" style="background-repeat:repeat-x" class="label_3">&raquo; '.$row[1].'</td><td width="9" height="10" background="pics/images/button_right_top2.gif"></td></tr><tr><td width="9" height="10" background="pics/images/button_left_bottom2.gif" style="background-position:bottom; background-repeat:repeat-x" bgcolor="#F0F0F0"></td><td width="9" height="10" background="pics/images/button_right_bottom2.gif" style="background-position:bottom; background-repeat:repeat-x" bgcolor="#F0F0F0"></td></tr></table><br>');
            }
            else
            {
            print('<a style="margin-left:10px;" href="" onclick="get_content('.$goods_ar[$sect_i][$i][0].'); return false">'.$goods_ar[$sect_i][$i][1].'</a><br>');
            }
            }
    
    }
}
//render extra nav. buttons
print('<span class="label_6">Äðóãèå äèñêè ñåðèè</span>&nbsp;&nbsp;');
for ($i=1;$i<=$section+1;$i++)
{
$start_=10*($i-1)+1;
if ($i!=$section+1){$end_=10*$i;}else $end_=$crow[0];
if ($i-1!=$input_tab){$color_='#2D59E0';}else{$color_='#E90063';}
print('<span class="nav_but"><a style="color:'.$color_.'" href="" onclick="get_extra_nav_but('.$row[0].','.intval($i-1).'); return false">'.$start_.'-'.$end_.'</a></span>&nbsp;&nbsp;&nbsp;');
}
}
break;}
//====================================================================================  
}

if (isset($link)) {mysql_close($link);}    
}
?>

Untitled PHP (16-May @ 08:14)

Syntax Highlighted Code

  1. echo "tes";

Plain Code

echo "tes";

Untitled PHP (16-May @ 08:10)

Syntax Highlighted Code

  1. <? $cippa="cciao"; $

Plain Code

<? $cippa="cciao"; $

Untitled PHP (16-May @ 06:57)

Syntax Highlighted Code

  1. <?php
  2.  
  3. ?>

Plain Code

<?php

?>

Untitled PHP (14-May @ 20:05)

Syntax Highlighted Code

  1. fdsfdsfsd

Plain Code

fdsfdsfsd

Untitled PHP (14-May @ 13:33)

Syntax Highlighted Code

  1. <?php echo 1; ?>

Plain Code

<?php echo 1; ?>

Untitled PHP (14-May @ 07:56)

Syntax Highlighted Code

  1. <?php
  2.  
  3. echo "D";

Plain Code

<?php

echo "D";

Untitled PHP (13-May @ 10:12)

Syntax Highlighted Code

  1. function is_ajax() {
  2.  return isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
  3.      $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest';
  4. }

Plain Code

function is_ajax() {
 return isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
     $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest';
}

Untitled PHP (12-May @ 13:00)

Syntax Highlighted Code

  1. function theBig40Update() {
  2.     is_post();
  3.     require_once(LIB_DIR.'listsorter.class.php');
  4.     $ls = new Listsorter($this->tbl_supplier_big40,'deal_id','month_date');
  5. [2 more lines...]

Plain Code

function theBig40Update() {
    is_post();
    require_once(LIB_DIR.'listsorter.class.php');
    $ls = new Listsorter($this->tbl_supplier_big40,'deal_id','month_date');
    $ls->update($_POST['start_pos'],$_POST['end_pos'],$_POST['deal_id'],$_POST['month_date']);
}

Untitled PHP (12-May @ 12:51)

Syntax Highlighted Code

  1. print "123"

Plain Code

print "123"

Untitled PHP (12-May @ 12:51)

Syntax Highlighted Code

  1. dfhdfj

Plain Code

dfhdfj

Untitled PHP (12-May @ 12:51)

Syntax Highlighted Code

  1. print "123";

Plain Code

print "123";

Untitled PHP (12-May @ 12:50)

Syntax Highlighted Code

  1. <?
  2. ?>

Plain Code

<?
phpinfo()
?>

Untitled PHP (11-May @ 19:53)

Syntax Highlighted Code

  1. <?php echo "hello"; ?>

Plain Code

<?php echo "hello"; ?>

Untitled PHP (9-May @ 21:49)

Syntax Highlighted Code

  1. <?php
  2. ?>

Plain Code

<?php
phpinfo();
?>

Untitled PHP (28-Apr @ 06:21)

Syntax Highlighted Code

  1. <?php
  2.  
  3. $test = "test";
  4. echo "This is a ".$test.".n";
  5. [1 more lines...]

Plain Code

<?php

$test = "test";
echo "This is a ".$test.".n";

?>

Sync Class (24-Apr @ 18:17)

landons.myopenid.com

Syntax Highlighted Code

  1. <?php
  2.  
  3. class SyncIt {
  4.   private $modules;
  5. [11 more lines...]

Plain Code

<?php

class SyncIt {
  private $modules;
  function SyncIt() {
    // get list of files in "modules" folder, and add to modules array
  }
}

class SyncItModule {
  public $name;
}

$sync = new SyncIt;

?>

Password Generator (14-Apr @ 11:13)

remy

Syntax Highlighted Code

  1. function GeneratePassword($limit = 8) {
  2.     $vowels = array('a', 'e', 'i', 'o', 'u');
  3.     $const = array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
  4.  
  5. [14 more lines...]

Plain Code

function GeneratePassword($limit = 8) {
    $vowels = array('a', 'e', 'i', 'o', 'u');
    $const = array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');

    $word = '';

    for ($i = 0; $i < ($limit - 3); $i++) {
        if ($i % 2 == 0) { // even = vowels
            $word .= $vowels[rand(0, 4)]; 
        } else {
            $word .= $const[rand(0, 20)];
        } 
    }

    $num = rand(0,999);
    str_pad($num, 3, '0', STR_PAD_LEFT);

    return substr($word . $num, 0, $limit);
}

Untitled PHP (11-Apr @ 17:39)

Syntax Highlighted Code

  1. if (@$_GET['action'] == 'delay') {
  2.     sleep(1); // force a slow response
  3.     echo 'true;'; // don't cause JS errors
  4.     exit;
  5. [1 more lines...]

Plain Code

if (@$_GET['action'] == 'delay') {
    sleep(1); // force a slow response
    echo 'true;'; // don't cause JS errors
    exit;
}

Excel file header (5-Dec @ 21:15)

remy

Syntax Highlighted Code

  1. <?php
  2.     $export_file = "my_name.xls";
  3.     ob_end_clean();
  4.     ini_set('zlib.output_compression','Off');
  5. [12 more lines...]

Plain Code

<?php
    $export_file = "my_name.xls";
    ob_end_clean();
    ini_set('zlib.output_compression','Off');
    
    header('Pragma: public');
    header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');  // Date in the past    
    header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1 
    header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
    header('Pragma: no-cache');
    header('Expires: 0');
    header('Content-Transfer-Encoding: none');
    header('Content-Type: application/vnd.ms-excel;'); // This should work for IE & Opera
    header('Content-type: application/x-msexcel'); // This should work for the rest
    header('Content-Disposition: attachment; filename="' . basename($export_file) . '"');
?>

Loose DOM parsing (3-Oct @ 12:30)

remy

Syntax Highlighted Code

  1. $dom = new DOMDocument();
  2. $dom->preserveWhiteSpace = false;
  3. $dom->strictErrorChecking = false;
  4. $dom->loadHTMLFile($url);

Plain Code

$dom = new DOMDocument();
$dom->preserveWhiteSpace = false;
$dom->strictErrorChecking = false;
$dom->loadHTMLFile($url);