<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_put_contents(_ver.php): Failed to open stream: Permission denied in /srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php on line <i>52</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0002</td><td bgcolor='#eeeeec' align='right'>362896</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0022</td><td bgcolor='#eeeeec' align='right'>450744</td><td bgcolor='#eeeeec'>increaseVersion( )</td><td title='/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>105</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0022</td><td bgcolor='#eeeeec' align='right'>451160</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-put-contents' target='_new'>file_put_contents</a>( <span>$filename = </span><span>'_ver.php'</span>, <span>$data = </span><span>'3.2.84'</span> )</td><td title='/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>52</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_put_contents(/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/output.min.js): Failed to open stream: Permission denied in /srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php on line <i>108</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0002</td><td bgcolor='#eeeeec' align='right'>362896</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0088</td><td bgcolor='#eeeeec' align='right'>522936</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-put-contents' target='_new'>file_put_contents</a>( <span>$filename = </span><span>'/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/output.min.js'</span>, <span>$data = </span><span>'/*\n * Скрипт полей профиля, ver. 3.2.83\n * Специально для FRPG "Король Лев. Начало", https://tlkthebeginning.ru/\n * Kozhilya, 2016 - 2020\n */\nwindow.ProfileScriptBase=\'https://tlkthebeginning.kozhilya.ru\';window.LoadingComplited=window.LoadingComplited||(function(){});window.SystemExtentions=window.SystemExtentions||{};window.SystemExtentions.HungerGames={\'topics\':{\'2017\':[21508],\'2018\':[21446,21447,21449,21452,21457,21461,21466,21481,21482,21483,21'</span> )</td><td title='/srv/tlkthebeginning.kozhilya.ru/public/scripts/profiles/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>108</td></tr>
</table></font>
/*
* Скрипт полей профиля, ver. 3.2.83
* Специально для FRPG "Король Лев. Начало", https://tlkthebeginning.ru/
* Kozhilya, 2016 - 2020
*/
window.ProfileScriptBase='https://tlkthebeginning.kozhilya.ru';window.LoadingComplited=window.LoadingComplited||(function(){});window.SystemExtentions=window.SystemExtentions||{};window.SystemExtentions.HungerGames={'topics':{'2017':[21508],'2018':[21446,21447,21449,21452,21457,21461,21466,21481,21482,21483,21484,21121,21122,21485,21507,21123]},'ShowWindow':function(year,id){openIframeModal('https://tlkthebeginning.kozhilya.ru/hg/'+year+'/modal/'+id)},'init':function(input){this.active=!1;if(input.type==='page'){for(var year in this.topics){if(this.topics[year].includes(parseInt(location.search.match(/[?&]id=(\d+)/)[1])))
this.active=year}
if(this.active){this.cids=[];$(document.head).append('<link rel="stylesheet" href="'+ProfileScriptBase+'/scripts/profiles_beta/ext/hg.css" />')}}},'page_ul':function(input){if(!this.active)return;this.cids.push(input.id)},'page_all_ul':function(input){if(!this.active)return},'page_load':function(input){if(!this.active)return;var url='https://tlkthebeginning.kozhilya.ru/api/hg/'+this.active+'/'+this.cids.join(','),self=this;$.getJSON(url,function(data){console.log(data);for(var cid in data.char){var char=data.char[cid],base=$('.post-author ul[data-id="'+cid+'"]');base.addClass('hg');$('.pa-avatar img',base).attr('src',char.avatar);$('.pa-info',base).html('<div class="button charbutton" onclick="SystemExtentions.HungerGames.ShowWindow('+self.active+', '+char.id+');">Трибут</div>')}
input.callback()});input.inc(1)}};window.SystemExtentions.Api={'spotify_authinput':'YTMwMjBiMDQwMzc2NGFhNDkxMTFlMzNhNThiYWI2MjQ6MWZlYTZiMTQ0NjY3NGUzNGJiNjNiNjBhMjc4MTJmYmY=','spotify_connect':function(){$.ajax({url:'https://accounts.spotify.com/api/token',type:'POST',headers:{'Authorization':'Basic '+this.spotify_authinput},data:{grant_type:'client_credentials'}}).done((data)=>{console.log('Spotify api is ready');this.spotify_authdata=data;$(document).trigger('api-spotify-ready')})},'spotify':function(url,data,callback){if(typeof this.spotify_authdata==='undefined'){$(document).on('api-spotify-ready',()=>{this.spotify(url,data,callback)});return}
$.ajax({url:url,data:data,headers:{'Authorization':'Bearer '+this.spotify_authdata.access_token},success:(d)=>{debugger;callback(d)}})},'init':function(input){this.spotify_connect.call(this,[]);this.spotify=this.spotify.bind(this)}};window.FieldSettings={'author':'none','title':'none','fld2':'youtube','avatar':'none','user':'new','info':'!char','score':'new','fld4':'awards','clear':'new','from':'bold','reg':'bold','posts':'bold','respect':'bold','sex':'bold','age':'bold','icq':'bold','ip':'bold','time-visit':'bold','last-visit':'bold','onlineIcon':'new'};window.AwardFilters={'checked':{'type':'state','name':'Выбранные','default':2,'check':function(p,label,state){return(state==2)||($('input',p).is(':checked')==(state==1))}},'active':{'type':'state','name':'Актуальные','default':1,'check':function(p,label,state){return(state==2)||(label.hasClass('hidden')==(state==0))}},'word':{'type':'text','name':'Названиe','default':'','check':function(p,label,value){return label.data('name').toLowerCase().indexOf(value.toLowerCase())>=0}}};function progressPostAuthor(type,id,root){function getHTML(li){if(type=='page')
return li.html();else return li}
var oldUl=$(root),newUl=$('<ul></ul>'),result={};$.each(window.FieldSettings,function(fieldName,fieldValue){if(fieldValue=='new'){$(newUl).append('<li class="pa-'+fieldName+'"></li>');return}
var li,html='';if(type=='page'){li=$('li.pa-'+fieldName,oldUl);if((li.length==0)&&(fieldValue.indexOf('!')<0))
return}else{li=root[fieldName];if(((li===null)||(li===undefined))&&(fieldValue.indexOf('!')<0))
return}
switch(fieldValue.replace('!','')){case 'bold':html=getHTML(li).replace(/^((?:.(?!\:(?!\/\/)))*.:)/im,'<b>$1</b>');break;case 'none':html=getHTML(li);break;case 'youtube':let h=getHTML(li).split('<br>');let url;try{url=new URL(h[h.length-1])}catch(e){return}
fieldName='music';if(url.hostname==='youtu.be'){let yid=url.pathname.substring(1);let e=$('<div></div>');let a=$('<a></a>').attr('href','https://youtu.be/'+yid).attr('onclick','showMusicPlayer("'+yid+'", "youtube"); return false;').html('<span class="userplayer-btn">▶</span><span class="userplayer-title" id="youtube/'+yid+'"></span>').appendTo(e);html=e.html();result.userplayer={type:'youtube',id:yid}}else if((url.hostname==='open.spotify.com')&&(url.pathname.startsWith('/track/'))){let sid=url.pathname.substring(7);let e=$('<div></div>');let a=$('<a></a>').attr('href','https://open.spotify.com/track/'+sid).attr('onclick','showMusicPlayer("'+sid+'", "spotify"); return false;').html('<span class="userplayer-btn">▶</span><span class="userplayer-title" id="spotify/'+sid+'"></span>').appendTo(e);html=e.html();result.userplayer={type:'spotify',id:sid}}
break;case 'char':html='<div class="button charbutton" id="char'+id+'" onclick="ShowCharacter('+id+');">\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u0436</div>';break;case 'awards':var a=[];$('img',li).each(function(){var alt=$(this).attr('alt'),hid=alt.indexOf("\u2297")>=0,tmp=alt.replace("\u2297","").split('|'),src=$(this).attr('src');a.push({name:tmp[0],img:src,desc:tmp[1],hidden:hid})});result.awards=a;return}
$(newUl).append('<li class="pa-'+fieldName+'">'+html+'</li>')});$(newUl).data('id',id);result.newUl=newUl;return result}
function ApplyForumPageData(data){$.each(data.chars||[],function(id,row){$('.charbutton#char'+id).toggle(row.active);$('.post-author ul[data-id="'+id+'"] .pa-user').html('<span class="userblock" id="user'+row.user+'" data-cid="'+id+'"></span>')});$.each(data.users||[],function(id,user){var rows=[];var akas=[];for(var i=0;(i<user.chars.length)&&(akas.length<3);i++){var c=user.chars[i],n=c.note?(' ('+c.note+')'):'';akas.push('<span class="twink" id="char'+c.id+'"><span class="name">'+c.name+'</span>'+n+'</span>')}
rows.push('<a class="showMoreUser" href="https://tlkthebeginning.kozhilya.ru/user/'+id+'" target="_blank"');if(akas.length>0){rows.push(' title="<div class="moreCharsList"><strong>Другие персонажи:</strong> '+akas.join('').replace(/"/g,'"')+'</div>"')}
rows.push('><img src="https://tlkthebeginning.kozhilya.ru/user/avatars/'+id+'" /> <span>'+user.name+'</span></a>');$('.userblock#user'+id).each(function(){$(this).html(rows.join(''));$('.twink#char'+$(this).data('cid')+', .twink:last',this).eq(0).hide();if(user.score!=0)
$(this).parents('ul').find('.pa-score').html('<strong>Баллы</strong>: '+user.score);})});$('.showMoreUser[title]').tooltipSuite()}
function freezeWindow(state){if(state===!0){document.body.style.top="-"+(window.scrollY||window.pageYOffset)+"px";document.body.classList.add('freezeContent');window.scrollTo(0,0)}else{var scrto=document.body.style.top.match(/-?(\d*(:?\.\d*)?)px/)[1];document.body.style.top="";document.body.classList.remove('freezeContent');window.scrollTo(0,scrto)}}
function triggerExtentions(action,args){for(var extname in window.SystemExtentions){var ext=window.SystemExtentions[extname];if(ext[action]&&(typeof(ext[action])=='function')){ext[action].call(ext,args)}}}
function openIframeModal(url){var div=$('<div class="overlay"></div>'),iframe=$('<iframe src="'+url+'" onload="window.charIframe = this;" />');div.append(iframe);freezeWindow(!0);$('body').append(div);return iframe}
function closeIframeModal(){$('.overlay').remove();freezeWindow(!1)};(function(type){console.log('Profiles type:',type);triggerExtentions('init',{'type':type});if((type==="page")||(type==="viewprofile")){window.charIframe=null;window.awards={};window.ShowCharacter=function(id){var iframe=openIframeModal('https://tlkthebeginning.kozhilya.ru/char/'+id+'/frame');iframe.on('load',function(){RecieveAwards(id)})};window.RecieveAwards=function(id){if(window.awards[id]===undefined)
window.awards[id]=[];window.charIframe.contentWindow.postMessage(JSON.stringify({'awards':window.awards[id]}),'*')};$(window).on('message',function(e){try{const data=JSON.parse(e.originalEvent.data);if(data.charwindow_close){closeIframeModal()}}catch{}});window.showMusicPlayer=function(id,type){let ins=$('<p></p>');let iframe=$('<iframe></iframe>').attr('width',350).attr('height',240).appendTo(ins);if(type==='youtube'){iframe.attr('src','https://www.youtube.com/embed/'+id+'?autoplay=1&controls=2&fs=0')}else if(type==='spotify'){iframe.attr('src','https://open.spotify.com/embed/track/'+id+'?').attr('allow','encrypted-media')}
ins.append('<br /><a href="#close" onclick="closeMusicPlayer()">Закрыть плеер</a>');$('.youtube-player').empty().append(ins).show()}
window.closeMusicPlayer=function(){$('.youtube-player').empty().hide()}
window.UpdateTitles=function(){$('.userplayer-title').each(function(){let p=this.id.split('/');$(this).text(playerData(p))})}
var _playerData=JSON.parse(localStorage.getItem('userplayer-data')||'{}');function playerData(t,i,d){if(Array.isArray(t)){d=i;i=t[1];t=t[0]}else if(t.type){d=i;i=t.id;t=t.type}
if(typeof d!=='undefined'){_playerData[t][i]=d;localStorage.setItem('userplayer-data',JSON.stringify(_playerData))}else{return _playerData[t][i]}}
window.LoadAndSetPlayerData=function(data){if(!_playerData[data.type]){_playerData[data.type]={}}
if(playerData(data)){window.UpdateTitles()}else if(data.type==='youtube'){$.getJSON('https://www.googleapis.com/youtube/v3/videos?key=AIzaSyD93Dus1WBkcSopAZ4DjcS0jWQ7Kqf4FOo&part=snippet&id='+data.id,function(loaddata){playerData(data,loaddata.items[0].snippet.title);LoadAndSetPlayerData(data)});playerData(data,'')}else if(data.type==='spotify'){window.SystemExtentions.Api.spotify('https://api.spotify.com/v1/tracks/'+data.id,{},function(loaddata){let arts=[];$.each(loaddata.artists,(i,v)=>{arts.push(v.name)});playerData(data,arts.join(', ')+' — '+loaddata.name);LoadAndSetPlayerData(data)})}}}
if(type==="page"){let count=1,callback=function(){if(--count===0)
LoadingComplited();};function processPosts(posts,callback=!1){let result={uids:[],cids:{},};if((callback!==!1)&&(typeof UserID!=='undefined')){result.cids[UserID]=!0}
$(posts).each((_,post)=>{post=$(post);if(parseInt(post.attr('data-group-id'))===3)return;const id=parseInt(post.attr('data-user-id')),oldUl=$('.post-author ul',post),data=progressPostAuthor(type,id,oldUl);if(data.uid)
result.uids.push(data.uid);if(data.awards)
window.awards[id]=data.awards;if(data.userplayer)
LoadAndSetPlayerData(data.userplayer);result.cids[id]=!0;oldUl.html(data.newUl.html());oldUl.attr('data-id',id);if($('li.pa-avatar',oldUl).length>0){oldUl.addClass('has-avatar')}
triggerExtentions('page_ul',{'id':id,'ul':oldUl})});triggerExtentions('page_all_ul',{});$.get('https://tlkthebeginning.kozhilya.ru/api/forumpage/'+Object.keys(result.cids).join(','),function(data){ApplyForumPageData(data);UpdateTitles();if(callback!==!1){callback()}})}
processPosts($('.post'),callback);triggerExtentions('page_load',{'inc':function(c){count+=c},'callback':callback});$(document).on('pun_post',()=>{processPosts($('.post.new-ajax'))})}else if(type==="profile"){var cid=location.search.match(/[?&]id=(\d+)/)[1];$('.main form > fieldset').each(function(i){this.id=$('input,textarea',this)[0].id;$('legend span',this).html($('legend span',this).html().replace(/\[\d+\]\s*/,''))});(function(fieldset){if($(fieldset).length===0)
return;var filters=$('<div class="filters"></div>');window.CheckAwartFilters=function(){var values={};$.each(AwardFilters,function(key,value){values[key]=$('.awardfilter#'+key+' input').val()});$('p.checkfield',fieldset).show().each(function(){var elem=$(this);$.each(values,function(key,value){var result=AwardFilters[key].check(elem,$('label',elem),value);console.log(elem[0],key,value,result);if(!result)
elem.hide();})})}
$.each(AwardFilters,function(key,value){var rows=['<p class="awardfilter filter'+value.type+'" id="'+key+'">'];switch(value.type){case 'text':rows.push('<input type="text" onkeyup="CheckAwartFilters();" placeholder="'+value.name+'" value="'+value.default+'"/>');break;case 'state':rows.push('<input type="hidden" placeholde="'+value.name+'" value="'+value.default+'"/>');rows.push('<label onclick="var q = $(\'.awardfilter#'+key+' input\'); q.val((q.val() + 1) % 3); CheckAwartFilters();">');rows.push('<span class="value" id="value_0">X</span>');rows.push('<span class="value" id="value_1">+</span>');rows.push('<span class="value" id="value_2">?</span>');rows.push('<span class="name">'+value.name+'</span></label>');break}
rows.push('</p>');$(filters).append(rows.join(''))});$(fieldset).prepend(filters);$('p.checkfield',fieldset).each(function(){var inp=$('input',this),id=inp.attr('name').replace(/form\[fld4\]\[(\d+)\]/,'$1'),alt=$('img',this).attr('alt'),tmp=alt.replace("\u2297","").split('|');inp.attr('id','fld4_'+id).addClass('fld4');var rows=['<label class="'+((alt.indexOf("\u2297")>=0)?'hidden':'')+'" for="'+'fld4_'+id+'" data-name="'+tmp[1]+'">','<img src="'+$('img',this).attr('src')+'" />','<p class="name">'+tmp[0]+'</p>','<p class="desc">'+tmp[1]+'</p>','</label>'];$('img',this).remove();$(this).append(rows.join(''))});CheckAwartFilters()})('fieldset#fld4');$('form > fieldset').eq(0).before('<p class="firmstyle editlink"><a target="_blank" href="https://tlkthebeginning.kozhilya.ru/char/'+cid+'/edit/">Редактировать персонажа на сайте ЕА</a></p>');LoadingComplited()}else if(type==="viewprofile"){var id=location.search.match(/[&?]id=(\d+)/)[1],lidata={"author":'<a>'+$('#profile-left #profile-name strong').html()+'</a>',"title":$('#profile-left #profile-title strong').html(),"avatar":$('#profile-left img').parent().html(),"fld1":$('#profile-right li > span:contains("[1]")').parent('li').hide().find('strong').html(),"fld2":$('#profile-right li > span:contains("[2]")').parent('li').hide().find('strong').html(),"fld3":$('#profile-right li > span:contains("[3]")').parent('li').hide().find('strong').html(),"fld4":$('<li>'+$('#profile-right li > span:contains("[4]")').parent('li').hide().find('strong').map(function(){return $(this).html()}).toArray().join('\r\n')+'</li>'),"fld5":$('#profile-right li > span:contains("[5]")').parent('li').hide().find('strong').html()},ul=$('<ul></ul>'),uid;data=progressPostAuthor(type,id,lidata);if(data.awards)
window.awards[id]=data.awards;$('#profile-left').addClass('post-author').empty().append(data.newUl);data.newUl.attr('data-id',id);if(data.userplayer){LoadAndSetPlayerData(data.userplayer)}
$.get('https://tlkthebeginning.kozhilya.ru/api/forumpage/'+id,function(data){$.each(data.chars||[],function(id,d){$('.charbutton#char'+id).toggle(d.active);$('.post-author ul[data-id="'+id+'"] .pa-user').html('<span class="userblock" id="user'+d.user+'" data-cid="'+id+'"></span>')});$.each(data.users||[],function(id,user){var rows=[];var akas=[];for(var i=0;(i<user.chars.length)&&(akas.length<3);i++){var c=user.chars[i];akas.push('<span class="twink" id="char'+c.id+'"><span class="avatar"><img src="'+c.avatar+'" /></span><span class="name">'+c.name+'</span></span>')}
rows.push('<a href="https://tlkthebeginning.kozhilya.ru/user/'+id+'" target="_blank"');if(akas.length>0){rows.push(' onmouseover="$(\'#tooltip\').addClass(\'twink_tooltip\'); tooltip(this, $(this).data(\'title\'));"');rows.push(' onmouseout="$(\'#tooltip\').removeClass(\'twink_tooltip\'); hide_info(this)"');rows.push(' data-title="<strong>Другие персонажи:<strong>'+akas.join('').replace(/"/g,'"')+'"')}
rows.push('><img src="https://tlkthebeginning.kozhilya.ru'+user.avatar+'" /> <span>'+user.name+'</span></a>');$('.userblock#user'+id).each(function(){$(this).html(rows.join(''));$('.twink#char'+$(this).data('cid')+', .twink:last',this).eq(0).hide()})});LoadingComplited()})}else LoadingComplited()})((document.location.pathname==='/viewtopic.php')?'page':((document.location.pathname==='/profile.php')?(($('div#viewprofile').length)?'viewprofile':((document.location.search.indexOf('section=fields')!==-1)?'profile':'')):''))