GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (107)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/widgets/TbModal.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 *## TbModal class file.
4
 *
5
 * @author Christoffer Niska <[email protected]>
6
 * @copyright Copyright &copy; Christoffer Niska 2011-
7
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
8
 */
9
10
/**
11
 *## Bootstrap modal widget.
12
 *
13
 * @see <http://twitter.github.com/bootstrap/javascript.html#modals>
14
 *
15
 * @since 0.9.3
16
 * @package booster.widgets.modals
17
 */
18
class TbModal extends CWidget {
19
	
20
	/**
21
	 * @var boolean indicates whether to automatically open the modal when initialized. Defaults to 'false'.
22
	 */
23
	public $autoOpen = false;
24
25
	/**
26
	 * @var boolean indicates whether the modal should use transitions. Defaults to 'true'.
27
	 */
28
	public $fade = true;
29
30
	/**
31
	 * @var array the options for the Bootstrap Javascript plugin.
32
	 */
33
	public $options = array();
34
35
	/**
36
	 * @var string[] the Javascript event handlers.
37
	 */
38
	public $events = array();
39
40
	/**
41
	 * @var array the HTML attributes for the widget container.
42
	 */
43
	public $htmlOptions = array();
44
	
45
 	/**
0 ignored issues
show
There is some trailing whitespace on this line which should be avoided as per coding-style.
Loading history...
46
     	 * @var array the HTML attributes for the modal-dialog div.
47
         */
48
        public $modalDialogOptions = array();
49
50
        /**
51
         * @var array the HTML attributes for the modal-content div.
52
         */
53
        public $modalContentOptions = array();
54
55
	/**
56
	 *### .init()
57
	 *
58
	 * Initializes the widget.
59
	 */
60
	public function init() {
61
		
62
		if (!isset($this->htmlOptions['id'])) {
63
			$this->htmlOptions['id'] = $this->getId();
64
		}
65
66
		if ($this->autoOpen === false && !isset($this->options['show'])) {
67
			$this->options['show'] = false;
68
		}
69
70
		$classes = array('modal');
71
72
		if ($this->fade === true) {
73
			$classes[] = 'fade';
74
		}
75
76
		if (!empty($classes)) {
77
			$classes = implode(' ', $classes);
78
			if (isset($this->htmlOptions['class'])) {
79
				$this->htmlOptions['class'] .= ' ' . $classes;
80
			} else {
81
				$this->htmlOptions['class'] = $classes;
82
			}
83
		}
84
		
85
        	if (isset($this->modalDialogOptions['class'])) {
86
            		$this->modalDialogOptions['class'] .= ' modal-dialog';
87
        	} else {
88
            		$this->modalDialogOptions['class'] = 'modal-dialog';
89
        	}
90
91
        	if (isset($this->modalContentOptions['class'])) {
92
            		$this->modalContentOptions['class'] .= ' modal-content';
93
        	} else {
94
            		$this->modalContentOptions['class'] = 'modal-content';
95
        	}
96
97
        	echo CHtml::openTag('div', $this->htmlOptions); //modal
98
        	echo CHtml::openTag('div', $this->modalDialogOptions); //modal-dialog
99
        	echo CHtml::openTag('div', $this->modalContentOptions); //modal-content
100
	}
101
102
	/**
103
	 *### .run()
104
	 *
105
	 * Runs the widget.
106
	 */
107
	public function run() {
108
		
109
		$id = $this->htmlOptions['id'];
110
111
		echo CHtml::closeTag('div'); //modal-content
112
        	echo CHtml::closeTag('div'); //modal-dialog
113
        	echo CHtml::closeTag('div'); //modal
114
115
		/** @var CClientScript $cs */
116
		$cs = Yii::app()->getClientScript();
117
118
		$options = !empty($this->options) ? CJavaScript::encode($this->options) : '';
119
		$cs->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').modal({$options});");
120
121
		foreach ($this->events as $name => $handler) {
122
			$handler = CJavaScript::encode($handler);
123
			$cs->registerScript(__CLASS__ . '#' . $id . '_' . $name, "jQuery('#{$id}').on('{$name}', {$handler});");
124
		}
125
	}
126
}
127