View gist:9640710
=========================================================== | |
Find the below paths:- | |
/administrator/language/en-GB/en-GB.plg_user_profile.ini | |
/plugins/user/profile/profile.xml | |
/plugins/user/profile/profiles/profile.xml | |
=========================================================== |
View dateformatchange.php
<?php | |
echo date("Y M d", strtotime("20130222")); | |
echo "<br/><br/>"; | |
echo date("Y/m/d", strtotime("20130222")); | |
?> |
View dates.php
<?php | |
$conn=mysql_connect("localhost","root","kirti123") ; | |
if(!$conn) | |
{ | |
die('connection Error' . mysql_error()); | |
} | |
// DATE CONVERSION |
View default.php
<?php | |
// Manufacturer of the Product | |
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) { | |
echo $this->loadTemplate('manufacturer'); | |
} | |
?> |
View default-replace.php
<div class="skuNumber"><br /> | |
<?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?>: <?php echo $this->product->product_sku; ?> | |
</div> |
View splitYoutubeLink.php
<?php | |
$message= 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit http://www.youtube.com/watch?v=LSoXrR2Xec4 Lorem ipsum dolor sit amet, consectetuer adipiscing elit http://www.youtube.com/watch?v=0SARbwvhupQ '; | |
$regex = '/\b[http|https]?\:\/\/\w+\.youtube\.com\/watch\?v\=(\w+)\b/'; | |
$matches = array(); | |
preg_match_all($regex, $message, $matches); | |
print_r($matches[1]); |
View MysqliEmpty.php
<?php | |
$q2 = "SELECT FIELD FROM TABLENAME WHERE ID = 1;"; | |
$con = new mysqli($server, $user, $pass); | |
if (mysqli_connect_errno()) | |
{ | |
$error = mysqli_connect_error(); | |
exit(); | |
} | |
else |
View 1-Declaring Variables.js
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Declaring Variables</title> | |
</head> | |
<body> | |
<script> | |
var myGlobalVariableOne = "My Global Variable One"; |
View 2-Hiding global Variables with local variables of the same name.js
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hiding global Variables with local variables of the same name</title> | |
</head> | |
<body> | |
<script> | |
var myVar = "Global Variable"; |
View 3-Scope Chain-I.js
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Scope Chain</title> | |
</head> | |
<p> | |
<ul> | |
<li>When you have nested functions you can create a scope 'Chain'</li> | |
<li>The browser travels up this chain when looking for a variables value</li> |
OlderNewer