#1. add original repo git remote add original git://url-to-original-repo
#2. check if remote repo is properly added git remote -v
#3. import everything from original repo git fetch original
#4. load everything into your working branch
function main_rotator_init() { | |
clearInterval(interval); | |
interval = setInterval("main_rotator()",5000); | |
} | |
function main_rotator() { | |
$node = $('.current'); | |
$node.hide(); | |
$('.main').removeClass('current'); | |
if($node.next().length) $node.next().addClass('current'); |
INSERT INTO contest09_fragments_pl | |
(name,content,priority) | |
VALUES | |
('appName' ,'Wieczór Kawalerski',0), | |
('appDescription' ,'Wieczór kawalerski to niezapomniane wydarzenie. Macie pomysł na jego zorganizowanie? Wyślijcie zgłoszenie i wygrajcie 1 z 10 zestawów kosmetyków AA MEN.',0), | |
('profileName' ,'Męskie Pasje', 0), | |
('appRule' ,'W konkursie mogą brać udział tylko osoby posiadające prawdziwe konto, z prawdziwym zdjęciem profilowym.',0), | |
('appRule' ,'Konkurs skierowany jest do osób, które w dniu rozpoczęcia Konkursu miały ukończone 18 lat',1), | |
('appRule' ,'Konkurs trwa od 29 listopada od godz. 15:00 do 8 grudnia do godz. 15:00.',2), | |
('appRule' ,'Aby wziąć udział w konkursie należy przesłać zgłoszenie, które będzie pomysłem na zorganizowanie wieczoru kawalerskiego.',3), |
<div id="login"> | |
<h1 id="choose_login">Wybierz cyfrę</h1> | |
<div id="one_login" class="panels_login"> | |
<a href="#one">one</a> | |
</div> | |
<div id="two_login" class="panels_login"> | |
<a href="#two">two</a> | |
</div> | |
</div> |
<div id="login"> | |
<h1 id="choose_login">Wybierz kim jesteś</h1> | |
<div id="login_list"> | |
<a href="#one" id="login_one" class="login_panels"> | |
<span>one</span> | |
</a> | |
<a href="#two" id="login_two" class="login_panels"> | |
<span>two</span> | |
</a> | |
</div> |
<section id="recipient-layer"> | |
<h1>Wybierz adresatów</h1> | |
<section id="facebook-login"> | |
<p>Aby wybrać znajomych z Facebooka musisz się zalogować:</p> | |
<fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button> | |
</section> | |
<form> |
<section id="recipient-layer"> | |
<h1>Wybierz adresatów</h1> | |
<? if(!$user): ?> | |
<section id="fb_login"> | |
<p>Aby wybrać znajomych z Facebooka musisz się zalogować:</p> | |
<fb:login-button show-faces="true" width="200" max-rows="2" scope="read_friendlists">Zabuguj się na facebuga</fb:login-button> | |
</section> | |
<? endif; ?> |
<? | |
$msg = array( | |
'message'=> 'Oto moje życzenia dla Ciebie', | |
'name' => '[Ktoś] wysyła Ci kartkę świąteczną!', | |
'caption' => "Szybki opis linka!", | |
'link' => 'https://facebook.webtop.pl/zjednoczenie/wysylaczka/', | |
'description' => 'Super fajny i ciekawy opis kartki', | |
'picture'=> 'http://facebook.webtop.pl/zjednoczenie/wysylaczka/uploads/pics/card_'.$_POST['token'].'.jpg', | |
'actions' => array( | |
array( |
<? | |
// add it to config file: | |
$google_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
// add this to libs file: | |
function shorten($url) { | |
$gurl = "https://www.googleapis.com/urlshortener/v1/url?key=" . $GLOBALS['google_key']; | |
$url = json_encode(array("longUrl" => $url)); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
<? | |
// put this at the beginning of file, or where you'd like to start receiving data | |
$ok=true; | |
foreach(array('put','here','names','of','passed','POST','data','indexes') as $v)$ok&=(bool)($$v=(isset($_POST[$v]))?$_POST[$v]:false); | |
/* | |
* output: | |
* - $ok => states if errors occured | |
* - $name => every index gets changed into variable | |
*/ |
#1. add original repo git remote add original git://url-to-original-repo
#2. check if remote repo is properly added git remote -v
#3. import everything from original repo git fetch original
#4. load everything into your working branch