Форум по программам и оборудованию > >

Изменения на сервере (часть вторая)

20.10.2018 3:24


12.12.2017 16:13
OlegON
 
Цитата:
vdm spkkt
ломаю голову... видимо, работает какое-то ограничение фултекста и придется упростить поиск до обычного like '%%'
других идей нет?
12.12.2017 16:33
OlegON
 
ладно, сделал пока like %% union fulltext
25.12.2017 12:15
OlegON
 
В связи с жалобами удалил код новогодних украшений.
Код:
<SCRIPT type="text/javascript">
/*
Classic Snow Fall - Java Script
*/

// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=30

// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddff","#ccccdd","#f3f3f3","#f0ffff")

// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Times","Arial","Times","Verdana")

// Set the letter that creates your snowflake (recommended: * )
var snowletter="*"

// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=0.6

// Set the maximum-size of your snowflakes
var snowmaxsize=20

// Set the minimal-size of your snowflakes
var snowminsize=8

// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=1

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////


// Do not edit below this line
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie5||ns6||opera

function randommaker(range) {
        rand=Math.floor(range*Math.random())
    return rand
}

function initsnow() {
        if (ie5 || opera) {
                marginbottom = document.body.scrollHeight
                marginright = document.body.clientWidth-15
        }
        else if (ns6) {
                marginbottom = document.body.scrollHeight
                marginright = window.innerWidth-15
        }
        var snowsizerange=snowmaxsize-snowminsize
        for (i=0;i<=snowmax;i++) {
                crds[i] = 0;
            lftrght[i] = Math.random()*15;
            x_mv[i] = 0.03 + Math.random()/10;
                snow[i]=document.getElementById("s"+i)
                snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
                snow[i].size=randommaker(snowsizerange)+snowminsize
                snow[i].style.fontSize=snow[i].size+'px';
                snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
                snow[i].style.zIndex=1000
                snow[i].sink=sinkspeed*snow[i].size/5
                if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
                if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
                if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
                if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
                snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
                snow[i].style.left=snow[i].posx+'px';
                snow[i].style.top=snow[i].posy+'px';
        }
        movesnow()
}

function movesnow() {
        for (i=0;i<=snowmax;i++) {
                crds[i] += x_mv[i];
                snow[i].posy+=snow[i].sink
                snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i])+'px';
                snow[i].style.top=snow[i].posy+'px';

                if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
                        if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
                        if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
                        if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
                        if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
                        snow[i].posy=0
                }
        }
        var timer=setTimeout("movesnow()",50)
}

for (i=0;i<=snowmax;i++) {
        document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
        window.onload=initsnow
}

</SCRIPT>




<script LANGUAGE="JAVASCRIPT">
//document.write('<span id="left"> </span>')
//function ojidanieNG(){
//today = new Date()
//BigDay = new Date("January 1, 2001")
//todey = today.setYear('2000')
//timeLeft = (BigDay.getTime() - today.getTime())
//e_daysLeft = timeLeft / 86400000
//daysLeft = Math.floor(e_daysLeft)
//e_hrsLeft = (e_daysLeft - daysLeft)*24
//hrsLeft = Math.floor(e_hrsLeft);
//e_minsLeft = (e_hrsLeft - hrsLeft)*60
//minsLeft = Math.floor(e_minsLeft)
//seksLeft = Math.floor((e_minsLeft - minsLeft)*60)
//var seksRight=''
//if(seksLeft==1||seksLeft==21||seksLeft==31||seksLeft==41||seksLeft==51)seksRight='а'
//if(seksLeft==2||seksLeft==3||seksLeft==4||seksLeft==22||seksLeft==23||seksLeft==24||seksLeft==32||seksLeft==33||seksLeft==34||seksLeft==42||seksLeft==43||seksLeft==44||seksLeft==52||seksLeft==53||seksLeft==54)seksRight='ы'
//if(e_daysLeft>0 && e_daysLeft<31)document.getElementById("left").innerHTML = '<b><font //color=#0000CC>До<font color=red> Нового года</font> осталось:</b> <b><font //color=red>'+daysLeft+'</b></font> <b>дней, <font color=red>'+hrsLeft+'</font> часов, <font //color=red>'+minsLeft+'</font> минут, <font color=red>'+seksLeft+'</font> секунд'+seksRight+'!</font></b>'
//else document.getElementById("left").innerHTML = ' '
//}
//setInterval("ojidanieNG()", 1000)

//</SCRIPT>



<script type='text/javascript'>
//<![CDATA[
function fulltime ()   {
var time=new Date();
var newYear=new Date("jan,01,2018,00:00:00");
var totalRemains=(newYear.getTime()-time.getTime());
if (totalRemains>1){
var RemainsSec = (parseInt(totalRemains/1000));
var RemainsFullDays=(parseInt(RemainsSec/(24*60*60)));
var secInLastDay=RemainsSec-RemainsFullDays*24*3600;
var RemainsFullHours=(parseInt(secInLastDay/3600));
if (RemainsFullHours<10){RemainsFullHours="0"+RemainsFullHours};
var secInLastHour=secInLastDay-RemainsFullHours*3600;
var RemainsMinutes=(parseInt(secInLastHour/60));
if (RemainsMinutes<10){RemainsMinutes="0"+RemainsMinutes};
var lastSec=secInLastHour-RemainsMinutes*60;
if (lastSec<10){lastSec="0"+lastSec};
document.getElementById("RemainsFullDays").innerHTML=RemainsFullDays+"<span id='Rem'> дней</span>";
document.getElementById("RemainsFullHours").innerHTML=RemainsFullHours+"<span id='Rem'> час</span>";
document.getElementById("RemainsMinutes").innerHTML=RemainsMinutes+"<span id='Rem'> мин</span>";
document.getElementById("lastSec").innerHTML=lastSec+"<span id='Rem'> сек</span>"; <!-- highslide start  -->
setTimeout('fulltime()',10)  
}
else{
document.getElementById("clock").innerHTML="C НОВЫМ <br>ГОДОМ !!!";
}
}
//]]>
</script>
<style type='text/css'>
#clou_xs {position:relative;width:60px;height:60px;background: url(https://storage.olegon.ru/supermag/upload/2014/elka.gif) no-repeat;background-size: 43px;}
#clock {width:220px;height:60px;text-align:right;color:#000000;font-size:13px;}
#RemainsFullDays {position:absolute;bottom:1px;left:60px;font-size:25px;color: #2C79BF;}
#RemainsFullHours {position:absolute;bottom:1px;left:100px;font-size:25px;color:#2C79BF;}
#RemainsMinutes {position:absolute;bottom:1px;left:140px;font-size:25px;color:#2C79BF;}
#lastSec {position:absolute;bottom:1px;left:180px;font-size:25px;color:#2C79BF;}
#Rem {font-size:11px;font-weight:normal;color:#000000;}
</style>
<div id='clou_xs'>
  <div id='clock'>До Нового года осталось:<br />
    <span id='RemainsFullDays'></span> <span id='RemainsFullHours'></span> <span id='RemainsMinutes'></span> <span id='lastSec'></span> 
    <script type="text/javascript">fulltime();</script> 
  </div>
</div>

<br>(если вас раздражают новогодние украшения, то можете закрыть этот блок крестиком справа)<br>

<div style="position: fixed;bottom:20px;right:20px;z-index:100">
<img src="https://storage.olegon.ru/supermag/upload/2017/12/pes2018.png" /></div>
11.01.2018 11:44
OlegON
 
Забавно, что никто до сего момента не сообщил, что на форуме нельзя зарегистироваться... Поправил, вроде...
11.01.2018 13:08
Fomka
 
OlegON, значит никто не заводит левые учетки, а кто не может зарегаться - те и сказать не могут, логично )))
11.01.2018 13:12
OlegON
 
Так как бы везде вверху "Контакты", можно написать, как один, наконец, сподобился...
11.01.2018 13:13
OlegON
 
Почистил Хранилище от троянов, которые мне туда усердно заливали...
./upload/autorun.inf.7z: Win.Trojan.Autorun-469 FOUND
./upload/a.php.7z: Win.Trojan.ShellExec-1 FOUND
./upload/jjlm.pif.7z: Win.Virus.Sality-1067 FOUND
./upload/indexi.php.7z: Win.Trojan.Shell-49 FOUND
./upload/b37.php.7z: Win.Trojan.ShellExec-1 FOUND
./upload/2015/net.gif.php.7z: Win.Trojan.Hide-1 FOUND
./upload/2015/c99.php.test: Win.Trojan.C99-15 FOUND
./upload/2015/alperenos.php.7z: Win.Trojan.Hide-1 FOUND
./upload/2015/uppi.php.7z: Win.Trojan.Hide-1 FOUND
./upload/2015/vic.php;txt.7z: Php.Trojan.C99Shell-2 FOUND
./upload/2015/j.php.7z: Win.Trojan.Hide-1 FOUND
./upload/2015/c99.php.7z: Win.Trojan.C99-15 FOUND
./upload/2015/Natu.php.7z: Win.Trojan.C99-15 FOUND
./upload/2015/1337w0rm.php.7z: Php.Malware.Agent-1426994 FOUND
./upload/2015/low.jpg: Win.Trojan.C99-15 FOUND
./upload/2015/ggg.php.7z: Php.Trojan.C99Shell-2 FOUND
./upload/1.php.7z: Win.Trojan.Shell-49 FOUND
./upload/2016/wsck.php.7z: Win.Trojan.Shell-68 FOUND
./upload/2016/c9.php.7z: Win.Trojan.Shell-17 FOUND
./upload/2016/a.gif.php.7z: Win.Trojan.Hide-1 FOUND
./upload/2016/j.php.7z: Win.Trojan.Hide-1 FOUND
15.01.2018 11:48
OlegON
 
В тестовом режиме форум теперь доступен и по IPv6. Соответствующую запись АААА уже внес. Пока только форумный домен.
20.01.2018 01:14
OlegON
 
В общем, геморрой один с этим IPv6, многое по безопасности разрулить нельзя. Убрал доступ по IPv6.

Форум на базе vBulletin®
Copyright © Jelsoft Enterprises Ltd.
В случае заимствования информации гипертекстовая индексируемая ссылка на Форум обязательна.