Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-3025: Principal.php in dropbox-folder-share/trunk/HynoTech/DropboxFolderShare – WordPress Plugin Repository

The Dropbox Folder Share plugin for WordPress is vulnerable to Server-Side Request Forgery in versions up to, and including, 1.9.7 via the ‘link’ parameter. This can allow unauthenticated attackers to make web requests to arbitrary locations originating from the web application and can be used to query and modify information from internal services.

CVE
#web#ios#android#mac#apple#google#linux#nodejs#js#java#wordpress#php#xpath#ssrf#acer#auth#webkit#ssl

1<?php2/**3 * Created by PhpStorm.4 * User: antony5 * Date: 06/08/186 * Time: 11:14 PM7 */89namespace HynoTech\DropboxFolderShare;101112use HynoTech\Drives\Cloud\Dropbox;1314Class Principal15{1617 const _VERSION_GENERAL_ = "1.9";18 const _VERSION_JS_ = "1.9";19 const _VERSION_CSS_ = "1.9";20 const _VERSION_ADMIN_ = "3.0";21 const _VERSION_CSS_DROPBOX_ = "3.0";2223 const _PARENT_PAGE_ = "options-general.php";24 const _OPT_SEETINGS_ = “dropbox-folder-share-options";25 const _PERMISOS_REQUERIDOS_ = 'manage_options’;2627 var $formSections = array();28 var $settings = array(); //Almacena los opciones actuales del Plugin29 var $opcDefault = array(30 “showIcons” => '1’,31 “showSize” => '1’,32 “showChange” => '1’,33 “showThumbnail” => '1’,34 “allowDownload” => '1’,35 “allowBrowseFolder” => '1’,36 “allowDownloadFolder” => '1’,37 “showInEditor” => '1’,38 “dbNativeViewer” => '1’,39 “imagesPopup” => '1’,40 “link2Folder” => '1’,41 “datetimeFormat” => 'd/m/Y H:i’,42 “thickboxTypes” => 'txt,html,htm’,43 “defaultHeight” => ‘300px’44 );4546 public function __construct() {4748 $zone = explode("_", get_locale());4950 setlocale(LC_TIME, get_locale());5152 \Carbon\Carbon::setLocale($zone[0]);5354 \Carbon\Carbon::setToStringFormat(get_option(‘date_format’) . " " . get_option(‘time_format’));5556 load_plugin_textdomain(“dropbox-folder-share", false, “dropbox-folder-share” . ‘/languages/’);5758 $objDFS_Admin = new Admin();59 add_action('admin_menu’, array(&$objDFS_Admin, ‘pagAdmin’));60 add_action('admin_init’, array(&$objDFS_Admin, ‘plugin_admin_init’));6162 add_filter(‘plugin_action_links_’ . DROPBOX_FOLDER_SHARE_PLUGIN_BASENAME, array(&$this, ‘add_settings_link’), 10, 2);6364 $this->inicializarVariables();65 }6667 public function inicializarVariables() {68 if (get_option(self::_OPT_SEETINGS_) == null) {69 update_option(self::_OPT_SEETINGS_, $this->opcDefault);70 }71 }7273 public function formatSizeUnits($bytes) {74 if ($bytes >= 1073741824) {75 $bytes = number_format($bytes / 1073741824, 2) . ' GB’;76 } elseif ($bytes >= 1048576) {77 $bytes = number_format($bytes / 1048576, 2) . ' MB’;78 } elseif ($bytes >= 1024) {79 $bytes = number_format($bytes / 1024, 2) . ' KB’;80 } elseif ($bytes > 1) {81 $bytes = $bytes . ' bytes’;82 } elseif ($bytes == 1) {83 $bytes = $bytes . ' byte’;84 } else {85 $bytes = '0 bytes’;86 }8788 return $bytes;89 }909192 function getMetaTags($str) {93 $pattern = '94 ~<\s*meta\s9596 # using lookahead to capture type to $197 (?=[^>]*?98 \b(?:name|property|http-equiv)\s*=\s*99 (?|"\s*([^”]*?)\s*"|\’\s*([^\’]*?)\s*\’|100 ([^"\’>]*?)(?=\s*/?\s*>|\s\w+\s*=))101 )102103 # capture content to $2104 [^>]*?\bcontent\s*=\s*105 (?|"\s*([^”]*?)\s*"|\’\s*([^\’]*?)\s*\’|106 ([^"\’>]*?)(?=\s*/?\s*>|\s\w+\s*=))107 [^>]*>108109 ~ix’;110111 if (preg_match_all($pattern, $str, $out)) {112 return array_combine($out[1], $out[2]);113 }114115 return array();116 }117118 function ajaxGetHeaders() {119 $content = $this->fetch_url($_POST[‘link’]);120121 $content = $this->getMetaTags($content->response);122123 header(‘Content-type: application/json; charset=utf-8’);124 echo json_encode($content);125 exit();126 }127128 function ajaxReplaceShortcode($atts) {129130 if (!isset($_POST[‘dfs_nonce’]) || !wp_verify_nonce($_POST[‘dfs_nonce’], ‘dfs_nonce’))131 die(__("Error de seguridad", “dropbox-folder-share”));132133134 // set defaults135 $opciones = get_option(self::_OPT_SEETINGS_);136 extract(shortcode_atts(array(137 ‘link’ => $_POST[‘link’],138 ‘show_icon’ => $_POST[‘showIcons’],139 ‘show_size’ => $_POST[‘showSize’],140 ‘show_change’ => $_POST[‘showChange’]141 ), $atts));142143 $opciones_shortcode = array(144 ‘link’ => $link,145 ‘showIcons’ => $show_icon,146 ‘showSize’ => $show_size,147 ‘showChange’ => $show_change148 );149150 $idContent = $_POST[‘idContent’];151 $titleBar = @$_POST[“titleBar”];152153 echo $this->get_folder($opciones_shortcode, $idContent, $titleBar);154 die();155 }156157 function scriptAjax($opciones_shortcode, $idContent) {158 //$idContent = "DFS".rand(1,99999);159 $url_imgLoader = DROPBOX_FOLDER_SHARE_PLUGIN_URL . "/src/img/gears.svg";160161 $data = json_encode($opciones_shortcode);162163 $regresarScript = "<div id=’$idContent’>";164 //$regresarScript .= "<div class=\"loader\">Loading…</div>";165 $regresarScript .= "<div style=’text-align: center’><img src=\"{$url_imgLoader}\"></div>";166 $regresarScript .= "</div>";167 $regresarScript .= "<script>";168 $regresarScript .= "loadContenDFS('$data’, ‘$idContent’)";169 $regresarScript .= "</script>";170 return $regresarScript;171 }172173 function replace_shortcode($atts) {174 $idContent = “DFS” . mt_rand(1, 99999);175 // set defaults176 $opciones = get_option(self::_OPT_SEETINGS_);177 extract(shortcode_atts(array(178 ‘link’ => 'https://www.dropbox.com/sh/8ifs95x8qgcaf71/1TCmt_bBy1’,179 ‘show_icon’ => $opciones[‘showIcons’],180 ‘show_size’ => $opciones[‘showSize’],181 ‘show_change’ => $opciones[‘showChange’]182 ), $atts));183184 $opciones_shortcode = array(185 ‘link’ => $link,186 ‘showIcons’ => (($show_icon === ‘true’) || ($show_icon === ‘1’)) ? ‘1’ : '’,187 ‘showSize’ => (($show_size === ‘true’) || ($show_size === ‘1’)) ? ‘1’ : '’,188 ‘showChange’ => (($show_change === ‘true’) || ($show_change === ‘1’)) ? ‘1’ : '’189 );190 return $this->scriptAjax($opciones_shortcode, $idContent);191192 //193194 }195196197 function fetch_url($url, $headers = false, $tipo = ‘get’, $data = [], $cookies = []) {198199 if (function_exists(“curl_init”)) {200201 $txtLocale = str_replace(“_", "-“, get_locale());202203 $curl = new \Curl\Curl();204 $curl->setopt(CURLOPT_RETURNTRANSFER, TRUE);205 $curl->setopt(CURLOPT_SSL_VERIFYPEER, FALSE);206207 /*208 if(wp_is_mobile()){209 $curl->setUserAgent(‘Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30’);210 }211 */212 if ($headers) {213 $curl->setopt(CURLOPT_HEADER, true);214 $curl->setopt(CURLOPT_NOBODY, true);215216 }217 $curl->setopt(CURLOPT_FOLLOWLOCATION, true);218 $curl->setHeader('Accept-Language’, $txtLocale);219220 //$curl->setCookie('key’, ‘value’);221 $curl->setCookies($cookies);222223 switch ($tipo) {224 case 'post’:225 $curl->post($url, $data);226 break;227 case ‘options’:228 $curl->options($url, $data);229 break;230 default:231 $curl->get($url);232 break;233 }234235 return ($headers) ? $curl->responseHeaders : $curl;236 } else {237 echo "<h3>ERROR: curl disabled</h3>";238 return false;239 }240241 return false;242 }243244 function get_folder($opciones_shortcode, $id_content = null, $titleBar = null) {245 $opcion = get_option(self::_OPT_SEETINGS_);246247 $link = $opciones_shortcode[‘link’];248249 $opcion = array_merge($opcion, $opciones_shortcode);250251 $url_data = $link;252253 $data = json_encode($opciones_shortcode);254 $data = str_replace("\"", "\\’", $data);255 $data = ‘rev_’ . $data;256257 $reintentos = 0;258 do {259 $response = new Dropbox($url_data);260 // $response = new Dropbox(‘https://www.dropbox.com/sh/8ifs95x8qgcaf71/AAAUdBHtQXdzkZRYpPsE1x3SMa?dl=0’);261 $dataCarpeta = $response->dataContenido(‘array’);262 $reintentos++;263 } while (is_null($dataCarpeta->id) && $reintentos < 5);264265266 $dataCarpeta->numSubCarpetas();267 $dataCarpeta->numArchivos();268// echo "<pre>";269// print_r($dataCarpeta);270// echo “</pre>";271272 if (is_null($dataCarpeta->id)) {273 $retorno = '274 <div class="err sl-list-container” style="width: 100%; text-align: center;">275 <img src="’ . DROPBOX_FOLDER_SHARE_PLUGIN_URL . '/src/img/error_404.png” alt="” width="30%">276 <h4 class="sl-empty-folder-message">’ . __("No encontramos lo que buscas.", “dropbox-folder-share”) . '</h4>277 </div>278 ';279 return json_encode([‘html’ => $retorno, ‘imgs’ => []]);280 }281282 $jsonExtensiones = file_get_contents(__DIR__ . ‘/json/extensiones.json’);283284 $domRetorno = new \DOMDocument('1.0’, ‘UTF-8’);285 $datosCarpetaLocal = [286 “nombre” => $dataCarpeta->nombre,287 “path” => $dataCarpeta->linkSubPath,288 “linkKey” => $dataCarpeta->linkKey,289 “secureHash” => $dataCarpeta->linkSecureHash,290 “link” => $dataCarpeta->href,291 “propietario” => $dataCarpeta->propietario,292 “archivos” => $dataCarpeta->archivos,293 “carpetas” => $dataCarpeta->subCarpetas,294 ];295296297 $detalleURL = parse_url($datosCarpetaLocal[“link”]);298299 $html_ol[‘breadcrumb’] = $domRetorno->createElement(‘ol’);300 $html_ol[‘breadcrumb’]->setAttribute('class’, ‘breadcrumb’);301 $html_ol[‘breadcrumb’]->setAttribute('style’, ‘font-size: 16px; margin:0px;’);302303304 $addLIZip = $domRetorno->createElement(‘li’);305 if ($opcion[‘allowDownloadFolder’] === ‘1’) {306307 $query_params[‘dl’] = 1;308 $detalleURL[‘query’] = http_build_query($query_params);309310 $lnkDescarga = http_build_url($link,311 $detalleURL,312 HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT313 );314315316 $addIMGZip = $domRetorno->createElement(‘img’);317 $addIMGZip->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/zip.png’);318 $addIMGZip->setAttribute('title’, __('Descargar carpeta actual (zip)', ‘dropbox-folder-share’));319320 $addAZip = $domRetorno->createElement(‘a’);321 $addAZip->setAttribute('href’, $lnkDescarga);322 $addAZip->setAttribute('target’, “_blank”);323 $addAZip->appendChild($addIMGZip);324325 $addLIZip->setAttribute('class’, ‘pull-right’); //creado fuera del IF326 $addLIZip->appendChild($addAZip);327328 }329330331 //solo entra si existe una barra de titulo, es decir si es sub carpeta332 if ($titleBar != null) {333 $titleBar = str_replace('\\"’, '"’, $titleBar);334 $titleBar = str_replace("\\’", "’", $titleBar);335 $titleBar = str_replace("\\\\", “\\", $titleBar);336337 $titleBar = $this->limpiahtml($titleBar);338339 $doc = new \DOMDocument();340341 $doc->loadHTML(mb_convert_encoding($titleBar, 'HTML-ENTITIES’, ‘UTF-8’));342343 $elemLiBreadcrumb = $doc->getElementsByTagName(‘li’);344345 $elemOlBreadcrumb = $doc->getElementsByTagName(‘ol’);346347 $lnkSup = false;348 foreach ($elemLiBreadcrumb as $li) {349350 if ($li->getAttribute(‘class’) == ‘pull-right’) {351 $li->parentNode->removeChild($li);352 } else {353 $html_ol[‘breadcrumb’]->appendChild($domRetorno->importNode($li, true));354 if ($li->getAttribute(‘data-id’) == $datosCarpetaLocal[“secureHash”]) {355 $lnkSup = true;356 break;357 }358 }359 }360361 $elemA_1 = $domRetorno->createElement('a’, $datosCarpetaLocal[“nombre”]);362 $elemA_1->setAttribute('href’, $link);363 $elemA_1->setAttribute('onclick’, “loadContenDFS('{$data}’, ‘{$id_content}’); varTitulo = 1; return false;”);364 $elemA_1->setAttribute('data-titulo’, ‘1’);365366 $elemIMG_2 = $domRetorno->createElement(‘img’);367 $elemIMG_2->setAttribute('width’, ‘12px’);368 $elemIMG_2->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘/src/img/ico-external-link.png’);369370 $elemA_2 = $domRetorno->createElement(‘a’);371 $elemA_2->setAttribute('href’, $link);372 $elemA_2->setAttribute('target’, ‘_blank’);373 $elemA_2->appendChild($elemIMG_2);374375 $elemLi = $domRetorno->createElement(‘li’);376 $elemLi->setAttribute('data-id’, $datosCarpetaLocal[“secureHash”]);377 $elemLi->appendChild($elemA_1);378 $elemLi->appendChild($elemA_2);379380 if (!$lnkSup) {381 $html_ol[‘breadcrumb’]->appendChild($elemLi);382 }383384 if ($opcion[‘allowDownloadFolder’] === ‘1’) {385 $html_ol[‘breadcrumb’]->appendChild($addLIZip);386 }387388 }389 else {390 $html_i[‘fa-dropbox’] = $domRetorno->createElement(‘i’);391 $html_i[‘fa-dropbox’]->setAttribute('class’, ‘fa fa-dropbox’);392 $html_i[‘fa-dropbox’]->setAttribute('style’, ‘color: #0082E6;’);393394 $html_li[0] = $domRetorno->createElement(‘li’);395 $html_li[0]->appendChild($html_i[‘fa-dropbox’]);396397 $html_a[‘ajax’] = $domRetorno->createElement('a’, $datosCarpetaLocal[“nombre”]);398 $html_a[‘ajax’]->setAttribute('href’, $link);399 $html_a[‘ajax’]->setAttribute('data-titulo’, ‘1’);400 $html_a[‘ajax’]->setAttribute('onclick’, “loadContenDFS('{$data}’, ‘{$id_content}’); varTitulo = 1; return false;”);401402 $html_img[‘ext_icon’] = $domRetorno->createElement(‘img’);403 $html_img[‘ext_icon’]->setAttribute('width’, ‘12px’);404 $html_img[‘ext_icon’]->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . “src/img/ico-external-link.png”);405406 $html_a[‘blank’] = $domRetorno->createElement(‘a’);407 $html_a[‘blank’]->setAttribute('href’, $link);408 $html_a[‘blank’]->setAttribute('target’, ‘_blank’);409 $html_a[‘blank’]->appendChild($html_img[‘ext_icon’]);410411 $html_li[1] = $domRetorno->createElement(‘li’);412 $html_li[1]->setAttribute('data-id’, $datosCarpetaLocal[“secureHash”]);413 $html_li[1]->appendChild($html_a[‘ajax’]);414 $html_li[1]->appendChild($html_a[‘blank’]);415416 //$html_ol[‘breadcrumb’] creado al inicio del if de este else y superior417 $html_ol[‘breadcrumb’]->appendChild($html_li[0]);418 $html_ol[‘breadcrumb’]->appendChild($html_li[1]);419 if ($opcion[‘allowDownloadFolder’] === ‘1’) {420 $html_ol[‘breadcrumb’]->appendChild($addLIZip);421 }422423 }424425426 $cantData = count($datosCarpetaLocal[“carpetas”]) + count($datosCarpetaLocal[“archivos”]);427428 if ($cantData > 0) {429430431 if ($opcion[‘link2Folder’] != ‘1’) {432433 $domRetorno->appendChild($html_ol[‘breadcrumb’]);434435 $this->EliminarTAG($domRetorno, ‘//a’);436 $this->EliminarTAG($domRetorno, '//img[@width="12px”]');437438 }439440441 $displaySize = "auto";442 $displayChange = "auto";443 $seccionesLista = [58.6, 19.5, 21.9];444 if (($opcion[‘allowDownload’] === ‘1’) || ($opcion[‘allowDownloadFolder’] === ‘1’)) {445 $seccionesLista = [58.6, 16.5, 18.9];446 }447 if(wp_is_mobile()){448 $seccionesLista = [100, 0, 0];449 if (($opcion[‘allowDownload’] === ‘1’) || ($opcion[‘allowDownloadFolder’] === ‘1’)) {450 $seccionesLista = [94, 0, 0];451 }452 $displaySize = "none";453 $displayChange = "none";454 }455 else{456 if ($opcion[‘showSize’] != ‘1’) {457 $displaySize = "none";458 $seccionesLista[0] += $seccionesLista[1];459 $seccionesLista[1] = 0;460 }461462463 if ($opcion[‘showChange’] != ‘1’) {464 $displayChange = "none";465 $seccionesLista[0] += $seccionesLista[2];466 $seccionesLista[2] = 0;467 }468 }469470471 $html_ol[‘sl-list-body’] = $domRetorno->createElement(‘ol’);//revisar separacion472 $html_ol[‘sl-list-body’]->setAttribute('class’, ‘sl-list-body o-list-ui o-list-ui–dividers’);473 $html_ol[‘sl-list-body’]->setAttribute('style’, “max-height:” . (($opcion[‘defaultHeight’] != ‘0’) ? $opcion[‘defaultHeight’] : ‘auto’) . “; overflow:auto; margin: 0px !important”);474 foreach ($datosCarpetaLocal[“carpetas”] as $carpeta) {475 $folderName = $carpeta->nombre;476 $folderHref = $carpeta->href;477 $opciones_shortcode[‘link’] = $folderHref;478479 $data = json_encode($opciones_shortcode);480 $data = str_replace("\"", "\\’", $data);481 $data = ‘rev_’ . $data;482483 $displayIcon = "auto";484 if ($opcion[‘showIcons’] != ‘1’) {485 $displayIcon = "none";486 }487488 $html_li_div_a_div_div_img_lista = $domRetorno->createElement(‘img’);489 $html_li_div_a_div_div_img_lista->setAttribute('class’, ‘sprite sprite_web s_web_folder_32 icon’);490 $html_li_div_a_div_div_img_lista->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/icon_spacer.gif’);491492 $html_li_div_a_div_div_lista = $domRetorno->createElement(‘div’);493 $html_li_div_a_div_div_lista->setAttribute('class’, ‘o-flag__fix’);494 $html_li_div_a_div_div_lista->setAttribute('style’, "display: {$displayIcon} ");495 $html_li_div_a_div_div_lista->appendChild($html_li_div_a_div_div_img_lista);496497 $html_li_div_a_div_div2_lista = $domRetorno->createElement('div’, $folderName);498 $html_li_div_a_div_div2_lista->setAttribute('class’, ‘o-flag__flex’);499 $html_li_div_a_div_div2_lista->setAttribute('style’, ‘flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;’);500 //$html_li_div_a_div_div2_lista->setAttribute('style’,"display: {$displayIcon} ");501502 $html_li_div_a_div_lista = $domRetorno->createElement(‘div’);503 $html_li_div_a_div_lista->setAttribute('class’, ‘o-flag’);504 $html_li_div_a_div_lista->appendChild($html_li_div_a_div_div_lista);505 $html_li_div_a_div_lista->appendChild($html_li_div_a_div_div2_lista);506507508 $html_li_div_a_lista = $domRetorno->createElement(‘a’);509 $html_li_div_a_lista->setAttribute('href’, $folderHref);510 $html_li_div_a_lista->setAttribute('data-titulo’, ‘1’);511 if ($opcion[‘allowBrowseFolder’] == ‘1’) {512 $html_li_div_a_lista->setAttribute('onclick’, “loadContenDFS('{$data}’, ‘{$id_content}’); varTitulo = 1; return false;”);513 } else {514 $html_li_div_a_lista->setAttribute('onclick’, “return false;”);515 }516 $html_li_div_a_lista->setAttribute('class’, ‘sl-file-link’);517 $html_li_div_a_lista->appendChild($html_li_div_a_div_lista);518519 $html_li_div_lista = $domRetorno->createElement(‘div’);520 $html_li_div_lista->setAttribute('class’, ‘sl-list-column sl-list-column–filename’);521 $html_li_div_lista->setAttribute('style’, “width: {$seccionesLista[0]}% !important;”);522 $html_li_div_lista->appendChild($html_li_div_a_lista);523524 $html_li_div2_lista = $domRetorno->createElement('div’, ‘–’);525 $html_li_div2_lista->setAttribute('class’, ‘sl-list-column sl-list-column–filesize’);526 $html_li_div2_lista->setAttribute('style’, "width: {$seccionesLista[1]}% !important;; display: {$displaySize} ");527528 $html_li_div3_lista = $domRetorno->createElement('div’, ‘–’);529 $html_li_div3_lista->setAttribute('class’, ‘sl-list-column sl-list-column–modified’);530 $html_li_div3_lista->setAttribute('style’, "width: {$seccionesLista[2]}% !important;; display: {$displayChange} ");531532 $html_li_div4_lista = $domRetorno->createElement(‘span’);533 if ($opcion[‘allowDownloadFolder’] === ‘1’) {534 $fileLinkMostrar = $this->downloadLinkGenerator($folderHref);535 $lnkOrigDescarga = $fileLinkMostrar;536537 $aDescarga = $domRetorno->createElement(‘a’);538 $aDescarga->setAttribute('href’, $lnkOrigDescarga);539 //$aDescarga->setAttribute('target’, ‘_blank’);540541 $html_li_div4_lista = $domRetorno->createElement(‘i’);542 $html_li_div4_lista->setAttribute('class’, ‘fa fa-file-archive-o’);543 $html_li_div4_lista->setAttribute('style’, ‘color: #0082E6;’);544 $aDescarga->appendChild($html_li_div4_lista);545 $html_li_div4_lista = $aDescarga;546 }547548 //<i class="fas fa-download"></i>549550551 $html_li_lista = $domRetorno->createElement(‘li’);552 $html_li_lista->setAttribute('class’, ‘sl-list-row clearfix’);553 $html_li_lista->appendChild($html_li_div_lista);554 $html_li_lista->appendChild($html_li_div2_lista);555 $html_li_lista->appendChild($html_li_div3_lista);556 $html_li_lista->appendChild($html_li_div4_lista);557558 $html_ol[‘sl-list-body’]->appendChild($html_li_lista);559560 }561562563 $arrayIMG = array();564565 foreach ($datosCarpetaLocal[“archivos”] as $archivo) {566567568 $file_link = $archivo->href;569570 $file_name = $archivo->nombre;571572 $bytes = $archivo->peso;573 $creado = $archivo->fechaCreacion;574575 $displayIcon = "auto";576 if ($opcion[‘showIcons’] != ‘1’) {577 $displayIcon = "none";578 }579580 $fileLinkMostrar = $file_link;581582 if ($opcion[‘allowDownload’] === ‘1’) {583 $fileLinkMostrar = $this->downloadLinkGenerator($file_link);584 }585586 $arrayExtThickbox = explode(",", $opcion[‘thickboxTypes’]);587 $classThickBox = "";588 $relThickBox = "";589590 $lightbox = false;591 if (in_array($archivo->extension, $arrayExtThickbox)) {592 $lightbox = true;593 }594 else {595 if (($opcion[‘imagesPopup’] === ‘1’) && ($archivo->icono == ‘page_white_picture_32’)) {596 $lightbox = true;597 $relThickBox = “gal_” . $id_content;598 }599 }600601 if ($lightbox) {602 $classThickBox = "lightbox";603 $dataWidth = "1000";604605 if ($opcion[‘dbNativeViewer’] === ‘1’ && $archivo->previsualizacion !== null) {606 $fileLinkMostrar = $archivo->previsualizacion;607 }608 else {609 $fileLinkMostrar = $this->downloadLinkGenerator($file_link);610 $fileLinkMostrar = “https://docs.google.com/viewer?url=” . $fileLinkMostrar . “&embedded=true&KeepThis=true&TB_iframe=true&height=400&width=800";611 }612613 }614615 if ($opcion[‘showThumbnail’] === ‘1’ && $archivo->miniatura != null) {616 $html_li_div_a_div_div_img_lista = $domRetorno->createElement(‘img’);617 $html_li_div_a_div_div_img_lista->setAttribute('class’, “icon thumbnail-image–loaded”);618 $html_li_div_a_div_div_img_lista->setAttribute('id’, $archivo->id);619 $html_li_div_a_div_div_img_lista->setAttribute('src’, $archivo->miniatura . ‘?size=32x32&size_mode=1’);620 }621 else {622 $html_li_div_a_div_div_img_lista = $domRetorno->createElement(‘img’);623 $html_li_div_a_div_div_img_lista->setAttribute('class’, “sprite sprite_web s_web_” . $archivo->icono . " icon”);624 $html_li_div_a_div_div_img_lista->setAttribute('id’, $archivo->id);625 $html_li_div_a_div_div_img_lista->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/icon_spacer.gif’);626 }627628629 $html_li_div_a_div_div_lista = $domRetorno->createElement(‘div’);630 $html_li_div_a_div_div_lista->setAttribute('class’, ‘o-flag__fix’);631 $html_li_div_a_div_div_lista->setAttribute('style’, "display: {$displayIcon} ");632 $html_li_div_a_div_div_lista->appendChild($html_li_div_a_div_div_img_lista);633634 $html_li_div_a_div_div2_lista = $domRetorno->createElement('div’, $file_name);635 $html_li_div_a_div_div2_lista->setAttribute('class’, ‘o-flag__flex’);636 $html_li_div_a_div_div2_lista->setAttribute('style’, ‘flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;’);637638 $html_li_div_a_div_lista = $domRetorno->createElement(‘div’);639 $html_li_div_a_div_lista->setAttribute('class’, ‘o-flag’);640 $html_li_div_a_div_lista->appendChild($html_li_div_a_div_div_lista);641 $html_li_div_a_div_lista->appendChild($html_li_div_a_div_div2_lista);642643 $html_li_div_a_lista = $domRetorno->createElement(‘a’);644 $html_li_div_a_lista->setAttribute('href’, $fileLinkMostrar);645 //$html_li_div_a_lista->setAttribute('class’,’sl-file-link '.$classThickBox);646 $html_li_div_a_lista->setAttribute('class’, 'sl-file-link ');647 $html_li_div_a_lista->setAttribute('title’, $file_name);648 if ($relThickBox != “”) {649 $html_li_div_a_lista->setAttribute('data-gallery’, $relThickBox);650 }651 $html_li_div_a_lista->setAttribute('data-title’, $file_name);652 $html_li_div_a_lista->setAttribute('data-toggle’, $classThickBox);653 if (isset($dataWidth)) {654 $html_li_div_a_lista->setAttribute('data-width’, $dataWidth);655 }656 //$html_li_div_a_lista->setAttribute('data-remote’, $fileLinkMostrar);657 //$html_li_div_a_lista->setAttribute('rel’,$relThickBox);658 $html_li_div_a_lista->appendChild($html_li_div_a_div_lista);659660 $html_li_div_lista = $domRetorno->createElement(‘div’);661 $html_li_div_lista->setAttribute('class’, ‘sl-list-column sl-list-column–filename’);662 $html_li_div_lista->setAttribute('style’, “width: {$seccionesLista[0]}% !important;”);663 $html_li_div_lista->appendChild($html_li_div_a_lista);664665 $html_li_div2_lista = $domRetorno->createElement('div’, (($opcion[‘showSize’] != ‘1’) ? “” : self::formatSizeUnits($bytes)));666 $html_li_div2_lista->setAttribute('class’, ‘sl-list-column sl-list-column–filesize’);667 $html_li_div2_lista->setAttribute('style’, “width: {$seccionesLista[1]}% !important;; display: {$displaySize} ");668669 $strFecha = \Carbon\Carbon::createFromTimestamp($creado)->format(isset($opcion[‘datetimeFormat’]) ? $opcion[‘datetimeFormat’] : get_option(‘date_format’) . " " . get_option(‘time_format’));670 //$strFecha = \Carbon\Carbon::createFromTimestamp($creado)->format(get_option(‘date_format’).” ". get_option(‘time_format’));671 if ((\Carbon\Carbon::createFromTimestamp($creado)->diffInDays()) <= 30) {672 $strFecha = \Carbon\Carbon::createFromTimestamp($creado)->diffForHumans();673 }674675 $html_li_div3_lista = $domRetorno->createElement('div’, $strFecha);676 $html_li_div3_lista->setAttribute('class’, ‘sl-list-column sl-list-column–modified’);677 $html_li_div3_lista->setAttribute('style’, “width: {$seccionesLista[2]}% !important;; display: {$displayChange} ");678679 $html_li_div4_lista = $domRetorno->createElement(‘span’);680 if ($opcion[‘allowDownload’] === ‘1’) {681 $fileLinkMostrar = $this->downloadLinkGenerator($file_link);682 $lnkOrigDescarga = $fileLinkMostrar;683684 $aDescarga = $domRetorno->createElement(‘a’);685 $aDescarga->setAttribute('href’, $lnkOrigDescarga);686 //$aDescarga->setAttribute('target’, ‘_blank’);687688 $html_li_div4_lista = $domRetorno->createElement(‘i’);689 $html_li_div4_lista->setAttribute('class’, ‘fa fa-download’);690 $html_li_div4_lista->setAttribute('style’, ‘color: #0082E6;’);691692 $aDescarga->appendChild($html_li_div4_lista);693 $html_li_div4_lista = $aDescarga;694 }695696 $html_li_lista = $domRetorno->createElement(‘li’);697 $html_li_lista->setAttribute('class’, ‘sl-list-row clearfix’);698 $html_li_lista->appendChild($html_li_div_lista);699 $html_li_lista->appendChild($html_li_div2_lista);700 $html_li_lista->appendChild($html_li_div3_lista);701 $html_li_lista->appendChild($html_li_div4_lista);702703 $domRetorno->appendChild($html_li_lista);704705 //d($domRetorno->saveHTML($html_li_lista));706707 $html_ol[‘sl-list-body’]->appendChild($html_li_lista);708709 }710 //d($domRetorno->saveHTML($html_ol_lista));711 //d($datosCarpetaLocal);712713714 /**715 * DATOS NECESARIOS716 */717718719 $html_div[‘Hyno_Breadcrumbs’] = $domRetorno->createElement(‘div’);//content $txtNavegacion720 $html_div[‘Hyno_Breadcrumbs’]->setAttribute('class’, ‘row’);721 $html_div[‘Hyno_Breadcrumbs’]->setAttribute('id’, “Hyno_Breadcrumbs_{$id_content}”);722 $html_div[‘Hyno_Breadcrumbs’]->appendChild($domRetorno->importNode($html_ol[‘breadcrumb’]));723724 $html_div[‘Hyno_Header’] = $domRetorno->createElement(‘div’);//contenido $txtCarpeta725 $html_div[‘Hyno_Header’]->setAttribute('class’, ‘sl-header clearfix’);726 $html_div[‘Hyno_Header’]->setAttribute('id’, “Hyno_Header_{$id_content}”);727 //$html_div[‘Hyno_Header’]->appendChild($domRetorno->importNode($elemOlBreadcrumbPrincipal, true));728729 //-----bloque grande —730 $html_div[‘filename’] = $domRetorno->createElement('div’, __('Nombre’, ‘dropbox-folder-share’));731 $html_div[‘filename’]->setAttribute('class’, ‘sl-list-column sl-list-column–filename’);732 $html_div[‘filename’]->setAttribute('style’, “width: {$seccionesLista[0]}% !important;”);733734 $html_div[‘filesize’] = $domRetorno->createElement('div’, __('Tamaño’, ‘dropbox-folder-share’));735 $html_div[‘filesize’]->setAttribute('class’, ‘sl-list-column sl-list-column–filesize’);736 $html_div[‘filesize’]->setAttribute('style’, “width: {$seccionesLista[1]}% !important; display: {$displaySize} ");737738 $html_div[‘modified’] = $domRetorno->createElement('div’, __('Modificado’, ‘dropbox-folder-share’));739 $html_div[‘modified’]->setAttribute('class’, ‘sl-list-column sl-list-column–modified’);740 $html_div[‘modified’]->setAttribute(‘style’, “width: {$seccionesLista[2]}% !important; display: {$displayChange} ");741742743 $html_div[‘accion’] = $domRetorno->createElement(‘span’);744 if ($opcion[‘allowDownload’] === ‘1’) {745 $html_div[‘accion’] = $domRetorno->createElement('div’, ‘’);746 $html_div[‘accion’]->setAttribute('class’, ‘sl-list-column’);747 $html_div[‘accion’]->setAttribute('style’, “width: 4% !important; display: {$displayChange} ");748 }749750751 $html_div[‘sl-list-row’] = $domRetorno->createElement(‘div’);752 $html_div[‘sl-list-row’]->setAttribute('class’, ‘sl-list-row clearfix’);753 $html_div[‘sl-list-row’]->appendChild($html_div[‘filename’]);754 $html_div[‘sl-list-row’]->appendChild($html_div[‘filesize’]);755 $html_div[‘sl-list-row’]->appendChild($html_div[‘modified’]);756 $html_div[‘sl-list-row’]->appendChild($html_div[‘accion’]);757758 $html_div[‘sl-list-header’] = $domRetorno->createElement(‘div’);759 $html_div[‘sl-list-header’]->setAttribute('class’, ‘sl-list-header’);760 $html_div[‘sl-list-header’]->setAttribute('style’, “border-bottom: solid 1px; ");761 $html_div[‘sl-list-header’]->appendChild($html_div[‘sl-list-row’]);762763 $html_div[‘sl-list-container’] = $domRetorno->createElement(‘div’);764 $html_div[‘sl-list-container’]->setAttribute('class’, ‘sl-list-container’);765 $html_div[‘sl-list-container’]->appendChild($html_div[‘sl-list-header’]);766 $html_div[‘sl-list-container’]->appendChild($html_ol[‘sl-list-body’]);767768 $html_div[‘sl-body’] = $domRetorno->createElement(‘div’);769 $html_div[‘sl-body’]->setAttribute('class’, ‘sl-body’);770 $html_div[‘sl-body’]->appendChild($html_div[‘sl-list-container’]);771 //---------------------------------------------------------772773 $html_div[‘sl-page-body’] = $domRetorno->createElement(‘div’);//content $txtNavegacion774 $html_div[‘sl-page-body’]->setAttribute('class’, ‘sl-page-body’);775 $html_div[‘sl-page-body’]->appendChild($html_div[‘Hyno_Breadcrumbs’]);776 $html_div[‘sl-page-body’]->appendChild($html_div[‘Hyno_Header’]);777 $html_div[‘sl-page-body’]->appendChild($html_div[‘sl-body’]);778779 $html_div[‘sl-body’]->setAttribute('class’, ‘sl-body’);780781782 $html_div[‘Hyno_ContenFolder’] = $domRetorno->createElement(‘div’);783 $html_div[‘Hyno_ContenFolder’]->setAttribute('class’, ‘Hyno_ContenFolder’);784 $html_div[‘Hyno_ContenFolder’]->appendChild($html_div[‘sl-page-body’]);785786787 $retorno = json_encode([‘html’ => $domRetorno->saveHTML($html_div[‘Hyno_ContenFolder’]), ‘imgs’ => $arrayIMG]);788 }789 else {790791 $html_div[‘Hyno_Breadcrumbs’] = $domRetorno->createElement(‘div’);//content $txtNavegacion792 $html_div[‘Hyno_Breadcrumbs’]->setAttribute('class’, ‘row’);793 $html_div[‘Hyno_Breadcrumbs’]->setAttribute('id’, “Hyno_Breadcrumbs_{$id_content}”);794 $html_div[‘Hyno_Breadcrumbs’]->appendChild($domRetorno->importNode($html_ol[‘breadcrumb’]));795796 $html_div[‘Hyno_Header’] = $domRetorno->createElement(‘div’);//contenido $txtCarpeta797 $html_div[‘Hyno_Header’]->setAttribute('class’, ‘sl-header clearfix’);798 $html_div[‘Hyno_Header’]->setAttribute('id’, “Hyno_Header_{$id_content}”);799800 $html_img[‘sl-empty’] = $domRetorno->createElement(‘img’);801 $html_img[‘sl-empty’]->setAttribute('class’, ‘sl-empty-folder-icon’);802 $html_img[‘sl-empty’]->setAttribute('src’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/carpeta.png’);803804 $html_h4[‘sl-empty’] = $domRetorno->createElement(‘h4’, __(“Esta carpeta está vacía", “dropbox-folder-share”));805 $html_h4[‘sl-empty’]->setAttribute('class’, ‘sl-empty-folder-message’);806807 $html_div[‘sl-body’] = $domRetorno->createElement(‘div’);808 $html_div[‘sl-body’]->setAttribute('class’, ‘sl-body sl-body–empty-folder’);809 $html_div[‘sl-body’]->appendChild($html_img[‘sl-empty’]);810 $html_div[‘sl-body’]->appendChild($html_h4[‘sl-empty’]);811812 $html_div[‘sl-page-body’] = $domRetorno->createElement(‘div’);//content $txtNavegacion813 $html_div[‘sl-page-body’]->setAttribute('class’, ‘sl-page-body sl-list-container’);814 $html_div[‘sl-page-body’]->appendChild($html_div[‘Hyno_Breadcrumbs’]);815 $html_div[‘sl-page-body’]->appendChild($html_div[‘Hyno_Header’]);816 $html_div[‘sl-page-body’]->appendChild($html_div[‘sl-body’]);817818 $html_div[‘Hyno_ContenFolder’] = $domRetorno->createElement(‘div’);819 $html_div[‘Hyno_ContenFolder’]->setAttribute('class’, ‘Hyno_ContenFolder’);820 $html_div[‘Hyno_ContenFolder’]->appendChild($html_div[‘sl-page-body’]);821822 $retorno = json_encode([‘html’ => $domRetorno->saveHTML($html_div[‘Hyno_ContenFolder’]), ‘imgs’ => []]);823824825 }826827828 return $retorno;829 }830831 function downloadLinkGenerator($link, $query_params = array()) {832 if (count($query_params) === 0)833 $query_params[‘dl’] = 1;834 $detalleURL[‘query’] = http_build_query($query_params);835836 $newUrl = http_build_url($link,837 $detalleURL,838 HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT839 );840 return $newUrl;841 }842843 function add_settings_link($links, $file) {844 if (DROPBOX_FOLDER_SHARE_PLUGIN_BASENAME === $file && current_user_can(self::_PERMISOS_REQUERIDOS_)) {845 $links[] = ‘<a href="’ . esc_url($this->plugin_options_url()) . '” alt="’ . esc_attr__('Dropbox Folder Share - Configuracion’, “dropbox-folder-share”) . ‘">’ . esc_html__('Configurar’, “dropbox-folder-share”) . '</a>’;846 }847 return $links;848 }849850 function plugin_options_url() {851 return add_query_arg('page’, DROPBOX_FOLDER_SHARE_PLUGIN_NOMBRE, admin_url(self::_PARENT_PAGE_));852 }853854 function EliminarTAG(DOMDocument $dom, $query_xpath) {855 $xpath = new DOMXPath($dom);856 foreach ($xpath->query($query_xpath) as $link) {857 // Move all link tag content to its parent node just before it.858 while ($link->hasChildNodes()) {859 $child = $link->removeChild($link->firstChild);860 $link->parentNode->insertBefore($child, $link);861 }862 // Remove the link tag.863 $link->parentNode->removeChild($link);864 }865 }866867 function dropbox_foldershare_styles_and_scripts($posts) {868 if (empty($posts)) {869 return $posts;870 }871 $shortcode_found = false; // usamos shortcode_found para saber si nuestro plugin esta siendo utilizado872 foreach ($posts as $post) {873874 if (stripos($post->post_content, ‘dropbox-foldershare-hyno’)) { //shortcode a buscar875 $shortcode_found = true; // bingo!876 break;877 }878 if (stripos($post->post_content, ‘DFS’)) { //shortcode a buscar879 $shortcode_found = true; // bingo!880 break;881 }882883 if (stripos($post->post_content, ‘hyno_learn_more’)) { //cambiamos testiy por cualquier shortcode884 $shortcode_found = true; // bingo!885 break;886 }887 }888 if ($shortcode_found) {889890 self::incluir_JS_CSS();891892 //wp_enqueue_script('bible-post-script’, plugins_url('scripts-hyno.js’, __FILE__)); //en caso de necesitar la ruta de nuestro script js893 }894895 return $posts;896 }897898 function incluir_JS_CSS() {899 // enqueue900 wp_enqueue_script(‘jquery’);901 //wp_enqueue_script( ‘thickbox’ );902 wp_enqueue_script(‘jquery-ui-tooltip’);903904 wp_enqueue_script('bootstrap-js’, '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js’, array(‘jquery’), true); // all the bootstrap javascript goodness905 wp_enqueue_script('ekko-lightbox’, 'https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.js’, array(‘jquery’), true); // all the bootstrap javascript goodness906 wp_enqueue_script('DFS-Script’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . 'src/js/scripts-hyno.js’, array(‘jquery’));907908 $url_imgLoader = DROPBOX_FOLDER_SHARE_PLUGIN_URL . “/src/img/gears.svg";909910 wp_localize_script('DFS-Script’, 'objDFS’,911 array(912 ‘ajax_url’ => admin_url(‘admin-ajax.php’),913 ‘dfs_nonce’ => wp_create_nonce(‘dfs_nonce’),914 ‘url_imgLoader’ => $url_imgLoader915 )916 );917918 //wp_enqueue_style( ‘thickbox’ );919 wp_enqueue_style('bootstrap’, ‘//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’);920 wp_enqueue_style('ekko-lightbox’, ‘https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css’);921 wp_enqueue_style('font-awesome’, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css’);922 wp_enqueue_style('DFS-Style’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/css/styles-hyno.css’); //la ruta de nuestro css923 }924925 function limpiahtml($codigo) {926 $buscar = array('/\>[^\S ]+/s’, '/[^\S ]+\</s’, ‘/(\s)+/s’);927 $reemplazar = array(‘>’, ‘<’, ‘\\1’);928 $codigo = preg_replace($buscar, $reemplazar, $codigo);929 $codigo = str_replace("> <", “><", $codigo);930931 return $codigo;932 }933934935 function nota_actualizacion() {936 //if(!current_user_can( ‘manage_options’)) return;937 //$class = 'notice updated is-dismissible’;938 $message = ‘<strong>’ . esc_html__('Dropbox Folder Share ha mejorado!’, ‘dropbox-folder-share’) . '</strong><br/>’;939 $message .= ‘<em>’ . esc_html__('Seccion en editor.’, ‘dropbox-folder-share’) . ' — ' . esc_html__('Añadido la posibilidad de Widget’, ‘dropbox-folder-share’) . '</em><br/>’;940 $message .= sprintf(__('Por favor <a href="%s">revisa las configuraciones</a> para asegurarte de que todo esta bien.’, ‘dropbox-folder-share’), admin_url(‘options-general.php?page=dropbox-folder-share’)) . '<br/>’;941 $message .= ‘<em>’ . esc_html__('Gracias por Utilizar este plugin. Me gustaria leer sugerencias u opiniones para que juntos mejoremos esta herramienta, cualquier sugerencia para mejorar el plugin o reportar algun error nos ayuda muchisimo, no duden en hacernoslo saber. ', “dropbox-folder-share”) . '</em>’;942 $message .= ‘<em>’ . esc_html__('Pueden hacernos llegar sus sugerencias, opiniones y/o criticas a travez del formulario de contactos de’, “dropbox-folder-share”) . '<a href="http://www.hynotech.com"> HynoTech.com</a></em>’;943 $message .= '<br>’;944 $message .= ‘<em>’ . esc_html__('Considera hacer una donacion para ayudarnos con el proyecto. Lo tendremos en gran valor.’, “dropbox-folder-share”) . '</em>’;945 $message .= DROPBOX_FOLDER_SHARE_HTML_DONACIONES;946947 return $message;948 //echo '<div data-tipo="actualizacion” class="’.$class.’"><p>’.$message.’</p></div>’;949 }950951//https://premium.wpmudev.org/blog/adding-admin-notices/?utm_expid=3606929-101._J2UGKNuQ6e7Of8gblmOTA.0&utm_referrer=https%3A%2F%2Fwww.google.com.pe%2F952 function nota_donacion() {953954 $message = "<div class=’wrap’>955 <div class=’wpmm-wrapper’>956 <div class=’wrapper-cell’>957 <div id=’SugerenciasComments’ class=’stuffbox’ style=’border: 0px;’>958 <div class=’inside’>959 <h3>” . __('Dropbox Folder Share NECESITA TU AYUDA!’, ‘dropbox-folder-share’) . “</h3>960 <p class=’popular-tags’>” . __('¡Hola! Gracias por utilizar nuestro plugin gratuito en tu sitio web de WordPress. Nos esforzamos por proporcionar herramientas útiles para la comunidad de WordPress y estamos felices de que hayas encontrado nuestro plugin útil. Sin embargo, mantener y mejorar nuestro plugin requiere tiempo y recursos significativos. Si te gusta nuestro trabajo y estás interesado en apoyarnos, considera hacer una donación. Cualquier contribución sería muy apreciada y nos ayudaría a seguir mejorando el plugin y a brindarte un mejor servicio. Si decides hacer una donación, ¡te agradecemos mucho! Si tienes alguna pregunta o comentario, no dudes en ponerte en contacto con nosotros. ¡Gracias de nuevo por tu apoyo!’, ‘dropbox-folder-share’) . " </p>961 <!–<p class=’popular-tags’>” . __('Cualquier donacion que puedan hacer sera muy bien recibido y estare muy agradecido por ello.’, ‘dropbox-folder-share’) . " </p>–>962 <!–p class=’popular-tags’>” . __(‘No quiero dejar pasar esta oportunidad de dar gracias a los 2 amigos de FRANCIA que tuvieron a bien donar el año 2014. MUCHAS GRACIAS’, ‘dropbox-folder-share’) . " </p–>963 <img align=’right’ src=’” . DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/AntonySalas_signature.png’ . "’>964 <br>965 <br>966 <br>967 </div>968 </div>969 </div>970 <div id=’sidebar’ class=’wrapper-cell’>971972 <div class=’sidebar_box info_box’>973 <h3>” . __(‘Donaciones’, ‘dropbox-folder-share’) . "</h3>974 <div class=’inside’>975 <div class=’misc-pub-section center’>976 ". DROPBOX_FOLDER_SHARE_HTML_DONACIONES ."977 </div>978 </div>979 </div>980981 <div class=’sidebar_box info_box’>982 <div class=’inside’>983 <div class=’misc-pub-section center’>984985 <img width=’150px’ src=’” . DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/img/DropBox-Folder-Share-300x300.png’ . "’>986987 </div>988 </div>989 </div>990 </div>991 </div>992 </div>";993994995 return $message;996997 }998999 function nota_assets() {1000 //ddd(“HOLAAAAA”);1001 //wp_enqueue_script( 'my-notice-update’, plugins_url( '/js/notice-update.js’, __FILE__ ), array( ‘jquery’ ), '1.0’, true );1002 wp_enqueue_script('DFS-Script-Admin’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . 'src/js/scripts-hyno.js’, array(‘jquery’));1003 wp_enqueue_script('font-awesome’, ‘https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/js/all.min.js’);1004 wp_enqueue_style('DFS-Style-Admin’, DROPBOX_FOLDER_SHARE_PLUGIN_URL . ‘src/css/styles-hyno-admin.css’); //la ruta de nuestro1005 //wp_enqueue_style('font-awesome’, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css’);1006 }100710081009}

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907