Thursday, December 25, 2014

What is simple protection of xss in Yii2?

For example next action:
public function actionProfile($name 'John')
{
   return 
$this->render('profile', ['name' => $name]);
}
The action method took an argument $name. Whose value of default to "John", but the value may be set by end user. It may be making vulnerable to cross-site scripting (XSS) attacks by embedding malicious JavaScript code in the parameter. See to below code, the "name" parameters is HTML-encoded before bieng printed. This is necessary for simple protection.


<?phpuse yii\helpers\Html;?>
<?= Html::encode($name?>

Monday, November 21, 2011

VIRTUAL REALITY


Not long ago computers were considered an amazing invention. Today they form part of our everyday life. The latest thing today is Virtual Reality. A Virtual Reality system can transport the user to exotic locations such as a beach in Hawaii or the inside of the human body. The Virtual Reality system is still in the early stages of its development. At the moment it is necessary to put a large helmet on your head to see the simulated world and you have to wear a special glove on your hand in order to manipulate the objects you see there. Lenses and two miniature display screens inside the helmet create the illusion that the screen surrounds you on every side. Already today Virtual Reality is used in medicine. In hospitals, surgeons may plan operations beforehand, "travelling" through the brain, heart or lungs without damaging the body.  
 

MULTIMEDIA


Multimedia is media that utilizes a combination of different content forms. The term is used in contrast to media which utilize only traditional forms of printed or hand-produced text and still graphics. In general, multimedia includes a combination of text, audio, still images, animation, video and interactivity content forms. Multimedia is usually recorded and played, displayed or accessed by information content processing devices, such as computerized and electronic devices, but can also be a part of a live performance. Multimedia also describes electronic media devices used to store and experience multimedia content. Multimedia is similar to traditional mixed media in fine art, but with a broader scope. The term "rich media" is synonymous for interactive multimedia. Hypermedia can be considered one particular multimedia application.