mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
Удаление лишних файлов и данных
This commit is contained in:
parent
c3f11f1ce7
commit
d629a16cb2
|
@ -517,70 +517,6 @@ class ModuleTopic_EntityTopic extends Entity {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает URL для топика-ссылки
|
||||
*
|
||||
* @param bool $bShort Укарачивать урл или нет
|
||||
* @return null|string
|
||||
*/
|
||||
public function getLinkUrl($bShort=false) {
|
||||
if ($this->getType()!='link') {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($this->getExtraValue('url')) {
|
||||
if ($bShort) {
|
||||
$sUrl=htmlspecialchars($this->getExtraValue('url'));
|
||||
if (preg_match("/^https?:\/\/(.*)$/i",$sUrl,$aMatch)) {
|
||||
$sUrl=$aMatch[1];
|
||||
}
|
||||
$sUrlShort=substr($sUrl,0,30);
|
||||
if (strlen($sUrlShort)!=strlen($sUrl)) {
|
||||
return $sUrlShort.'...';
|
||||
}
|
||||
return $sUrl;
|
||||
}
|
||||
$sUrl=$this->getExtraValue('url');
|
||||
if (!preg_match("/^https?:\/\/(.*)$/i",$sUrl,$aMatch)) {
|
||||
$sUrl='http://'.$sUrl;
|
||||
}
|
||||
return $sUrl;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Устанавливает URL для топика-ссылки
|
||||
*
|
||||
* @param string $data
|
||||
*/
|
||||
public function setLinkUrl($data) {
|
||||
if ($this->getType()!='link') {
|
||||
return;
|
||||
}
|
||||
$this->setExtraValue('url',$data);
|
||||
}
|
||||
/**
|
||||
* Возвращает количество переходов по ссылке в топике-ссылке
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLinkCountJump() {
|
||||
if ($this->getType()!='link') {
|
||||
return null;
|
||||
}
|
||||
return (int)$this->getExtraValue('count_jump');
|
||||
}
|
||||
/**
|
||||
* Устанавливает количество переходов по ссылке в топике-ссылке
|
||||
*
|
||||
* @param string $data
|
||||
*/
|
||||
public function setLinkCountJump($data) {
|
||||
if ($this->getType()!='link') {
|
||||
return;
|
||||
}
|
||||
$this->setExtraValue('count_jump',$data);
|
||||
}
|
||||
|
||||
|
||||
//*************************************************************************************************************************************************
|
||||
|
@ -849,5 +785,4 @@ class ModuleTopic_EntityTopic extends Entity {
|
|||
public function setCountFavourite($data) {
|
||||
$this->_aData['topic_count_favourite']=$data;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
<?php
|
||||
/*-------------------------------------------------------
|
||||
*
|
||||
* LiveStreet Engine Social Networking
|
||||
* Copyright © 2008 Mzhelskiy Maxim
|
||||
*
|
||||
*--------------------------------------------------------
|
||||
*
|
||||
* Official site: www.livestreet.ru
|
||||
* Contact e-mail: rus.engine@gmail.com
|
||||
*
|
||||
* GNU General Public License, version 2:
|
||||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
*
|
||||
---------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Объект сущности голосования в топике-опросе
|
||||
*
|
||||
* @package modules.topic
|
||||
* @since 1.0
|
||||
*/
|
||||
class ModuleTopic_EntityTopicQuestionVote extends Entity {
|
||||
/**
|
||||
* Возвращает ID топика
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getTopicId() {
|
||||
return $this->_getDataOne('topic_id');
|
||||
}
|
||||
/**
|
||||
* Возвращает ID проголосовавшего пользователя
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getVoterId() {
|
||||
return $this->_getDataOne('user_voter_id');
|
||||
}
|
||||
/**
|
||||
* Возвращает номер варианта
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getAnswer() {
|
||||
return $this->_getDataOne('answer');
|
||||
}
|
||||
|
||||
/**
|
||||
* Устанавливает ID топика
|
||||
*
|
||||
* @param int $data
|
||||
*/
|
||||
public function setTopicId($data) {
|
||||
$this->_aData['topic_id']=$data;
|
||||
}
|
||||
/**
|
||||
* Устанавливает ID проголосовавшего пользователя
|
||||
*
|
||||
* @param int $data
|
||||
*/
|
||||
public function setVoterId($data) {
|
||||
$this->_aData['user_voter_id']=$data;
|
||||
}
|
||||
/**
|
||||
* Устанавливает номер варианта
|
||||
*
|
||||
* @param int $data
|
||||
*/
|
||||
public function setAnswer($data) {
|
||||
$this->_aData['answer']=$data;
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -468,7 +468,6 @@ $config['head']['default']['js'] = array(
|
|||
"___path.framework.frontend.web___/js/vendor/jquery.fileupload.js",
|
||||
"___path.framework.frontend.web___/js/vendor/notifier/jquery.notifier.js",
|
||||
"___path.framework.frontend.web___/js/vendor/prettify/prettify.js",
|
||||
"___path.framework.frontend.web___/js/vendor/prettyphoto/js/jquery.prettyphoto.js",
|
||||
"___path.framework.frontend.web___/js/vendor/parsley/parsley.js",
|
||||
"___path.framework.frontend.web___/js/vendor/parsley/i18n/messages.ru.js",
|
||||
"___path.framework.frontend.web___/js/vendor/jquery.livequery.js",
|
||||
|
|
|
@ -213,17 +213,6 @@ jQuery(document).ready(function($){
|
|||
ls.tags.init();
|
||||
|
||||
|
||||
/**
|
||||
* Photoset
|
||||
*/
|
||||
$('.js-photoset-type-default-image').prettyPhoto({
|
||||
social_tools: '',
|
||||
show_title: false,
|
||||
slideshow: false,
|
||||
deeplinking: false
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Form validate
|
||||
*/
|
||||
|
|
|
@ -31,7 +31,6 @@ $aCss=array(
|
|||
"___path.framework.frontend.web___/js/vendor/markitup/sets/synio/style.css",
|
||||
"___path.framework.frontend.web___/js/vendor/jcrop/jquery.Jcrop.css",
|
||||
"___path.framework.frontend.web___/js/vendor/prettify/prettify.css",
|
||||
"___path.framework.frontend.web___/js/vendor/prettyphoto/css/prettyphoto.css",
|
||||
"___path.framework.frontend.web___/js/vendor/notifier/jquery.notifier.css",
|
||||
"___path.framework.frontend.web___/js/vendor/fotorama/fotorama.css",
|
||||
"___path.framework.frontend.web___/js/vendor/nprogress/nprogress.css",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6e59102a4d7c7ec0f5f9e8e1d9444342263594ab
|
||||
Subproject commit 83b12a8a265377592dd86d9006e6a4e5a9ada789
|
Loading…
Reference in a new issue