SELECT count(id) FROM table WHERE visited >= CURRENT_DATE - INTERVAL 5 DAY
$('a').on('click', function(){
if ($(this).attr('data-toggle')) {
console.log('Второй клик');
$(this).removeAttr('data-toggle');
} else {
console.log('Первый клик');
$(this).attr('data-toggle', 1);
}
});
$('section').each(function() {
var count = $(this).find('li').length;
if (count > 4) {
var filter_trigger = $(this).find('.filter-height-trigger');
filter_trigger.show();
//дальнейшие операции над filter_trigger
}
});
Laravel, который больше мне нравится по коду и удобству его написания, но у которого недостаточно плюшек для быстрого начала?
if [ ! -f "/kernel/wbs.xml" ]; then
cat > kernel/wbs.xml << EOF
<WBS VERSION="305" UPDATEDATE="">
<LANGUAGES>
<LANGUAGE ID="rus" NAME="Russian"/>
<LANGUAGE ID="eng" NAME="English"/>
</LANGUAGES>
<EMAIL ENABLED="1" ROBOTEMAIL=""/>
<HTML_SETTINGS HTTPS_PORT="443" SESSION_TIMEOUT="60"/>
<DIRECTORIES>
<DATA_DIRECTORY PATH="[WBS_PATH]/data"/>
<WEB_DIRECTORY PATH="/"/>
</DIRECTORIES>
<SQLSERVERS>
<SQLSERVER HOST="localhost" PORT="" DBCHARSET="UTF8" WEBASYST_HOST="" ADMIN_USERNAME=""
ADMIN_ADMINRIGHTS="FALSE" NAME="localhost" ADMIN_PASSWORD="">
<LANGUAGES>
<LANGUAGE ID="rus" NAME="Russian"/>
<LANGUAGE ID="eng" NAME="English"/>
</LANGUAGES>
</SQLSERVER>
</SQLSERVERS>
<FRONTEND type="SC" dbkey="" mod_rewrite="" disable_powered_by="1"/>
<SYSTEM COMPANY="" LICENSE="" MEMLIMIT=""/>
<SERVER_TIME_ZONE ENABLE="1" ID="24" SERVER_TIME_ZONE_DST="0"/>
<PROXY host="" port="" user="" password=""/>
<SMTP_SERVER host="" port="" user="" password="" helo=""/>
</WBS>
EOF
fi
if [ ! -f "/dblist/OFFICE360.xml" ]; then
cat > dblist/OFFICE360.xml << EOF
<DATABASE>
<DBSETTINGS SIGNUP_DATETIME="" CREATE_DATE="" DEFAULT_ENCODING="" EXPIRE_DATE="" READONLY="0" DATE_FORMAT="DD.MM.YYYY" DBSIZE_LIMIT="" FIRSTLOGIN="1" MAX_USER_COUNT="" SQLSERVER="localhost" DB_NAME="test" DB_PASSWORD="root" DB_USER="root" SOURCE="" DB_CREATE_OPTION="use" TEMPORARY="" MYSQL_CHARSET="UTF8" PLAN="" FREE_APPS="" RECIPIENTS_LIMIT="" SMS_RECIPIENTS_LIMIT=""/>
<ADMINISTRATOR PASSWORD="" TEMPLATE="classic" LANGUAGE="rus"/>
<FIRSTLOGIN COMPANYNAME="" FIRSTNAME="Artem" LASTNAME="" LOGINNAME="" PASSWORD="" TEMPLATE="classic" LANGUAGE="eng" EMAIL=""/>
<APPLICATIONS>
<APPLICATION APP_ID="SC"/>
</APPLICATIONS>
<MODULES>
<ASSIGN CLASS="sms" ID="" DISABLED="1"/></MODULES>
<BALANCE>
<VALUE ID="sms" VALUE="UNLIMITED"/>
</BALANCE>
<VERSIONS SYSTEM="305" SC="305"/>
<ADVSETTINGS>
<PARAM name="show_company_top" value="yes"/>
<PARAM name="show_company_name_top" value="yes"/>
<PARAM name="theme" value="1albino"/>
<PARAM name="company_name" value=""/>
</ADVSETTINGS>
</DATABASE>
EOF
fi