This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
for wordpress edit the single.php and the following code | |
Added the 20 famous languages as described at : | |
http://mentalfloss.com/article/67766/worlds-top-20-languages-and-words-english-has-borrowed-them --> | |
<select id="tcombo" style='float:right;font-size:small;' onchange='if (document.getElementById("tcombo").value == 0) return; window.open("https://translate.google.com/translate?sl=auto&tl=" + document.getElementById("tcombo").value + "&u=" + location.href)'> | |
<option value=0>-translate-</option> | |
<option value="ar">Arabic</option> | |
<option value="bn">Bengali</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0;"> | |
<title>Recaptcha Landing Page Demo - Avoid Bots</title> | |
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script> | |
var validate = function(gResponse){ | |
jQuery.ajax({ | |
url: '/recaptcha/', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@session_start(); | |
require_once('../wp-load.php'); | |
//when form submited | |
if ($_SERVER["REQUEST_METHOD"] == "POST") | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Windows.Forms; | |
namespace PipisCrew.Helpers | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android.permission.ACCESS_ALL_DOWNLOADS | |
android.permission.ACCESS_BLUETOOTH_SHARE | |
android.permission.ACCESS_CACHE_FILESYSTEM | |
android.permission.ACCESS_CHECKIN_PROPERTIES | |
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY | |
android.permission.ACCESS_DOWNLOAD_MANAGER | |
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED | |
android.permission.ACCESS_DRM_CERTIFICATES | |
android.permission.ACCESS_EPHEMERAL_APPS | |
android.permission.ACCESS_FM_RADIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @link https://pipiscrew.com | |
* @copyright Copyright (c) 2016 PipisCrew | |
*/ | |
function connect_mysql() { | |
$mysql_hostname = "localhost"; | |
$mysql_user = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Look at WebSQL</title> | |
<script> | |
// Through the code below remember essentialy there are just 3 core methods we tend to use | |
// openDatabase | |
// transaction | |
// executeSql | |
// Opening a connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////// PHP | |
//get_multi_recordset.php | |
$brands = getSet($db, "select brand_id from brands where user_id=?", array($user_id)); | |
$categories = getSet($db, "select category_id from categories where user_id=?", array($user_id)); | |
$subcategories = getSet($db, "select subcategory_id from subcategories where user_id=?", array($user_id)); | |
$payments = getSet($db, "select payment_id from payments where user_id=?", array($user_id)); | |
$json = array('brands'=> $brands, 'categories' => $categories, 'subcategories' => $subcategories, 'payments' => $payments); | |
header("Content-Type: application/json", true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//control the application from server, new version is out? update the mysql_table, oldversion users cant sign in! | |
//your APK cracked? users cant login without a valid APK sign | |
String sign = ""; | |
String version = ""; | |
PackageInfo info; | |
try { | |
info = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES); | |
version = String.valueOf(info.versionCode); //ref : line 70 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source - http://stackoverflow.com/a/22182746/1320686 | |
//the activity_main.xml | |
<android.support.v4.widget.DrawerLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/drawer_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!-- Framelayout to display Fragments --> | |
<FrameLayout |
NewerOlder