Thread: [Phpfreechat-svn] SF.net SVN: phpfreechat: [447] trunk/misc
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-17 19:45:24
|
Revision: 447 Author: kerphi Date: 2006-04-17 12:45:09 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=447&view=rev Log Message: ----------- Highlight the tab icon when a something occurs in hidden tabs in order to catch the attention Modified Paths: -------------- trunk/misc/tabs.svg trunk/themes/default/images/ch.gif trunk/themes/default/images/pv.gif trunk/themes/default/templates/pfcclient.js.tpl.php trunk/themes/default/templates/pfcgui.js.tpl.php Added Paths: ----------- trunk/themes/default/images/ch-active.gif trunk/themes/default/images/pv-active.gif Modified: trunk/misc/tabs.svg =================================================================== --- trunk/misc/tabs.svg 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/misc/tabs.svg 2006-04-17 19:45:09 UTC (rev 447) @@ -14,7 +14,7 @@ id="svg2" sodipodi:version="0.32" inkscape:version="0.43" - sodipodi:docbase="/home/kerphi/public_html/pfc-1.0/trunk/misc" + sodipodi:docbase="/home/kerphi/public_html/pfc-1.x/misc" sodipodi:docname="tabs.svg"> <defs id="defs4"> @@ -131,6 +131,36 @@ y1="390.89087" x2="487.51208" y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient1351" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,759.9246,165.0014)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2229" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,776.8066,-126.4271)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2232" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,659.6914,109.3019)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> </defs> <sodipodi:namedview id="base" @@ -179,7 +209,7 @@ inkscape:export-ydpi="5.3417435" /> <g id="g3964" - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/ch.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch.png" inkscape:export-xdpi="5.1439257" inkscape:export-ydpi="5.1439257"> <path @@ -215,22 +245,71 @@ style="fill:url(#linearGradient3962);fill-opacity:1;fill-rule:nonzero;stroke:#2b752b;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" d="M 333.03813,569.31539 C 252.79573,570.33301 188.31938,603.23164 188.31938,643.59664 C 188.31937,682.269 247.50785,714.04025 323.03812,717.53415 C 325.0606,722.16887 327.24474,726.963 329.60063,731.87789 C 353.08832,780.87834 435.81419,788.34127 396.25687,775.72164 C 378.83553,770.16386 364.5783,744.44366 354.10062,717.37789 C 428.01584,713.10933 485.44438,681.69247 485.44437,643.59664 C 485.44437,602.59093 418.8933,569.31538 336.88187,569.31539 C 335.60044,569.31539 334.31181,569.29924 333.03813,569.31539 z " id="path4042" - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> <path style="fill:#40b340;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4044" d="M 220.54545,609.46419 C 224.97582,597.64358 233.41072,597.60795 244.57002,598.19856 C 258.8771,605.02931 271.71997,614.19723 286.93645,618.39683 C 300.41176,597.84009 294.8373,597.8761 326.79986,618.95141 C 341.11483,631.92803 312.84247,628.80461 327.85125,599.54552 C 339.6388,587.71009 398.04287,635.16256 351.76816,605.4233 C 375.60159,600.02611 365.52412,594.35026 398.29546,615.57074 C 371.05197,600.06673 387.97162,612.37197 412.5449,606.01422 C 415.93502,602.20389 420.52981,601.90384 424.94008,600.42516 L 446.29866,616.94146 C 442.39697,618.08408 437.81007,617.1715 434.80656,621.20448 C 410.39952,628.94913 395.10512,621.91375 373.50297,604.97187 C 378.71832,607.99313 403.40507,617.57766 372.23081,622.76431 C 318.38943,590.19406 349.79437,603.39512 350.45021,613.47771 C 336.70836,640.3188 321.89868,628.39132 302.1721,607.85539 C 317.66779,617.24672 325.97335,616.69573 308.213,634.85318 C 292.38309,631.97465 279.27996,623.23925 265.18576,615.11295 C 255.57748,613.71595 248.14611,612.30201 244.85482,622.82838 L 220.54545,609.46419 z " - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> <path style="fill:#40b340;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path4046" d="M 249.11688,658.03562 C 258.45103,634.3361 253.86072,633.45585 284.21407,652.4544 C 315.78397,688.73726 243.65728,634.69895 302.15277,671.34075 C 308.24601,675.15757 290.02652,663.61178 283.9634,659.74729 C 295.43114,664.62802 301.21132,659.1372 309.37754,651.67843 C 329.33843,659.63829 368.65221,695.18803 333.52088,670.06393 C 347.53882,667.73922 351.38378,652.44825 356.95858,641.02909 C 368.77724,642.55334 427.61292,688.14183 380.88221,657.84586 C 394.07882,662.17942 400.39133,655.85602 408.14719,646.26556 C 462.74164,680.59735 422.76281,653.5135 422.48065,653.30731 L 443.40962,670.11795 C 428.86132,662.47436 381.54411,634.92256 430.4992,662.20451 C 422.47769,670.73458 414.91495,678.24405 401.52336,675.17231 C 381.08355,662.83381 341.9547,633.47163 379.61876,656.05623 C 373.03882,667.58625 368.78091,682.8011 354.65762,686.81032 C 343.235,680.65281 280.91663,638.41295 331.76144,667.1771 C 323.27896,674.54399 316.47957,680.93522 304.41898,677.14935 C 276.55472,660.21726 287.83097,678.24527 259.11746,641.60637 C 287.50805,659.11706 279.14581,648.28391 273.42625,671.39981 L 249.11688,658.03562 z " - inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> + <path + style="fill:url(#linearGradient2232);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.60999441;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 634.63132,379.71502 C 585.47905,380.33836 545.98425,400.49033 545.98425,425.2158 C 545.98424,448.90444 582.23998,468.36583 628.50583,470.50601 C 629.7447,473.34499 631.08259,476.28163 632.52569,479.29222 C 646.91301,509.30731 697.58651,513.87872 673.35578,506.14859 C 662.68439,502.74419 653.95116,486.98936 647.53309,470.41029 C 692.80965,467.7956 727.98734,448.55129 727.98734,425.2158 C 727.98734,400.09786 687.22166,379.71502 636.98578,379.71502 C 636.20085,379.71502 635.4115,379.70513 634.63132,379.71502 z " + id="path1333" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:url(#linearGradient2229);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 735.89531,315.02966 C 655.65291,316.04728 591.17656,348.94591 591.17656,389.31091 C 591.17655,427.98327 650.36503,459.75452 725.8953,463.24842 C 727.91778,467.88314 730.10192,472.67727 732.45781,477.59216 C 755.9455,526.59261 838.67137,534.05554 799.11405,521.43591 C 781.69271,515.87813 767.43548,490.15793 756.9578,463.09216 C 830.87302,458.8236 888.30156,427.40674 888.30155,389.31091 C 888.30155,348.3052 821.75048,315.02965 739.73905,315.02966 C 738.45762,315.02966 737.16899,315.01351 735.89531,315.02966 z " + id="path1335" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1337" + d="M 623.40263,355.17846 C 627.833,343.35785 636.2679,343.32222 647.4272,343.91283 C 661.73428,350.74358 674.57715,359.9115 689.79363,364.1111 C 703.26894,343.55436 697.69448,343.59037 729.65704,364.66568 C 743.97201,377.6423 715.69965,374.51888 730.70843,345.25979 C 742.49598,333.42436 800.90005,380.87683 754.62534,351.13757 C 778.45877,345.74038 768.3813,340.06453 801.15264,361.28501 C 773.90915,345.781 790.8288,358.08624 815.40208,351.72849 C 818.7922,347.91816 823.38699,347.61811 827.79726,346.13943 L 849.15584,362.65573 C 845.25415,363.79835 840.66725,362.88577 837.66374,366.91875 C 813.2567,374.6634 797.9623,367.62802 776.36015,350.68614 C 781.5755,353.7074 806.26225,363.29193 775.08799,368.47858 C 721.24661,335.90833 752.65155,349.10939 753.30739,359.19198 C 739.56554,386.03307 724.75586,374.10559 705.02928,353.56966 C 720.52497,362.96099 728.83053,362.41 711.07018,380.56745 C 695.24027,377.68892 682.13714,368.95352 668.04294,360.82722 C 658.43466,359.43022 651.00329,358.01628 647.712,368.54265 L 623.40263,355.17846 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1339" + d="M 651.97406,403.74989 C 661.30821,380.05037 656.7179,379.17012 687.07125,398.16867 C 718.64115,434.45153 646.51446,380.41322 705.00995,417.05502 C 711.10319,420.87184 692.8837,409.32605 686.82058,405.46156 C 698.28832,410.34229 704.0685,404.85147 712.23472,397.3927 C 732.19561,405.35256 771.50939,440.9023 736.37806,415.7782 C 750.396,413.45349 754.24096,398.16252 759.81576,386.74336 C 771.63442,388.26761 830.4701,433.8561 783.73939,403.56013 C 796.936,407.89369 803.24851,401.57029 811.00437,391.97983 C 865.59882,426.31162 825.61999,399.22777 825.33783,399.02158 L 846.2668,415.83222 C 831.7185,408.18863 784.40129,380.63683 833.35638,407.91878 C 825.33487,416.44885 817.77213,423.95832 804.38054,420.88658 C 783.94073,408.54808 744.81188,379.1859 782.47594,401.7705 C 775.896,413.30052 771.63809,428.51537 757.5148,432.52459 C 746.09218,426.36708 683.77381,384.12722 734.61862,412.89137 C 726.13614,420.25826 719.33675,426.64949 707.27616,422.86362 C 679.4119,405.93153 690.68815,423.95954 661.97464,387.32064 C 690.36523,404.83133 682.00299,393.99818 676.28343,417.11408 L 651.97406,403.74989 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/ch-active.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:url(#linearGradient1351);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M 719.01339,606.45822 C 638.771,607.47584 574.29464,640.37447 574.29464,680.73947 C 574.29463,719.41183 633.48311,751.18308 709.01338,754.67698 C 711.03586,759.3117 713.22,764.10583 715.57589,769.02072 C 739.06359,818.02117 821.78946,825.4841 782.23213,812.86447 C 764.8108,807.30669 750.55356,781.58649 740.07588,754.52072 C 813.9911,750.25216 871.41964,718.8353 871.41963,680.73947 C 871.41963,639.73376 804.86856,606.45821 722.85713,606.45822 C 721.5757,606.45822 720.28707,606.44207 719.01339,606.45822 z " + id="path1345" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1347" + d="M 606.52071,646.60702 C 610.95108,634.78641 619.38598,634.75078 630.54528,635.34139 C 644.85236,642.17214 657.69523,651.34006 672.91171,655.53966 C 686.38702,634.98292 680.81256,635.01893 712.77513,656.09424 C 727.09009,669.07086 698.81774,665.94744 713.82651,636.68835 C 725.61406,624.85292 784.01813,672.30539 737.74343,642.56613 C 761.57685,637.16894 751.49939,631.49309 784.27073,652.71357 C 757.02723,637.20956 773.94688,649.5148 798.52016,643.15705 C 801.91028,639.34672 806.50507,639.04667 810.91535,637.56799 L 832.27392,654.08429 C 828.37223,655.22691 823.78533,654.31433 820.78182,658.34731 C 796.37478,666.09196 781.08038,659.05658 759.47823,642.1147 C 764.69358,645.13596 789.38033,654.72049 758.20607,659.90714 C 704.36469,627.33689 735.76964,640.53795 736.42547,650.62054 C 722.68363,677.46163 707.87394,665.53415 688.14736,644.99822 C 703.64305,654.38955 711.94861,653.83856 694.18826,671.99601 C 678.35836,669.11748 665.25523,660.38208 651.16103,652.25578 C 641.55275,650.85878 634.12137,649.44484 630.83008,659.97121 L 606.52071,646.60702 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path1349" + d="M 635.09215,695.17845 C 644.42629,671.47893 639.83598,670.59868 670.18933,689.59723 C 701.75923,725.88009 629.63254,671.84178 688.12803,708.48358 C 694.22128,712.3004 676.00178,700.75461 669.93866,696.89012 C 681.4064,701.77085 687.18658,696.28003 695.3528,688.82126 C 715.31369,696.78112 754.62747,732.33086 719.49614,707.20676 C 733.51408,704.88205 737.35904,689.59108 742.93384,678.17192 C 754.7525,679.69617 813.58818,725.28466 766.85747,694.98869 C 780.05408,699.32225 786.36659,692.99885 794.12245,683.40839 C 848.7169,717.74018 808.73807,690.65633 808.45591,690.45014 L 829.38488,707.26078 C 814.83658,699.61719 767.51938,672.06539 816.47446,699.34734 C 808.45295,707.87741 800.89021,715.38688 787.49862,712.31514 C 767.05882,699.97664 727.92996,670.61446 765.59403,693.19906 C 759.01408,704.72908 754.75617,719.94393 740.63288,723.95315 C 729.21026,717.79564 666.89189,675.55578 717.7367,704.31993 C 709.25422,711.68682 702.45483,718.07805 690.39424,714.29218 C 662.52998,697.36009 673.80623,715.3881 645.09272,678.7492 C 673.48331,696.25989 665.12107,685.42674 659.40151,708.54264 L 635.09215,695.17845 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> </g> </svg> Added: trunk/themes/default/images/ch-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/default/images/ch-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/themes/default/images/ch.gif =================================================================== (Binary files differ) Added: trunk/themes/default/images/pv-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/default/images/pv-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/themes/default/images/pv.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-17 19:45:09 UTC (rev 447) @@ -19,7 +19,6 @@ this.privmsgs = Array(); this.privmsgids = Array(); - this.timeout = null; this.refresh_delay = <?php echo $refresh_delay; ?>; /* unique client id for each windows used to identify a open window @@ -516,7 +515,6 @@ handleComingRequest: function( cmds ) { var msg_html = $H(); - var msg_ids = $H(); // alert(cmds.inspect()); @@ -575,11 +573,6 @@ msg_html[recipientid] = line; else msg_html[recipientid] += line; - - if (msg_ids[recipientid] == null) - msg_ids[recipientid] = Array(id); - else - msg_ids[recipientid].push(id); } // loop on all recipients and post messages @@ -589,6 +582,9 @@ var recipientid = keys[i]; var tabid = recipientid; + if (this.gui.getTabId() != tabid) + this.gui.notifyTab(tabid); + // create the tab if it doesn't exists yet var recipientdiv = this.gui.getChatContentFromTabId(tabid); @@ -694,12 +690,6 @@ nickdiv.appendChild(ul,fc); this.colorizeNicks(tabid,nickdiv); }, - - test: function(evt) - { - alert(evt); - return false; - }, /** * clear the nickname list Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-17 19:14:41 UTC (rev 446) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-17 19:45:09 UTC (rev 447) @@ -14,6 +14,7 @@ this.current_tab_id = ''; this.tabs = Array(); this.tabids = Array(); + this.tabtypes = Array(); this.chatcontent = $H(); this.onlinecontent = $H(); this.smileycontent = $H(); @@ -72,6 +73,8 @@ // restore the scroll pos var content = this.getChatContentFromTabId(tabid); content.scrollTop = this.scrollpos[tabid]; + + this.unnotifyTab(tabid); }, getTabId: function() @@ -157,6 +160,7 @@ var name = this.tabs[tabpos]; this.tabids = this.tabids.without(this.tabids[tabpos]); this.tabs = this.tabs.without(this.tabs[tabpos]); + this.tabtypes = this.tabtypes.without(this.tabtypes[tabpos]); // this.tabprefixs = this.tabprefixs.without(this.tabprefixs[tabpos]); tabpos--; if (tabpos<0) tabpos = 0; this.setTabById(this.tabids[tabpos]); @@ -188,6 +192,7 @@ //alert(name+'='+tabid); this.tabs.push(name); this.tabids.push(tabid); + this.tabtypes.push(type); // this.tabprefixs.push(prefix); var li_title = document.createElement('li'); @@ -197,6 +202,7 @@ li_title.appendChild(li_div); var img = document.createElement('img'); + img.setAttribute('id', '<?php echo $prefix; ?>tabimg'+tabid); if (type == 'ch') img.setAttribute('src', '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'); if (type == 'pv') @@ -235,9 +241,48 @@ $('<?php echo $prefix; ?>channels_list').appendChild(li_title); $('<?php echo $prefix; ?>channels_content').appendChild(div_content); + + return tabid; + }, + /** + * This function change the tab icon in order to catch the attention + */ + notifyTab: function(tabid) + { + var tabpos = this.tabids.indexOf(tabid); + var tabtype = this.tabtypes[tabpos]; + var img = $('<?php echo $prefix; ?>tabimg'+tabid); + if (img) + { + var src = ''; + if (tabtype == 'ch') + src = '<?php echo $c->getFileUrlFromTheme('images/ch-active.gif'); ?>'; + if (tabtype == 'pv') + src = '<?php echo $c->getFileUrlFromTheme('images/pv-active.gif'); ?>'; + preloadImages(src); + img.src = src; + } + }, - return tabid; + /** + * This function restore the tab icon to its default value + */ + unnotifyTab: function(tabid) + { + var tabpos = this.tabids.indexOf(tabid); + var tabtype = this.tabtypes[tabpos]; + var img = $('<?php echo $prefix; ?>tabimg'+tabid); + if (img) + { + var src = ''; + if (tabtype == 'ch') + src = '<?php echo $c->getFileUrlFromTheme('images/ch.gif'); ?>'; + if (tabtype == 'pv') + src = '<?php echo $c->getFileUrlFromTheme('images/pv.gif'); ?>'; + preloadImages(src); + img.src = src; + } } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-05-24 15:49:18
|
Revision: 502 Author: kerphi Date: 2006-05-24 08:48:55 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=502&view=rev Log Message: ----------- Replace the green default theme by a simple black/grey/white theme. Modified Paths: -------------- trunk/demo/index.php trunk/misc/tabs.svg trunk/themes/default/images/ch-active.gif trunk/themes/default/images/ch.gif trunk/themes/default/images/pv-active.gif trunk/themes/default/images/pv.gif trunk/themes/default/templates/style.css.tpl.php Added Paths: ----------- trunk/themes/green/ trunk/themes/green/images/ trunk/themes/green/images/ch-active.gif trunk/themes/green/images/ch.gif trunk/themes/green/images/pv-active.gif trunk/themes/green/images/pv.gif trunk/themes/green/images/shade.gif trunk/themes/green/templates/ trunk/themes/green/templates/style.css.tpl.php Removed Paths: ------------- trunk/themes/default/images/shade.gif Modified: trunk/demo/index.php =================================================================== --- trunk/demo/index.php 2006-05-23 21:16:00 UTC (rev 501) +++ trunk/demo/index.php 2006-05-24 15:48:55 UTC (rev 502) @@ -82,6 +82,7 @@ <li><a href="demo18_phpbb2_smiley_theme.php">demo18 - A chat with a customized smiley theme (phpbb2 theme)</a></li> <li><a href="demo28_blune_theme.php">demo28 - use a customized theme (blune theme)</a></li> <li><a href="demo28_mini_blune_theme.php">demo28 - use a customized theme (blune theme) - mini</a></li> + <li><a href="demo44_green_theme.php">demo44 - use a customized theme (green)</a></li> </ul> <h2>Translations</h2> Modified: trunk/misc/tabs.svg =================================================================== --- trunk/misc/tabs.svg 2006-05-23 21:16:00 UTC (rev 501) +++ trunk/misc/tabs.svg 2006-05-24 15:48:55 UTC (rev 502) @@ -14,11 +14,22 @@ id="svg2" sodipodi:version="0.32" inkscape:version="0.43" - sodipodi:docbase="/home/kerphi/public_html/pfc-1.x/misc" + sodipodi:docbase="D:\www\pfc\trunk\misc" sodipodi:docname="tabs.svg"> <defs id="defs4"> <linearGradient + id="linearGradient2373"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop2375" /> + <stop + style="stop-color:#a3a3a3;stop-opacity:1;" + offset="1" + id="stop2377" /> + </linearGradient> + <linearGradient id="linearGradient4008"> <stop style="stop-color:#fdfdf2;stop-opacity:1;" @@ -161,6 +172,136 @@ y1="390.89087" x2="487.51208" y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2359" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,-280.3086,109.3019)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2361" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-163.1934,-126.4271)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2207" + id="linearGradient2363" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-180.0754,165.0014)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2368" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-564.465,-124.8455)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2371" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,-681.5802,110.8835)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2392" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-564.465,-124.8455)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2421" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,-681.5802,110.8835)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2423" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-564.465,-124.8455)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2425" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-564.465,-124.8455)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2432" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.433136,0.433136,-0.433136,0.433136,-294.5944,117.2355)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2434" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-564.465,-124.8455)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2439" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-177.4792,-118.4935)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient2373" + id="linearGradient2444" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.707107,0.707107,-0.707107,0.707107,-218.8038,179.9249)" + x1="218.34671" + y1="390.89087" + x2="487.51208" + y2="390.89087" /> </defs> <sodipodi:namedview id="base" @@ -311,5 +452,131 @@ inkscape:export-filename="/home/kerphi/public_html/pfc-1.x/themes/default/images/pv-active.png" inkscape:export-xdpi="5.3160944" inkscape:export-ydpi="5.3160944" /> + <g + id="g2394" + inkscape:export-filename="D:\www\pfc\trunk\themes\default\images\pv.png" + inkscape:export-xdpi="4.8899999" + inkscape:export-ydpi="4.8899999"> + <path + style="fill:url(#linearGradient2371);fill-opacity:1.0;fill-rule:nonzero;stroke:#666666;stroke-width:7.60999441;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M -706.64028,381.29665 C -755.79255,381.91999 -795.28735,402.07196 -795.28735,426.79743 C -795.28736,450.48607 -759.03162,469.94746 -712.76577,472.08764 C -711.5269,474.92662 -710.18901,477.86326 -708.74591,480.87385 C -694.35859,510.88894 -643.68509,515.46035 -667.91582,507.73022 C -678.58721,504.32582 -687.32044,488.57099 -693.73851,471.99192 C -648.46195,469.37723 -613.28426,450.13292 -613.28426,426.79743 C -613.28426,401.67949 -654.04994,381.29665 -704.28582,381.29665 C -705.07075,381.29665 -705.8601,381.28676 -706.64028,381.29665 z " + id="path2325" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/ch.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <g + id="g2379"> + <path + inkscape:export-ydpi="5.3160944" + inkscape:export-xdpi="5.3160944" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + id="path2327" + d="M -605.37629,316.61129 C -685.61869,317.62891 -750.09504,350.52754 -750.09504,390.89254 C -750.09505,429.5649 -690.90657,461.33615 -615.3763,464.83005 C -613.35382,469.46477 -611.16968,474.2589 -608.81379,479.17379 C -585.3261,528.17424 -502.60023,535.63717 -542.15755,523.01754 C -559.57889,517.45976 -573.83612,491.73956 -584.3138,464.67379 C -510.39858,460.40523 -452.97004,428.98837 -452.97005,390.89254 C -452.97005,349.88683 -519.52112,316.61128 -601.53255,316.61129 C -602.81398,316.61129 -604.10261,316.59514 -605.37629,316.61129 z " + style="fill:url(#linearGradient2368);fill-opacity:1.0;fill-rule:nonzero;stroke:#666666;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" /> + <path + inkscape:export-ydpi="5.3160944" + inkscape:export-xdpi="5.3160944" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + d="M -717.86897,356.76009 C -713.4386,344.93948 -705.0037,344.90385 -693.8444,345.49446 C -679.53732,352.32521 -666.69445,361.49313 -651.47797,365.69273 C -638.00266,345.13599 -643.57712,345.172 -611.61456,366.24731 C -597.29959,379.22393 -625.57195,376.10051 -610.56317,346.84142 C -598.77562,335.00599 -540.37155,382.45846 -586.64626,352.7192 C -562.81283,347.32201 -572.8903,341.64616 -540.11896,362.86664 C -567.36245,347.36263 -550.4428,359.66787 -525.86952,353.31012 C -522.4794,349.49979 -517.88461,349.19974 -513.47434,347.72106 L -492.11576,364.23736 C -496.01745,365.37998 -500.60435,364.4674 -503.60786,368.50038 C -528.0149,376.24503 -543.3093,369.20965 -564.91145,352.26777 C -559.6961,355.28903 -535.00935,364.87356 -566.18361,370.06021 C -620.02499,337.48996 -588.62005,350.69102 -587.96421,360.77361 C -601.70606,387.6147 -616.51574,375.68722 -636.24232,355.15129 C -620.74663,364.54262 -612.44107,363.99163 -630.20142,382.14908 C -646.03133,379.27055 -659.13446,370.53515 -673.22866,362.40885 C -682.83694,361.01185 -690.26831,359.59791 -693.5596,370.12428 L -717.86897,356.76009 z " + id="path2329" + style="fill:#6e6e6e;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + inkscape:export-ydpi="5.3160944" + inkscape:export-xdpi="5.3160944" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + d="M -689.29754,405.33152 C -679.96339,381.632 -684.5537,380.75175 -654.20035,399.7503 C -622.63045,436.03316 -694.75714,381.99485 -636.26165,418.63665 C -630.16841,422.45347 -648.3879,410.90768 -654.45102,407.04319 C -642.98328,411.92392 -637.2031,406.4331 -629.03688,398.97433 C -609.07599,406.93419 -569.76221,442.48393 -604.89354,417.35983 C -590.8756,415.03512 -587.03064,399.74415 -581.45584,388.32499 C -569.63718,389.84924 -510.8015,435.43773 -557.53221,405.14176 C -544.3356,409.47532 -538.02309,403.15192 -530.26723,393.56146 C -475.67278,427.89325 -515.65161,400.8094 -515.93377,400.60321 L -495.0048,417.41385 C -509.5531,409.77026 -556.87031,382.21846 -507.91522,409.50041 C -515.93673,418.03048 -523.49947,425.53995 -536.89106,422.46821 C -557.33087,410.12971 -596.45972,380.76753 -558.79566,403.35213 C -565.3756,414.88215 -569.63351,430.097 -583.7568,434.10622 C -595.17942,427.94871 -657.49779,385.70885 -606.65298,414.473 C -615.13546,421.83989 -621.93485,428.23112 -633.99544,424.44525 C -661.8597,407.51316 -650.58345,425.54117 -679.29696,388.90227 C -650.90637,406.41296 -659.26861,395.57981 -664.98817,418.69571 L -689.29754,405.33152 z " + id="path2331" + style="fill:#6e6e6e;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> + </g> + <g + id="g2384" + transform="translate(-41.3246,298.4184)" + inkscape:export-filename="D:\www\pfc\trunk\themes\default\images\ch.png" + inkscape:export-xdpi="5.0207553" + inkscape:export-ydpi="5.0207553"> + <path + style="fill:url(#linearGradient2392);fill-opacity:1;fill-rule:nonzero;stroke:#666666;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M -605.37629,316.61129 C -685.61869,317.62891 -750.09504,350.52754 -750.09504,390.89254 C -750.09505,429.5649 -690.90657,461.33615 -615.3763,464.83005 C -613.35382,469.46477 -611.16968,474.2589 -608.81379,479.17379 C -585.3261,528.17424 -502.60023,535.63717 -542.15755,523.01754 C -559.57889,517.45976 -573.83612,491.73956 -584.3138,464.67379 C -510.39858,460.40523 -452.97004,428.98837 -452.97005,390.89254 C -452.97005,349.88683 -519.52112,316.61128 -601.53255,316.61129 C -602.81398,316.61129 -604.10261,316.59514 -605.37629,316.61129 z " + id="path2386" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#6e6e6e;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2388" + d="M -717.86897,356.76009 C -713.4386,344.93948 -705.0037,344.90385 -693.8444,345.49446 C -679.53732,352.32521 -666.69445,361.49313 -651.47797,365.69273 C -638.00266,345.13599 -643.57712,345.172 -611.61456,366.24731 C -597.29959,379.22393 -625.57195,376.10051 -610.56317,346.84142 C -598.77562,335.00599 -540.37155,382.45846 -586.64626,352.7192 C -562.81283,347.32201 -572.8903,341.64616 -540.11896,362.86664 C -567.36245,347.36263 -550.4428,359.66787 -525.86952,353.31012 C -522.4794,349.49979 -517.88461,349.19974 -513.47434,347.72106 L -492.11576,364.23736 C -496.01745,365.37998 -500.60435,364.4674 -503.60786,368.50038 C -528.0149,376.24503 -543.3093,369.20965 -564.91145,352.26777 C -559.6961,355.28903 -535.00935,364.87356 -566.18361,370.06021 C -620.02499,337.48996 -588.62005,350.69102 -587.96421,360.77361 C -601.70606,387.6147 -616.51574,375.68722 -636.24232,355.15129 C -620.74663,364.54262 -612.44107,363.99163 -630.20142,382.14908 C -646.03133,379.27055 -659.13446,370.53515 -673.22866,362.40885 C -682.83694,361.01185 -690.26831,359.59791 -693.5596,370.12428 L -717.86897,356.76009 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#6e6e6e;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2390" + d="M -689.29754,405.33152 C -679.96339,381.632 -684.5537,380.75175 -654.20035,399.7503 C -622.63045,436.03316 -694.75714,381.99485 -636.26165,418.63665 C -630.16841,422.45347 -648.3879,410.90768 -654.45102,407.04319 C -642.98328,411.92392 -637.2031,406.4331 -629.03688,398.97433 C -609.07599,406.93419 -569.76221,442.48393 -604.89354,417.35983 C -590.8756,415.03512 -587.03064,399.74415 -581.45584,388.32499 C -569.63718,389.84924 -510.8015,435.43773 -557.53221,405.14176 C -544.3356,409.47532 -538.02309,403.15192 -530.26723,393.56146 C -475.67278,427.89325 -515.65161,400.8094 -515.93377,400.60321 L -495.0048,417.41385 C -509.5531,409.77026 -556.87031,382.21846 -507.91522,409.50041 C -515.93673,418.03048 -523.49947,425.53995 -536.89106,422.46821 C -557.33087,410.12971 -596.45972,380.76753 -558.79566,403.35213 C -565.3756,414.88215 -569.63351,430.097 -583.7568,434.10622 C -595.17942,427.94871 -657.49779,385.70885 -606.65298,414.473 C -615.13546,421.83989 -621.93485,428.23112 -633.99544,424.44525 C -661.8597,407.51316 -650.58345,425.54117 -679.29696,388.90227 C -650.90637,406.41296 -659.26861,395.57981 -664.98817,418.69571 L -689.29754,405.33152 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + </g> + <g + id="g2446" + inkscape:export-filename="D:\www\pfc\trunk\themes\default\images\pv-active.png" + inkscape:export-xdpi="4.8867297" + inkscape:export-ydpi="4.8867297"> + <path + style="fill:url(#linearGradient2432);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.60999441;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M -319.65448,387.64868 C -368.80675,388.27202 -408.30155,408.42399 -408.30155,433.14946 C -408.30156,456.8381 -372.04582,476.29949 -325.77997,478.43967 C -324.5411,481.27865 -323.20321,484.21529 -321.76011,487.22588 C -307.37279,517.24097 -256.69929,521.81238 -280.93002,514.08225 C -291.60141,510.67785 -300.33464,494.92302 -306.75271,478.34395 C -261.47615,475.72926 -226.29846,456.48495 -226.29846,433.14946 C -226.29846,408.03152 -267.06414,387.64868 -317.30002,387.64868 C -318.08495,387.64868 -318.8743,387.63879 -319.65448,387.64868 z " + id="path2403" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/ch.png" + inkscape:export-xdpi="5.1439257" + inkscape:export-ydpi="5.1439257" /> + <path + style="fill:url(#linearGradient2439);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M -218.39049,322.96332 C -298.63289,323.98094 -363.10924,356.87957 -363.10924,397.24457 C -363.10925,435.91693 -303.92077,467.68818 -228.3905,471.18208 C -226.36802,475.8168 -224.18388,480.61093 -221.82799,485.52582 C -198.3403,534.52627 -115.61443,541.9892 -155.17175,529.36957 C -172.59309,523.81179 -186.85032,498.09159 -197.328,471.02582 C -123.41278,466.75726 -65.98424,435.3404 -65.98425,397.24457 C -65.98425,356.23886 -132.53532,322.96331 -214.54675,322.96332 C -215.82818,322.96332 -217.11681,322.94717 -218.39049,322.96332 z " + id="path2407" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2409" + d="M -330.88317,363.11212 C -326.4528,351.29151 -318.0179,351.25588 -306.8586,351.84649 C -292.55152,358.67724 -279.70865,367.84516 -264.49217,372.04476 C -251.01686,351.48802 -256.59132,351.52403 -224.62876,372.59934 C -210.31379,385.57596 -238.58615,382.45254 -223.57737,353.19345 C -211.78982,341.35802 -153.38575,388.81049 -199.66046,359.07123 C -175.82703,353.67404 -185.9045,347.99819 -153.13316,369.21867 C -180.37665,353.71466 -163.457,366.0199 -138.88372,359.66215 C -135.4936,355.85182 -130.89881,355.55177 -126.48854,354.07309 L -105.12996,370.58939 C -109.03165,371.73201 -113.61855,370.81943 -116.62206,374.85241 C -141.0291,382.59706 -156.3235,375.56168 -177.92565,358.6198 C -172.7103,361.64106 -148.02355,371.22559 -179.19781,376.41224 C -233.03919,343.84199 -201.63425,357.04305 -200.97841,367.12564 C -214.72026,393.96673 -229.52994,382.03925 -249.25652,361.50332 C -233.76083,370.89465 -225.45527,370.34366 -243.21562,388.50111 C -259.04553,385.62258 -272.14866,376.88718 -286.24286,368.76088 C -295.85114,367.36388 -303.28251,365.94994 -306.5738,376.47631 L -330.88317,363.11212 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2411" + d="M -302.31174,411.68355 C -292.97759,387.98403 -297.5679,387.10378 -267.21455,406.10233 C -235.64465,442.38519 -307.77134,388.34688 -249.27585,424.98868 C -243.18261,428.8055 -261.4021,417.25971 -267.46522,413.39522 C -255.99748,418.27595 -250.2173,412.78513 -242.05108,405.32636 C -222.09019,413.28622 -182.77641,448.83596 -217.90774,423.71186 C -203.8898,421.38715 -200.04484,406.09618 -194.47004,394.67702 C -182.65138,396.20127 -123.8157,441.78976 -170.54641,411.49379 C -157.3498,415.82735 -151.03729,409.50395 -143.28143,399.91349 C -88.68698,434.24528 -128.66581,407.16143 -128.94797,406.95524 L -108.019,423.76588 C -122.5673,416.12229 -169.88451,388.57049 -120.92942,415.85244 C -128.95093,424.38251 -136.51367,431.89198 -149.90526,428.82024 C -170.34507,416.48174 -209.47392,387.11956 -171.80986,409.70416 C -178.3898,421.23418 -182.64771,436.44903 -196.771,440.45825 C -208.19362,434.30074 -270.51199,392.06088 -219.66718,420.82503 C -228.14966,428.19192 -234.94905,434.58315 -247.00964,430.79728 C -274.8739,413.86519 -263.59765,431.8932 -292.31116,395.2543 C -263.92057,412.76499 -272.28281,401.93184 -278.00237,425.04774 L -302.31174,411.68355 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + </g> + <g + id="g2452" + inkscape:export-filename="D:\www\pfc\trunk\themes\default\images\ch-active.png" + inkscape:export-xdpi="5.0207553" + inkscape:export-ydpi="5.0207553"> + <path + style="fill:url(#linearGradient2444);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.61000013;stroke-linejoin:miter;stroke-miterlimit:2.5;stroke-dasharray:none;stroke-opacity:1" + d="M -259.71509,621.38169 C -339.95749,622.39931 -404.43384,655.29794 -404.43384,695.66294 C -404.43385,734.3353 -345.24537,766.10655 -269.7151,769.60045 C -267.69262,774.23517 -265.50848,779.0293 -263.15259,783.94419 C -239.6649,832.94464 -156.93903,840.40757 -196.49635,827.78794 C -213.91769,822.23016 -228.17492,796.50996 -238.6526,769.44419 C -164.73738,765.17563 -107.30884,733.75877 -107.30885,695.66294 C -107.30885,654.65723 -173.85992,621.38168 -255.87135,621.38169 C -257.15278,621.38169 -258.44141,621.36554 -259.71509,621.38169 z " + id="path2415" + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2417" + d="M -372.20777,661.53049 C -367.7774,649.70988 -359.3425,649.67425 -348.1832,650.26486 C -333.87612,657.09561 -321.03325,666.26353 -305.81677,670.46313 C -292.34146,649.90639 -297.91592,649.9424 -265.95336,671.01771 C -251.63839,683.99433 -279.91075,680.87091 -264.90197,651.61182 C -253.11442,639.77639 -194.71035,687.22886 -240.98506,657.4896 C -217.15163,652.09241 -227.2291,646.41656 -194.45776,667.63704 C -221.70125,652.13303 -204.7816,664.43827 -180.20832,658.08052 C -176.8182,654.27019 -172.22341,653.97014 -167.81314,652.49146 L -146.45456,669.00776 C -150.35625,670.15038 -154.94315,669.2378 -157.94666,673.27078 C -182.3537,681.01543 -197.6481,673.98005 -219.25025,657.03817 C -214.0349,660.05943 -189.34815,669.64396 -220.52241,674.83061 C -274.36379,642.26036 -242.95885,655.46142 -242.30301,665.54401 C -256.04486,692.3851 -270.85454,680.45762 -290.58112,659.92169 C -275.08543,669.31302 -266.77987,668.76203 -284.54022,686.91948 C -300.37013,684.04095 -313.47326,675.30555 -327.56746,667.17925 C -337.17574,665.78225 -344.60711,664.36831 -347.8984,674.89468 L -372.20777,661.53049 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + <path + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path2419" + d="M -343.63634,710.10192 C -334.30219,686.4024 -338.8925,685.52215 -308.53915,704.5207 C -276.96925,740.80356 -349.09594,686.76525 -290.60045,723.40705 C -284.50721,727.22387 -302.7267,715.67808 -308.78982,711.81359 C -297.32208,716.69432 -291.5419,711.2035 -283.37568,703.74473 C -263.41479,711.70459 -224.10101,747.25433 -259.23234,722.13023 C -245.2144,719.80552 -241.36944,704.51455 -235.79464,693.09539 C -223.97598,694.61964 -165.1403,740.20813 -211.87101,709.91216 C -198.6744,714.24572 -192.36189,707.92232 -184.60603,698.33186 C -130.01158,732.66365 -169.99041,705.5798 -170.27257,705.37361 L -149.3436,722.18425 C -163.8919,714.54066 -211.20911,686.98886 -162.25402,714.27081 C -170.27553,722.80088 -177.83827,730.31035 -191.22986,727.23861 C -211.66967,714.90011 -250.79852,685.53793 -213.13446,708.12253 C -219.7144,719.65255 -223.97231,734.8674 -238.0956,738.87662 C -249.51822,732.71911 -311.83659,690.47925 -260.99178,719.2434 C -269.47426,726.61029 -276.27365,733.00152 -288.33424,729.21565 C -316.1985,712.28356 -304.92225,730.31157 -333.63576,693.67267 C -305.24517,711.18336 -313.60741,700.35021 -319.32697,723.46611 L -343.63634,710.10192 z " + inkscape:export-filename="/home/kerphi/public_html/pfc-1.0/trunk/themes/default/images/pv.png" + inkscape:export-xdpi="5.3160944" + inkscape:export-ydpi="5.3160944" /> + </g> </g> </svg> Modified: trunk/themes/default/images/ch-active.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/images/ch.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/images/pv-active.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/images/pv.gif =================================================================== (Binary files differ) Deleted: trunk/themes/default/images/shade.gif =================================================================== (Binary files differ) Modified: trunk/themes/default/templates/style.css.tpl.php =================================================================== --- trunk/themes/default/templates/style.css.tpl.php 2006-05-23 21:16:00 UTC (rev 501) +++ trunk/themes/default/templates/style.css.tpl.php 2006-05-24 15:48:55 UTC (rev 502) @@ -7,11 +7,8 @@ div#<?php echo $prefix; ?>container { <?php if ($width!="") { ?>width: <?php echo $width; ?>;<?php } ?> border: 1px solid #555; - color: #338822; - background-color: #d9edd8; - background-image: url(<?php echo $c->getFileUrlFromTheme('images/shade.gif'); ?>); - background-position: right; - background-repeat: repeat-y; + color: #000; + background-color: #FFF; padding: 10px; min-height: 20px; } @@ -31,7 +28,7 @@ border-right: 1px solid #555; border-left: 1px solid #555; border-bottom: 1px solid #555; - background-color: #e0edde; + background-color: #FAFAFA; margin-top: 5px; } div.<?php echo $prefix; ?>content { @@ -56,16 +53,16 @@ border-right: 1px solid #555; border-left: 1px solid #555; border-bottom: 1px solid #555; - background-color: #7dc073; + background-color: #DDD; } ul#<?php echo $prefix; ?>channels_list li.selected div { - background-color: #e0edde; - border-bottom: 1px solid #e0edde; + background-color: #FAFAFA; + border-bottom: 1px solid #FAFAFA; color: #000; font-weight: bold; } ul#<?php echo $prefix; ?>channels_list li > div:hover { - background-color: #e0edde; + background-color: #FAFAFA; } ul#<?php echo $prefix; ?>channels_list li a { color: #000; @@ -102,8 +99,8 @@ height: 60%; overflow: auto; text-align: center; - border: 1px solid #000; - background-color: #EEE; + background-color: #FFF; + /* borders are drawn by the javascript routines */ } div.<?php echo $prefix; ?>online { position: absolute; @@ -111,11 +108,11 @@ top: 0; padding: 0; overflow: auto; - border: black solid 1px; - color: #000; - background-color: #DDD; width: 20%; height: 40%; + color: #000; /* colors can be overriden by js nickname colorization */ + background-color: #FFF; + /* borders are drawn by the javascript routines */ } div.<?php echo $prefix; ?>online ul { list-style-type: none; @@ -125,9 +122,9 @@ margin-right: 8px; } div.<?php echo $prefix; ?>online li { - border-bottom: 1px solid #DDD; font-weight: bold; font-size: 90%; + /* bottom borders are drawn by the javascript routines */ } h2#<?php echo $prefix; ?>title { @@ -150,7 +147,7 @@ } div.<?php echo $prefix; ?>oldmsg { - background-color: #dde4dc; + background-color: #EEE; } span.<?php echo $prefix; ?>heure, span.<?php echo $prefix; ?>date { @@ -168,7 +165,8 @@ } input#<?php echo $prefix; ?>words { - border: black solid 1px; + border: #555 solid 1px; + background-color: #FAFAFA; width: 100%; height: 1.3em; } @@ -199,10 +197,12 @@ cursor: pointer; } div.<?php echo $prefix; ?>btn img { - border: 1px solid #393; /* same as container color */ + /* doesn't work */ + /* border: 1px solid #393;*/ /* same as container color */ } div.<?php echo $prefix; ?>btn img:hover { - border: 1px solid #000; + /* doesn't work */ + /* border: 1px solid #000;*/ } p#<?php echo $prefix; ?>errors { @@ -212,7 +212,7 @@ height: 18px; border: black solid 1px; - color: #EC4A1F; + color: #FC4A1F; background-color: #FFBA76; text-align: center; font-style: italic; Added: trunk/themes/green/images/ch-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/green/images/ch-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/green/images/ch.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/green/images/ch.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/green/images/pv-active.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/green/images/pv-active.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/green/images/pv.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/green/images/pv.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/green/images/shade.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/green/images/shade.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/green/templates/style.css.tpl.php =================================================================== --- trunk/themes/green/templates/style.css.tpl.php (rev 0) +++ trunk/themes/green/templates/style.css.tpl.php 2006-05-24 15:48:55 UTC (rev 502) @@ -0,0 +1,109 @@ +div#<?php echo $prefix; ?>container { + border: 1px solid #555; + color: #338822; + background-color: #d9edd8; + background-image: url(<?php echo $c->getFileUrlFromTheme('images/shade.gif'); ?>); + background-position: right; + background-repeat: repeat-y; +} + +div#<?php echo $prefix; ?>channels_content { + border-right: 1px solid #555; + border-left: 1px solid #555; + border-bottom: 1px solid #555; + background-color: #e0edde; +} + +/* channels tabpanes */ +ul#<?php echo $prefix; ?>channels_list { + border-bottom: 1px solid #555; +} +ul#<?php echo $prefix; ?>channels_list li div { + border-top: 1px solid #555; + border-right: 1px solid #555; + border-left: 1px solid #555; + border-bottom: 1px solid #555; + background-color: #7dc073; +} +ul#<?php echo $prefix; ?>channels_list li.selected div { + background-color: #e0edde; + border-bottom: 1px solid #e0edde; + color: #000; +} +ul#<?php echo $prefix; ?>channels_list li > div:hover { + background-color: #e0edde; +} +ul#<?php echo $prefix; ?>channels_list li a { + color: #000; +} + +div.<?php echo $prefix; ?>smileys { + border: 1px solid #000; + background-color: #EEE; +} +div.<?php echo $prefix; ?>online { + border: black solid 1px; + color: #000; + background-color: #DDD; +} +div.<?php echo $prefix; ?>online li { + border-bottom: 1px solid #DDD; +} + +h2#<?php echo $prefix; ?>title { + font-size: 110%; +} + +div.<?php echo $prefix; ?>oldmsg { + background-color: #dde4dc; +} + +span.<?php echo $prefix; ?>heure, span.<?php echo $prefix; ?>date { + color: #bebebe; +} + +span.<?php echo $prefix; ?>nick { + color: #fbac17; +} + +input#<?php echo $prefix; ?>words { + border: black solid 1px; +} + +input#<?php echo $prefix; ?>handle { + border: black solid 1px; + color: black; + <?php if ($nick!="") { ?>background-color: #CCC;<?php } ?> +} + +div.<?php echo $prefix; ?>btn img { + border: 1px solid #393; /* same as container color */ +} +div.<?php echo $prefix; ?>btn img:hover { + border: 1px solid #000; +} + +p#<?php echo $prefix; ?>errors { + border: black solid 1px; + color: #EC4A1F; + background-color: #FFBA76; +} + +/* commands */ +.<?php echo $prefix; ?>cmd_msg { + color: black; +} +.<?php echo $prefix; ?>cmd_me { + font-style: italic; + color: black; +} +.<?php echo $prefix; ?>cmd_notice { + font-style: italic; + color: #888; +} +pre.<?php echo $prefix; ?>cmd_rehash, +pre.<?php echo $prefix; ?>cmd_help +{ + color: #888; + font-style: italic; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-06-14 12:25:42
|
Revision: 568 Author: kerphi Date: 2006-06-14 05:25:31 -0700 (Wed, 14 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=568&view=rev Log Message: ----------- Add the ckeckmd5.php script to the tar/zip archive Modified Paths: -------------- trunk/misc/checkmd5 trunk/misc/tarSource Modified: trunk/misc/checkmd5 =================================================================== --- trunk/misc/checkmd5 2006-06-13 20:15:32 UTC (rev 567) +++ trunk/misc/checkmd5 2006-06-14 12:25:31 UTC (rev 568) @@ -1,12 +1,46 @@ -cd .. -echo "<?php" -for f in `find . -name "*.php"` +#!/bin/sh + +if [ $# -le 1 ] +then + echo "Usage: `basename $0` phpfreechat_path checkmd5_output_filename" + echo "exempel: `basename $0` ~/pfc/misc/phpfreechat ~/pfc/misc/phpfreechat/checkmd5.php" + exit; +fi + +PFC_PATH=$1 +DST=$2 +TMP=/tmp/checkmd5.php + +if ( test -f $DST ) +then + echo "$DST should not exist. Please delete this file." + exit; +fi + +if ( test ! -f $PFC_PATH/version ) +then + echo "$PFC_PATH/version doesn't exist." + exit; +fi + +echo "--> Creating $DST" + +cd $PFC_PATH +echo "<?php" > $TMP +echo 'echo "<h1>Checking phpfreechat files validity</h1>";' >> $TMP +echo 'echo "<pre>\n";' >> $TMP +for f in `find . -type f` do sum=`md5sum $f | sed "s/\s.*$//g"` - echo 'if (md5(file_get_contents("'$f'")) == "'$sum'")' - echo ' echo "ok - '$f'\n";' - echo 'else' - echo ' echo "corrupted - '$f' (please replace this file by a correct one)\n";' + echo 'if (md5(file_get_contents("'$f'")) == "'$sum'")' >> $TMP + echo ' echo "<span style=\"color:#3A3\">ok - '$f'</span>\n";' >> $TMP + echo 'else' >> $TMP + echo ' echo "<span style=\"color:#F33\">corrupted - '$f' (please replace this file by a correct one)</span>\n";' >> $TMP done -echo "?>" -cd - +echo 'echo "</pre>\n";' >> $TMP +echo "?>" >> $TMP +cd - >/dev/null + +cp $TMP $DST + +echo "---> Done, $DST created" Modified: trunk/misc/tarSource =================================================================== --- trunk/misc/tarSource 2006-06-13 20:15:32 UTC (rev 567) +++ trunk/misc/tarSource 2006-06-14 12:25:31 UTC (rev 568) @@ -1,13 +1,17 @@ #!/bin/sh -echo "-- creating archive --" +NAME=phpfreechat-`cat ../version` + +echo "-- creating archive $NAME --" echo "-> copying files" -rm -rf phpfreechat-`cat ../version` -svn export .. ./phpfreechat-`cat ../version` +rm -rf ./$NAME +svn export .. ./$NAME +echo "-> creating checkmd5.php file" +./checkmd5 ./$NAME ./$NAME/checkmd5.php echo "-> creating .tar.gz" -tar czfp phpfreechat-`cat ../version`.tar.gz phpfreechat-`cat ../version`/ +tar czfp $NAME.tar.gz ./$NAME echo "-> creating .zip" -zip -Tq9r phpfreechat-`cat ../version`.zip phpfreechat-`cat ../version`/ +zip -Tq9r $NAME.zip ./$NAME echo "-> removing temporary files" -rm -rf phpfreechat-`cat ../version` -echo "-- creating archive, done --" +rm -rf ./$NAME +echo "-- creating archive $NAME, done --" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-29 21:18:20
|
Revision: 720 Author: kerphi Date: 2006-08-29 14:18:06 -0700 (Tue, 29 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=720&view=rev Log Message: ----------- add a script to upload release on sourceforge Modified Paths: -------------- trunk/misc/tarSource Added Paths: ----------- trunk/misc/sendSource Added: trunk/misc/sendSource =================================================================== --- trunk/misc/sendSource (rev 0) +++ trunk/misc/sendSource 2006-08-29 21:18:06 UTC (rev 720) @@ -0,0 +1,11 @@ +#!/bin/sh + +NAME_TGZ=phpfreechat-`cat ../version`.tar.gz +NAME_ZIP=phpfreechat-`cat ../version`.zip +PFCSETUP_TGZ=pfcsetup-`cat ../version`.tar.gz +PFCSETUP_ZIP=pfcsetup-`cat ../version`.zip + +lftp -c "mput -O ftp://upload.sourceforge.net/incoming/ $NAME_TGZ" +lftp -c "mput -O ftp://upload.sourceforge.net/incoming/ $NAME_ZIP" +lftp -c "mput -O ftp://upload.sourceforge.net/incoming/ $PFCSETUP_TGZ" +lftp -c "mput -O ftp://upload.sourceforge.net/incoming/ $PFCSETUP_ZIP" Property changes on: trunk/misc/sendSource ___________________________________________________________________ Name: svn:executable + * Modified: trunk/misc/tarSource =================================================================== --- trunk/misc/tarSource 2006-08-29 21:06:57 UTC (rev 719) +++ trunk/misc/tarSource 2006-08-29 21:18:06 UTC (rev 720) @@ -12,13 +12,12 @@ echo "-> creating checkmd5.php file" ./checkmd5 ./$NAME ./$NAME/checkmd5.php -echo "-> creating .tar.gz" +echo "-> creating $NAME.tar.gz" tar czfp $NAME.tar.gz ./$NAME - -echo "-> creating .zip" +echo "-> creating $NAME.zip" zip -Tq9r $NAME.zip ./$NAME -echo "-> creating $PFCSETUPNAME" +echo "-> creating $PFCSETUPNAME.tar.gz" rm -rf ./$PFCSETUPNAME svn export ../contrib/pfcInstaller2 $PFCSETUPNAME rm -rf ./$PFCSETUPNAME/.registry @@ -37,6 +36,8 @@ echo "$NAME.tar.gz" > $PFCSETUPNAME/archive echo `pwd` >> $PFCSETUPNAME/mirrors tar czfp $PFCSETUPNAME.tar.gz ./$PFCSETUPNAME +echo "-> creating $PFCSETUPNAME.zip" +zip -Tq9r $PFCSETUPNAME.zip ./$PFCSETUPNAME echo "-> removing temporary files" rm -rf ./$NAME This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gpi...@us...> - 2007-08-01 03:10:49
|
Revision: 1065 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1065&view=rev Author: gpinzone Date: 2007-07-31 20:10:49 -0700 (Tue, 31 Jul 2007) Log Message: ----------- Better PNG lossless compression used. Modified Paths: -------------- trunk/misc/logo_80x15.png trunk/misc/logo_88x31.png Modified: trunk/misc/logo_80x15.png =================================================================== (Binary files differ) Modified: trunk/misc/logo_88x31.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-08-30 12:06:54
|
Revision: 1167 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1167&view=rev Author: kerphi Date: 2007-08-30 05:06:57 -0700 (Thu, 30 Aug 2007) Log Message: ----------- rename the file to a more explicite name Added Paths: ----------- trunk/misc/generate-doc.inc.php Removed Paths: ------------- trunk/misc/generate-doc-from-svn.php Deleted: trunk/misc/generate-doc-from-svn.php =================================================================== --- trunk/misc/generate-doc-from-svn.php 2007-08-30 12:05:55 UTC (rev 1166) +++ trunk/misc/generate-doc-from-svn.php 2007-08-30 12:06:57 UTC (rev 1167) @@ -1,80 +0,0 @@ -<?php - -/** - * This script is used to parse the parameter descriptions in pfcglobalconfig.class.php - * So that the official doc is keept up to date. - */ -function pfc_generate_doc($f = NULL) -{ - $f = ($f != NULL) ? $f : dirname(__FILE__).'/../src/pfcglobalconfig.class.php'; - - $ct_params = array(); -// $ct_params['http'] = array( 'proxy' => 'tcp://proxyout.inist.fr:8080', 'request_fulluri' => true ); - $ct = stream_context_create($ct_params); - $data = file_get_contents($f, false, $ct); - - if (preg_match('/class pfcGlobalConfig/',$data,$matches, PREG_OFFSET_CAPTURE, $offset)) - { - $offset_start = $matches[0][1]; - } - if (preg_match('/function pfcGlobalConfig/', $data, $matches, PREG_OFFSET_CAPTURE, $offset)) - { - $offset_end = $matches[0][1]; - } - - $offset = $offset_start; - $plist = array(); - $continue = true; - while ($offset < $offset_end) - { - $p = array(); - - // search for the begining of the description - if (preg_match('/\/\*\*/', $data, $matches1, PREG_OFFSET_CAPTURE, $offset)) - $offset1 = $matches1[0][1]; - else - $offset = $offset_end; - - // search for the end of the description - if ($offset1 < $offset_end && - preg_match('/\*\//', $data, $matches3, PREG_OFFSET_CAPTURE, $offset)) - { - $offset3 = $matches3[0][1]; - - // search for the parameter description - $p['desc'] = ''; - while($offset2 < $offset3) - { - if (preg_match('/\s+\*\s+(.*)/', $data, $matches2, PREG_OFFSET_CAPTURE, $offset)) - { - $offset2 = $matches2[1][1]; - if ($offset2 < $offset3) - { - $offset = $offset2; - $p['desc'] .= ' '.$matches2[1][0]; - } - } - else - break; - } - $p['desc'] = trim($p['desc']); - - // search for the parameter name/default value - if (preg_match('/var\s+\$([a-z_]+)\s+=\s+(.*);/i', $data, $matches4, PREG_OFFSET_CAPTURE, $offset)) - { - $offset = $matches4[1][1]; - $p['name'] = $matches4[1][0]; - $p['value'] = $matches4[2][0]; - } - else - $offset = $offset_end; - } - else - $offset = $offset_end; - - if (count($p) > 0) $plist[] = $p; - } - return $plist; -} - -?> \ No newline at end of file Copied: trunk/misc/generate-doc.inc.php (from rev 1166, trunk/misc/generate-doc-from-svn.php) =================================================================== --- trunk/misc/generate-doc.inc.php (rev 0) +++ trunk/misc/generate-doc.inc.php 2007-08-30 12:06:57 UTC (rev 1167) @@ -0,0 +1,80 @@ +<?php + +/** + * This script is used to parse the parameter descriptions in pfcglobalconfig.class.php + * So that the official doc is keept up to date. + */ +function pfc_generate_doc($f = NULL) +{ + $f = ($f != NULL) ? $f : dirname(__FILE__).'/../src/pfcglobalconfig.class.php'; + + $ct_params = array(); +// $ct_params['http'] = array( 'proxy' => 'tcp://proxyout.inist.fr:8080', 'request_fulluri' => true ); + $ct = stream_context_create($ct_params); + $data = file_get_contents($f, false, $ct); + + if (preg_match('/class pfcGlobalConfig/',$data,$matches, PREG_OFFSET_CAPTURE, $offset)) + { + $offset_start = $matches[0][1]; + } + if (preg_match('/function pfcGlobalConfig/', $data, $matches, PREG_OFFSET_CAPTURE, $offset)) + { + $offset_end = $matches[0][1]; + } + + $offset = $offset_start; + $plist = array(); + $continue = true; + while ($offset < $offset_end) + { + $p = array(); + + // search for the begining of the description + if (preg_match('/\/\*\*/', $data, $matches1, PREG_OFFSET_CAPTURE, $offset)) + $offset1 = $matches1[0][1]; + else + $offset = $offset_end; + + // search for the end of the description + if ($offset1 < $offset_end && + preg_match('/\*\//', $data, $matches3, PREG_OFFSET_CAPTURE, $offset)) + { + $offset3 = $matches3[0][1]; + + // search for the parameter description + $p['desc'] = ''; + while($offset2 < $offset3) + { + if (preg_match('/\s+\*\s+(.*)/', $data, $matches2, PREG_OFFSET_CAPTURE, $offset)) + { + $offset2 = $matches2[1][1]; + if ($offset2 < $offset3) + { + $offset = $offset2; + $p['desc'] .= ' '.$matches2[1][0]; + } + } + else + break; + } + $p['desc'] = trim($p['desc']); + + // search for the parameter name/default value + if (preg_match('/var\s+\$([a-z_]+)\s+=\s+(.*);/i', $data, $matches4, PREG_OFFSET_CAPTURE, $offset)) + { + $offset = $matches4[1][1]; + $p['name'] = $matches4[1][0]; + $p['value'] = $matches4[2][0]; + } + else + $offset = $offset_end; + } + else + $offset = $offset_end; + + if (count($p) > 0) $plist[] = $p; + } + return $plist; +} + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |