понедельник, 28 января 2008 г.

Mount windows share

full var:
mount_smbfs -I IP_SERV -N -W DOMAIN_WORKGROUP //USER@NETBIOS_NAME_SERV/SHARE /MNT/SHARE
, -N - no password

short var:
mount_smbfs -I IP_SERV //USER@NETBIOS_NAME_SERV/SHARE /MNT/SHARE

четверг, 24 января 2008 г.

Use a form with multiple checkboxes

If you want to use a form with multiple checkboxes (e.g. one per row) and assign the same name to each checkbox then the name needs to end with []. This tells PHP to put all checked values into an array variable.
For example:
<input type="checkbox" name="id[]" value="value_1">
<input type="checkbox" name="id[]" value="value_2">
..
<input type="checkbox" name="id[]" value="value_x">

You can now retrieve all values by using:
$values = $_POST['id'];

If the name does not end with [], then only a single value will be available via the $_POST variable even if the user checks several checkboxes.

source

вторник, 22 января 2008 г.

phpBB3 hide "Statistics" and "Who is online"

Set parameter "General"-"Server Configuration"-"Load settings"-"Enable online user listings" - NO

Change:
<!-- IF NEWEST_USER -->
< h3>{L_STATISTICS}</h3>
< p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}< /p>
<!-- ENDIF -->

To:
<!-- IF NEWEST_USER -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
< h3>{L_STATISTICS}</h3>
< p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}< /p>
<!-- ENDIF -->
<!-- ENDIF -->

Избранные линки

Design:
http://www.webdesignerwall.com

Красивые таблицы с применением DHTML/Javascript/AJAX:
http://cyrill.co.uk/2008/01/14/beautiful-js-grids/

CMS:
http://opensourcecms.com

43 примера реализации всплывающих подсказок с помощью AJAX, JavaScript и CSS
http://www.w3school.ru/blog/web-development/43-tooltips-scripts-ajax-javascript-css-dhtml.html

phpBB3 login problem

This often happens when the cookie domain is set incorrectly. Cookie settings are tricky, so the default ones may work or they may not. Many of you have mentioned that this only occurs on IE, which means that it is not handling things properly. If you are having this problem, then try changing the cookie domain so that it has 2 dots ('.example.com' but 'phpbb.co.uk'). After you have made this change, you will need to clear your browser's cookies (at least the ones that have to do with your site) and if you're using IE, close it and open it again.

If you have access to phpMyAdmin, you may wish to TRUNCATE the sessions table.

source