📄 new 1.txt (Text) 46 bytes 2016-01-08
Source code file for new 1
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "new 1.txt",
"description": "Source code file for new 1",
"dateModified": "2016-01-08",
"dateCreated": "2025-03-23",
"contentSize": "46 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/new 1.txt",
"encodingFormat": "text/plain",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Text"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/"
}
🐘 newsticker.php (Php) 2.5 KB 2016-01-08
PHP module for newsticker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
$seconds_to_cache = 2592000;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Content-Type: text/html; charset=UTF-8");
header("Expires: $ts");
header('Cache-Control: public, max-age=2592000, pre-check=2592000');
header('X-UA-Compatible: IE=edge,chrome=1');
header("Pragma: cache");
//error_reporting(E_ALL);
require_once("/home/www/wwwbuzzerstar/library/Functions.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Connection.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Cache.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Template.inc.php");
$design = new Template();
$cache = new FileCache();
$config = new Config();
$func = new Functions();
$key = 'getTicker:NewsStream';
if (!$content = $cache->fetch($key)) {
$conn = new Connection();
$pdo = $conn->prepareQuery();
$table = $config->sql_tablename_publish_de();
$stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT 10");
$stmt->execute();
$htmlcode = "";
$htmlcode =<<<END
<ul class="bxslider" style="width: 80%; height: 80%;">
END;
while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) {
$shortcode = $rows["p_shortcode"];
$headline = $rows["p_headline"];
$pic_desc = $rows["p_picture_1_description"];
$linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode);
$titlewrap = wordwrap(substr($headline,0,55), 20, "<br />", true);
$htmlcode .=<<<END
<li><a href="$linkingcode#utm_source=newsticker&utm_medium=newsticker&utm_campaign=extern" target="_blank" title="$headline" style="font-size:107%">$titlewrap ...</a>
<a href="$linkingcode#utm_source=newsticker&utm_medium=newsticker&utm_campaign=extern" target="_blank" title="$headline" style="font-size:107%">
<figure><img src="https://www.buzzerstar.com/i.php?s=$shortcode" width="180" height="155" title="Bildbeschreibung: $pic_desc" alt="Bild: $pic_desc" /></figure></a></li>
END;
}
... [truncated, 18 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "newsticker.php",
"description": "PHP module for newsticker",
"dateModified": "2016-01-08",
"dateCreated": "2025-03-23",
"contentSize": "2.5 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/newsticker.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/"
}
🐘 textticker.php (Php) 2.1 KB 2016-01-08
PHP module for textticker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 | <?php
$seconds_to_cache = 2592000;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Content-Type: text/html; charset=UTF-8");
header("Expires: $ts");
header('Cache-Control: public, max-age=2592000, pre-check=2592000');
header('X-UA-Compatible: IE=edge,chrome=1');
header("Pragma: cache");
//error_reporting(E_ALL);
require_once("/home/www/wwwbuzzerstar/library/Functions.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Connection.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Cache.inc.php");
require_once("/home/www/wwwbuzzerstar/library/Template.inc.php");
$design = new Template();
$cache = new FileCache();
$config = new Config();
$func = new Functions();
$key = 'getTicker:TextStream';
if (!$content = $cache->fetch($key)) {
$conn = new Connection();
$pdo = $conn->prepareQuery();
$table = $config->sql_tablename_publish_de();
$stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT 10");
$stmt->execute();
$htmlcode = "";
$htmlcode =<<<END
<ul class="bxslider" style="width: 80%; height: 80%;">
END;
while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) {
$shortcode = $rows["p_shortcode"];
$headline = $rows["p_headline"];
//$pic_desc = $rows["p_picture_1_description"];
$linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode);
//$titlewrap = wordwrap(substr($headline,0,55), 20, "<br />", true);
$htmlcode .=<<<END
<li><a href="$linkingcode#utm_source=textticker&utm_medium=textticker&utm_campaign=extern" target="_blank" title="$headline" style="font-size:107%">$headline</a></li>
END;
}
$htmlcode .=<<<END
</ul>
... [truncated, 16 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "textticker.php",
"description": "PHP module for textticker",
"dateModified": "2016-01-08",
"dateCreated": "2025-03-23",
"contentSize": "2.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/textticker.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/buzzerstar/newsticker/"
}