Помощь - Поиск - Пользователи - Календарь
Полная версия: Faq
????? > ?????? > ?????? Files
Snake
??????. ??? ?????????? ???? ? ??????? 12:05 ?? ???????, 12:05

???????

???? ? ?????? modules/files/

???
// ????
        $_TIME = time()+($config['date_adjust']*60);
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME))
        $tpl->set('{date}',  $lang['time_heute'].langdate("H:i", $row['date']));
        elseif (date(Ymd, $row['date']) ==     date(Ymd, ($_TIME - 86400)))
        $tpl->set('{date}',  $lang['time_gestern'].langdate("H:i", $row['date']));
        else
        $tpl->set('{date}',  langdate($config['timestamp_active'], $row['date']));
// End ????


? ???????? ??

???
// ????
        $_TIME = time()+($config['date_adjust']*60);
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME))
        $tpl->set('{date}',  $lang['time_heute'].", ".langdate("H:i", $row['date']));
        elseif (date(Ymd, $row['date']) ==     date(Ymd, ($_TIME - 86400)))
        $tpl->set('{date}',  $lang['time_gestern'].", ".langdate("H:i", $row['date']));
        else
        $tpl->set('{date}',  langdate($config['timestamp_active'], $row['date']));
// End ????
Snake
??????: ??? ???? ???? ? ??? ???? ???????? ?????????? ?????? ??? ???? ?????? ? ??????

???????

???? ?? ?????? ?????? ????? ??????, ?? ?????? ??? ???????? ?????? (???????? kpk) ? ? ????? ??? ???? ???????? ??? ????.
????????? ?????? - ????. ????? ?? ?????? ??????????????? ????? ????????.


??????: ????? ?? ????????? ?????? ?? ????????

???????.

??, ?????. ?.?. ?????? ????????????? ? ?????, ?? ??????? ?? ????????? ?????? ??????? ??????????? ???? ? ??????? ?????? ????????? ?????, ?.?. ?? ?????? ????? ?????? ???? http://www.???????.ru/
Snake
??????: ??? ???????, ????? ?? ?????????????? ?????? ????????? ???????????? ??????????? ? ? ??????? ? ?? ? ???????
??? ?????? ?????? "|" ??? ?????????????? ?????? ??????????

???????:
???? files_func.cat.php
??????? ? ???????? ??? ?????? ?? ?????? ??????????.

???
$tpl->set('[/full-link]',"</a>  | ");


????? ??????? ?????????? ?????? auto_category.tpl
??????: ??? ??????? ??? ???

???????????
Snake
??? ?? ????????? ???. 15 wmz ?????.
?????
??????(Snake @ 30.8.2008, 20:22) *

??? ?? ????????? ???. 15 wmz ?????.


??? ??? 2 ??????? 15$ ??????!? biggrin.gif ? ? ????.
Snake
??????
??? ??? 2 ??????? 15$ ??????!? ? ? ????.

???? ? ???, ??? ???? ??? ??????????????. ? ? ???????? ????????????? ?? ?????.
Server
??????(Snake @ 26.8.2008, 6:34) *

??????: ??? ???????, ????? ?? ?????????????? ?????? ????????? ???????????? ??????????? ? ?????? ? ?? ? ????????
??? ?????? ?????? "|" ??? ?????????????? ?????? ??????????

???????:
???? files_func.cat.php
??????? ? ???????? ??? ?????? ?? ?????? ??????????.

???
$tpl->set('[/full-link]',"</a>  | ");


????? ??????? ?????????? ?????? auto_category.tpl


?? ?? ?? ????? ??? ???? ? ???? ???????? ???????
??? ? ?? ????? $tpl->set('[/full-link]',"</a> | ");
? ??? ?????? ??? ??? ??????? ????? ?? ???? ? ???????
Snake
????????
??????
??? ???????, ????? ?? ?????????????? ?????? ????????? ???????????? ??????????? ? ? ??????? ? ?? ? ???????


??????
$tpl->set('[/full-link]',"</a>  | ");

?????? | ?????? <br />
Server
????? ???????? ??????? ? ???????
$tpl->set('[/full-link]',"</a> | ");
??? ? ???? ??? ????? ? ??? ????? ? ???????
Snake
Server, ????? ????? ? ?????? ? ????? ????????.
Server
???????


? ??? ? ?? ???? ??????? ?? ??????? ????? ? ???????
Snake
??????
? ??? ? ?? ???? ??????? ?? ??????? ????? ? ???????

?? ???????????. ???? ??? ??? ?? ???????????. ?????? ?????? ??????.
Snake
??? ???????? ??????? ???????

1. ???????? ??? ????? ?? ????? Upload_files, ????? files_config.php.
2. ?????? ?????? ? ????.
3. ????????? ?????????? ?? ????????? ? ?????????.html ? ????????? ??? ??????, ??????? ???????? ??????? ??????.
Snake
????????? ? ???????? 2.8 ? 2.9 (??????? ??????)

file_navigation.tpl

????

???
<div id="searchtable" name="searchtable">{home-files}{archive_files}{parentcategory}{category}{title}</div>


??????

???
<div id="searchtable" name="searchtable">{archive_files}{parentcategory}{category}{title}</div>


file.tpl

????

???
<h1><u>{title}</u> {new_files} {version}  {platform}↓</h1>


?????

???
<h1><u>{title}</u> {new_files} {version}  {platform}↓</h1>


files.tpl

????

???
            <h1><u>[title]<span style="font-size:20px;">{title}</span>[/title]</u>{version} <img src="{THEME}/fastheme/f_arrow.gif" style="vertical-align:baseline" alt="???????" /></h1>



?????

???
            <h1><u>[title]<span style="font-size:20px;">{title}</span>[/title]</u> {new_files} {version} <img src="{THEME}/fastheme/f_arrow.gif" style="vertical-align:baseline" alt="???????" /></h1>



options.tpl

?????

???

<tr>
  <td class="what">?????????? ??????? ??????</td>
   <td class="info">
  <input name="show_files_rating" type="radio" value="1" {show_files_rating1}>
  ??
  <input type="radio" name="show_files_rating" value="0" {show_files_rating0}>
??? </td>
</tr>


??????????

???
<tr>
  <td class="what">??? ??????</td>
   <td class="info">
<select class="select" name="show_files_view">
<option value="{show_files_view}" selected>{show_files_view}</option>
<option value="full">full</option>
<option value="tabl">tabl</option>
<option value="thumbs">thumbs</option>
</select>
</td>
</tr>


search.tpl

?????

???
<input type="hidden" name="op"  value="search">


??????????

???
<input type="hidden" name="press_bottom"  value="1">


????

???
<input type="submit" class="bbcodes" value="??????" />


?????

???
<input type="submit" name="searchbottom" class="bbcodes" value="??????" />


?????????? ???????
files_table.tpl ? files_thumbs.tpl
Snake
?????? ??? ??????? ?????????? ?????? ?????????????? ??? ?????????????

???????

???? addfile.php

???????

???

            if ($member_id['user_group'] != "1")
            {
                $approve = 1;
            }
            else
            {
                $approve = 0;
                $db->query("UPDATE `" . PREFIX . "_users` SET `news_num` = news_num+1 WHERE `name` = '{$member_id[name]}'");
            }



???????? ??

???

                $approve = 0;
                $db->query("UPDATE `" . PREFIX . "_users` SET `news_num` = news_num+1 WHERE `name` = '{$member_id[name]}'");

Snake
?????? ??? ??????? ???? ????? ??????????? (0) ?? ?????????

???????

? ?????? files_cat.php, files_download.php, files_files.php, files_search.php ? ? show.fav_files.php

????????

???
            if ($row['allow_comm'] AND $row['comm_num']>="1" AND $user_options[5] != 0)


??

???
            if ($row['allow_comm'] AND $row['comm_num']>="0" AND $user_options[5] != 0)
Snake
?????? ??? ??????? ?????? ??????? ? ?????-?????? ??? ???????? ??????.

??????? ???? ? ??? ?????? ? ?????-?? ????? ???????????? ??????, ???????? 6, ?? ????????? ???? engine/inc/options.php

???????

???

array(
'name' => "????? ??????",
'url' => "$PHP_SELF?mod=admin_files&action=list",
'descr' => "????? ??????",
'image' => "files.png",
'access' => "5",
),


? ???????? ???????? access

???

'access' => "6",



???? ?? ????? ??????? ?????, ?? ???????? ???????? access

???
'access' => "all",



?????? ???? ? ????????? ????????? ?????? ? ?????? ? ???????? ????? ??????? ??? ??????????? ?????????.
?????? ???????? ????? ??????? ??? ???????!
barbik
??? ??????????? "???????? ? ????" ??? ?? ?? ????????? ? ????? ?? ??? ??? ?????? ????? ? ??????????? ?????

???????? ???:


???
http://


???
<a href="http://


???
[url=http://
Snake
barbik,
? ??????? ?????? ?????? ??????? ???????????. (???????? ??????)
?????
??????(Snake @ 19.5.2008, 21:52) *

??????. ??? ?????????? ???? ? ??????? 12:05 ?? ???????, 12:05

???????

???? ? ?????? modules/files/

???
// ????
        $_TIME = time()+($config['date_adjust']*60);
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME))
        $tpl->set('{date}',  $lang['time_heute'].langdate("H:i", $row['date']));
        elseif (date(Ymd, $row['date']) ==     date(Ymd, ($_TIME - 86400)))
        $tpl->set('{date}',  $lang['time_gestern'].langdate("H:i", $row['date']));
        else
        $tpl->set('{date}',  langdate($config['timestamp_active'], $row['date']));
// End ????


? ???????? ??

???
// ????
        $_TIME = time()+($config['date_adjust']*60);
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME))
        $tpl->set('{date}',  $lang['time_heute'].", ".langdate("H:i", $row['date']));
        elseif (date(Ymd, $row['date']) ==     date(Ymd, ($_TIME - 86400)))
        $tpl->set('{date}',  $lang['time_gestern'].", ".langdate("H:i", $row['date']));
        else
        $tpl->set('{date}',  langdate($config['timestamp_active'], $row['date']));
// End ????



?? ??? ????????????? ?? ???????? ??? ???????????? ????????????! ??? ???? ? ??? ????: ???????10:26 - ??? ? ????????! ??? ???????? ...
Snake
??? ????????.

???
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME)) {

            $tpl->set('{date}',  $lang['time_heute'].langdate("H:i", $row['date']));

        } elseif (date(Ymd, $row['date']) == date(Ymd, ($_TIME - 86400))) {

            $tpl->set('{date}',  $lang['time_gestern'].langdate("H:i", $row['date']));

        } else {

            $tpl->set('{date}',  langdate($config['timestamp_comment'], $row['date']));

        }


??

???
        if (date(Ymd, $row['date']) ==     date(Ymd, $_TIME))
        $tpl->set('{date}',  $lang['time_heute'].", ".langdate("H:i", $row['date']));
        elseif (date(Ymd, $row['date']) ==     date(Ymd, ($_TIME - 86400)))
        $tpl->set('{date}',  $lang['time_gestern'].", ".langdate("H:i", $row['date']));
        else
        $tpl->set('{date}',  langdate($config['timestamp_active'], $row['date']));
Snake
??????: ??? ??????? ???, ????? ?? ???????????? ?????? ???-?? ????????????, ????????, "???????????? (0)".

?????: ???? files_cat.php, files_files.php, files_search.php, show.fav_files.php.

???????

???
            if ($row['allow_comm'] AND $row['comm_num']>="1" AND $user_options[5] != 0)


???????? ??

???
            if ($row['allow_comm'] AND $user_options[5] != 0)
Snake
??????: ? ???? ?? ??????????? ????? ???????? ???????. ??? ??? ???????

?????:
1. ????????? ??? php.ini. ??? ?????????? ????????? ?????? ??? ???????? ?????????? mysql.connect_timeout, upload_max_filesize.

????????

mysql.connect_timeout = 120
upload_max_filesize = 200 ?

2. ???? ??? ??????? ? php.ini, ?? ????? ??????????? ???????? ? ????? ????? .htaccess ??????.

php_value upload_max_filesize 50M
php_value post_max_size 15M

3. ???? ??????????? ????????? ????? ????? 15 ????????, ?? ???? ???? ?????????? ??????? ?????:
- ????????? ???? ?????????????? ?? FTP
- ??? ?????????? ????? ?????? ????????? ????????? ?????? ?? ????.

???? ????? ????? ??????????. ?????? ???? ???? ? ???, ??? DLE ?? ????? ????????? ????? ??????? ???????? ????? ???????.
Rams
??????: ??? ????????? ????????????? ?? ?????? "?????" ?????? ? ?????? ????? ?, ?.? ????? ??? ??????? ????? ??? ???????? ?????????
??????
?? ??????? ???????? ??????? ?? ???????, ???? ? ??? ??? ??????? ??? ????????? ???? ????????



?????: ? ???????? ????????? [group=5]?? ??????? ???????? ??????? ?? ???????, ???? ? ??? ??? ??????? ??? ????????? ???? ????????[/group]
[group=1,2,3,4]????? ???????[/group]
Rams
??????(Rams @ 22.2.2009, 2:28) *

??????: ??? ????????? ????????????? ?? ?????? "?????" ?????? ? ?????? ????? ?, ?.? ????? ??? ??????? ????? ??? ???????? ?????????
?????: ? ???????? ????????? [group=5]?? ??????? ???????? ??????? ?? ???????, ???? ? ??? ??? ??????? ??? ????????? ???? ????????[/group]
[group=1,2,3,4]????? ???????[/group]


???????????? ??????? ?? ????????, ?????? ???????? ????????? ?????? ? ??????? ???? [group=5]??????[/group]
Snake
????? ???? ??????????? ? ??? ??????. ???? ??? ?????????? - ??????. ????? ??????.
Snake
??????: ??? ????????? ?????? ????????? ????? ????? ????.

???????: ????????? ???? addfile.php

???????

???
if (!$is_logged)
msgbox ($lang['all_info'], "? ????????? ? ??? ??? ???? ??? ?????????? ?????? ? ?????? ??????.<br /><a href=\"java script:history.go(-1)\">$lang[all_prev]</a>");
else
{


???????


???????

???
}
?>


???????? ??

???

?>

3xwww
??????(Snake @ 26.8.2008, 7:34) *

??????: ??? ???????, ????? ?? ?????????????? ?????? ????????? ???????????? ??????????? ? ? ??????? ? ?? ? ???????
??? ?????? ?????? "|" ??? ?????????????? ?????? ??????????

???????:
???? files_func.cat.php
??????? ? ???????? ??? ?????? ?? ?????? ??????????.

???
$tpl->set('[/full-link]',"</a>  | ");


????? ??????? ?????????? ?????? auto_category.tpl

Snake ??? ?????? ? ??????? ??? ? ??? ?????? ???? ?? ??? ??? ????? ?????? ????????. mellow.gif
Snake
3xwww, ? ICQ

PS ????? ?? ??? ZEND-??!
Tong
??????: ??? ????????? ?? ???????????? ????????????

?????:
???? ???????? ? ??? ????????, ????? ?? ???? ? ??????:
???

<a name="comment-{comment-id}"></a>
<a href="#comment-{comment-id}" title="Comment link">Comment # {comment-id}</a>
m@rs
??? ???????? ??? ???? ??????????? ? ????????????:
? ???????????: 23 ?????? 2009 21:10 ?? 23.01.2009?
Snake
m@rs,
??? ????? ???????? ??? http://by.php.net/manual/ru/function.date.php

?? ?????? ??????

???????? ??
???
$tpl->set ( '{date}', langdate ( $config ['timestamp_active'], $row ['date'] ) );

???????? ??

???
$tpl->set ( '{date}', langdate ( "m.d.y", $row ['date'] ) );
m@rs
??????


?? ?????? biggrin.gif ??????????? ??????? ???????? ????? ??? php)))
Это текстовая версия — только основной контент. Для просмотра полной версии этой страницы, пожалуйста, нажмите сюда.
(с) ИGРАМ.NET