Tvorba služby Upload v CMS Joomla 1.5.23
Použity dva moduty simple file upload v 1.3 a simlpe file list v 1.0. Moduly zobrazeny v článku pomocí komponenty modules anywhere. Článek pak zobrazen skrze menu na webu.
úprava vzhledů, aby navazovalo v /modules/mod_simplefileuploadv1.3/tmpl/default.php pod. pro list
adresáž s uploady zabezpečen .htacceess, původně řešení pro Zen Cart
#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
### This part says to deny access to EVERYTHING. Afterwards, you'll allow access to JUST the permitted items. See next FilesMatch section.
<FilesMatch .*>
Order Deny,Allow
Deny from all
</FilesMatch>
### NOTE: Add only appropriate PERMITTED filetypes to this list, depending on which folder you're protecting:
# (JPG|jpg|JPEG|jpeg|GIF|gif|PNG|png|pdf|PDF)
<FilesMatch .*\.(JPG|jpg|JPEG|jpeg|GIF|gif|PNG|png|pdf|PDF)>
Order Deny,Allow
Allow from all
</FilesMatch>
# This code is great for directories where "NO" script should be run from
# but for whatever reason, you need Directory permissions to be 777 - which is wide-open and insecure by itself.
# Examples Directories would include: any 'images' dir., the 'bmz' dir. if using ImageHandler 2, the html_includes languages folder, etc
# Prevent directory viewing and the ability of any scripts to run.
# No type of script, be it PHP, PERL or whatever can normally be executed if ExecCGI is disabled.
OPTIONS -Indexes -ExecCG
Úprava Login formulář po neoprávněném přístupu na stránky s oprávněním registrovaní v J! 1.5.23
v soboru /components/com_user/views/login/view.html.php upravena poloha obrázku
$params->def( 'image_login_align', 'right' );
$params->def( 'image_logout_align', 'right' );
sociální tlačítka v hlavě stránky
Použity moduly mod_gtranslate, mod_facelike, mod_search, mod_custom. V mod_custom využito článku k spojení mod_facelike a kodu google+1 (spojeno komponentou modules anywhere). Druhý řádek z divů float: right; do position search - mod_search, mod_gtranslate, mod_custom ( uvnitř zde kód addthis.com ) . Na webu zobrazeno z index.php zapnutím příslušných modulů.
použito addthis.com, facebook like a google+1 tlačítka, modules anywhere a insert code (php do článku)
addthis.com
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style " style="width:150px;" addthis:url="<?php echo $_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI'];?>">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4de53dc55b4426e6"></script>
<!-- AddThis Button END -->
faceboook a google+1
<div style="float:right;"><!-- Umístěte tento tag v části <head> nebo těsně před uzavíracím tagem </body> --><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><!-- Umístěte tento tag tam, kde se má tlačítko +1 zobrazit --><div class="g-plusone" data-size="standard" data-count="true" data-href="http://<?php echo $_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI'];?>"></div></div><div style="float: right;margin-top:0px;">module Face Like Button Module</div>
Pozn.: module Face Like Button Module = v kodu -slozena zavorka- module Face Like Button Module-slozena zavorka-
validace
addthis
http://www.addthis.com/help/client-api#valid-xhtml
g:plusone
http://stackoverflow.com/questions/6217434/google-1-button-not-w3c-compliant
http://diskuse.jakpsatweb.cz/?action=vthread&forum=4&topic=127604
fb like button
http://joomlafree4u.com/component/jdownloads/viewdownload/5-joomla-15--modules/26-modfacelikezip
modifikace DTD deklarace XHTML
http://www.alistapart.com/articles/customdtd/xhtml1-transitional.dtd
na konec souboru přidáno
<!-- addthis -->
<!ATTLIST div addthis:url CDATA #IMPLIED>
<!ATTLIST div addthis:title CDATA #IMPLIED>
<!-- google+1 -->
<!ATTLIST div data-size CDATA #IMPLIED>
<!ATTLIST div data-count CDATA #IMPLIED>
<!ATTLIST div data-href CDATA #IMPLIED>
<!-- facelike -->
<!ATTLIST iframe allowTransparency CDATA #IMPLIED>
|