Киноафиша - город Новосибирск
как все просто :)
Виталий Никсенкин
<li class="author"><a href="{$oUser->getUserWebPath()}" rel="nofollow">{$oUser->getLogin()}</a></li>
</ul>
{hook run='topic_after_tags' oTopic=$oTopic}
$config['db']['table']['prefix'] = 'ls2_';
$config['db']['table']['prefix_ls'] = 'ls_';
$config['db']['table']['user'] = '___db.table.prefix___user';
$config['db']['table']['user'] = '___db.table.prefix_ls___user';
/* включение/отключение возможности размещать рекламу всем пользователям: all - для всех, admin - только для админов*/
Config::Set('config.adunits.permit.user', 'all');
CREATE TABLE `prefix_adunits` (
`adunits_id` int(11) NOT NULL auto_increment,
`user_id` int(11) NOT NULL,
`adunits_code` longtext character set utf8,
`adunits_setting` text character set utf8,
`adunits_setting_more` longtext character set utf8,
`adunits_date_add` datetime NOT NULL,
`adunits_date_edit` datetime NOT NULL,
PRIMARY KEY (`adunits_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
/**
* генерирует код инвайта
*/
function func_generator_invite() {
$allowable_characters = "ABCDEFGHIJKLMNPQRSTUVWXYZ123456789";
$ps_len = strlen($allowable_characters);
mt_srand((double)microtime()*1000000);
$pass = "";
for($i = 0; $i < 12; $i++) {
if(($i == 4) || ($i == 8)) {
$pass .= '-';
} else {
$pass .= $allowable_characters[mt_rand(0,$ps_len-1)];
}
}
return $pass;
}
$oInvite->setCode(func_generator(32));
$oInvite->setCode(func_generator_invite());
if ($aRow=$this->oDb->selectRow($sql,$sCode,$iUsed)) {
if ($aRow=$this->oDb->selectRow($sql,strtoupper($sCode),$iUsed)) {
// Модуль Talk
$config['module']['talk']['reload'] = true;
<script ... src=".../comments.js"></script>
{include file='cmtedit_form.tpl'}
{if !$oComment->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}
{include file='cmtedit_button.tpl'}
<div class="text">
{if $oComment->isBad()}
<div style="display: none;" id="comment_text_{$oComment->getId()}">
{$oComment->getText()}
</div>
<a href="#" onclick="$('comment_text_{$oComment->getId()}').style.display='block';$(this).style.display='none';return false;">{$aLang.comment_bad_open}</a>
{else}
{$oComment->getText()}
{/if}
</div>
<div class="text" id="comment_text_{$oComment->getId()}" {if $oComment->isBad()}style="display: none;"{/if}>
{$oComment->getText()}
</div>
{if $oComment->isBad()}
<div class="text-more">
<a href="#" onclick="$('comment_text_{$oComment->getId()}').style.display='block';this.parentNode.style.display='none';return false;">{$aLang.comment_bad_open}</a>
</div>
{/if}
{if $oComment->getCommentDateEdit()}
<div class="text-more edit-info">
{$oComment->getEditInfo()}
</div>
{/if}
alter table prefix_user add user_settings_notice_method enum('mail', 'jabber') not null default 'mail' after user_profile_foto;
if (isset($_REQUEST['submit_settings_tuning'])) {
$this->Security_ValidateSendForm();
$sNoticeMethod = getRequest('settings_notice_method');
if ($sNoticeMethod == "jabber" && is_null($this->oUserCurrent->getProfileJabber())) {
$this->Message_AddErrorSingle($this->Lang_Get('settings_tuning_no_jid'));
return;
}
$this->oUserCurrent->setSettingsNoticeMethod( $sNoticeMethod );
$this->oUserCurrent->setProfileJabber(null);
и добавляем после этого:
$this->oUserCurrent->setSettingsNoticeMethod('mail');
return $this->_aData['user_profile_foto'];
}
public function getSettingsNoticeMethod() {
return $this->_aData['user_settings_notice_method'];
}
$this->_aData['user_profile_foto']=$data;
}
public function setSettingsNoticeMethod($data) {
$this->_aData['user_settings_notice_method']=$data;
}
user_profile_foto = ? ,
user_settings_notice_method = ? ,
$oUser->getProfileFoto(),
$oUser->getSettingsNoticeMethod(),
<label for=""><input {if $oUserCurrent->getSettingsNoticeNewFriend()}checked{/if} type="checkbox" id="settings_notice_new_friend" name="settings_notice_new_friend" value="1" class="checkbox" /> — {$aLang.settings_tuning_notice_new_friend}</label>
<br />
<select name="settings_notice_method" style="width: 200px;">
<option value="mail" {if $oUserCurrent->getSettingsNoticeMethod()=='mail'}selected{/if}>{$aLang.settings_tuning_notice_method_mail}</option>
<option value="jabber" {if $oUserCurrent->getSettingsNoticeMethod()=='jabber'}selected{/if}>{$aLang.settings_tuning_notice_method_jabber}</option>
</select>
*/5 * * * * /var/www/domain.ru/www/plugins/mailing/include/cron/send-mail.php