This commit is contained in:
Li 2023-10-28 20:39:02 +13:00
parent 15e444ed5f
commit 1700df921f
3 changed files with 1 additions and 592 deletions

View File

@ -1 +1 @@
reference/*
reference\\*

View File

@ -1,84 +0,0 @@
<!DOCTYPE HTML>
<?php
include("common.php");
update_csv();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="common.js"></script>
<?php
if(isset($_GET["id"]))
{
$CbpsCsv = explode("\n",file_get_contents("cbpsdb.csv"));
foreach($CbpsCsv as &$Entry){
$csv = explode(",",$Entry);
if(strcmp($csv[ID],$_GET["id"]) == 0)
{
$DEFAULT_ICON0 = $csv[DOWNLOAD_ICON0];
if(strcmp($csv[DOWNLOAD_ICON0],"None") == 0)
{
if($plugins == false)
$DEFAULT_ICON0 = "/img/default.png";
}
$GLOBALS['desc'] = htmlspecialchars(file_get_contents(get_readme($csv)),ENT_QUOTES);
echo('<meta name="title" content="CbpsDB - '.htmlspecialchars($csv[TITLE]).'">');
echo('<meta name="description" content="'.$GLOBALS['desc'].'">');
echo('<meta property="og:image" content="'.htmlspecialchars($DEFAULT_ICON0,ENT_QUOTES).'"/>');
echo('<meta name="twitter:image" content="'.htmlspecialchars($DEFAULT_ICON0,ENT_QUOTES).'"/>');
echo('<meta property="og:title" content="CbpsDB - '.htmlspecialchars($csv[TITLE]).'">');
echo('<meta property="og:description" content="'.$GLOBALS['desc'].'">');
echo('<meta name="keywords" content="Vita,Db,CBPS,CbpsDb,Vitadb,homebrew,henkaku,plugins,VPK,SKPRX,VPK">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta name="author" content="SilicaAndPina">');
echo('<title>CbpsDB - '.htmlspecialchars($csv[TITLE]).'</title>');
}
}
}
else
{
echo('<meta name="title" content="CbpsDB - Ultimate source for PS Vita Homebrew apps and Plugins!">
<meta name="description" content="CbpsDB is the ultimate source for PS Vita Homebrew, Download all the latest PSVita homebrew plugins and apps!">
<meta name="keywords" content="Vita,Db,CBPS,CbpsDb,Vitadb,homebrew,henkaku,plugins,VPK,SKPRX,VPK">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta name="author" content="SilicaAndPina">
<meta property="og:title" content="CbpsDB - Ultimate source for PS Vita Homebrew apps and Plugins!" />
<meta property="og:description" content="CbpsDB is the ultimate source for PS Vita Homebrew, Download all the latest PSVita homebrew plugins and apps!" />
<meta property="og:image" content="/img/logo.png"/>
<title>CbpsDB - Ultimate source for PS Vita Homebrew apps and Plugins!</title>');
}
?>
<meta name="viewport" content="width=1000; user-scalable=0;" />
</head>
<body>
<div class="header">
<div class="sitename">
<a href="/" class="image">
<img src="img/logo.png" alt="cbpsDB" width="50" height="50">
</a>
CbpsDB
</div>
<div class="sitemap">
<div id="apps_page" onclick='open_url("/")' class="sitemap-entry"><a href="/">Apps</a></div>
<div id="plugins_page" onclick='open_url("/plugins.php")' class="sitemap-entry"><a href="/plugins.php">Plugins</a></div>
<div id="submit_page" onclick='open_url("/submit.php")' class="sitemap-entry"><a href="/submit.php">Submit</a></div>
</div>
</div>

View File

@ -1,507 +0,0 @@
/*
* header.php
*/
.sitename img {
vertical-align: top;
}
.sitename{
font-weight: bold;
float: left;
}
.sitemap{
position: relative;
float:right;
height: 100%;
margin: 0;
line-height: 120%;
font-weight: bold;
}
.sitemap-entry{
position:relative;
top: 0px;
color:#ffffff;
display: inline-block;
text-decoration:none;
padding: 0px 13px;
height: 100%;
}
.sitemap-entry a{
color: white;
text-decoration: none;
cursor: pointer;
}
.sitemap-entry:hover{
color: white;
background-image: linear-gradient(#30434a, #19262b);
text-decoration: none;
cursor: pointer;
}
.header {
font-size: 200%;
font-weight: bold;
color: white;
height: 50px;
width: 100%;
margin: 0px;
background-image: linear-gradient(#4e7280, #30434a);
}
/*
* submit.php
*/
.submit-tos{
color: white;
font-size: 70%;
text-align: left;
float: left;
}
.submit-box{
margin:10px;
top:50px;
width: 800px;
border: 1px solid #8d9fba;
height: 430px;
background-image: linear-gradient(#566d8f, #2c384a);
display: inline-block;
text-align: center;
position: relative;
}
.submit-form{
display:none;
}
.submit-action-icon{
position: relative;
top:20px;
text-align:center;
width:100%;
height:145px;
}
.submit-button{
position:relative;
color: white;
padding: 10px;
display: inline-block;
background-image: linear-gradient(#2f3d52, #141c29);
border: 1px solid #08101c;
box-sizing: border-box;
}
.submit-inputs{
position: relative;
top:20px;
text-align: center;
color: white;
font-weight: bold;
}
.submit-button:hover, .submit-button:disabled{
background-image: linear-gradient(#1a2638, #0b1017);
cursor:pointer;
}
.submit-textarea{
position:relative;
top: 0px;
vertical-align: top;
padding: 10px;
display: inline-block;
color: white;
border: 1px solid #08101c;
background-image: linear-gradient(#2f3d52, #141c29);
box-sizing: border-box;
resize: none;
}
.submit-captcha{
text-align: center;
}
.submit-progress-back{
position:relative;
display: inline-block;
height:30px;
width: 700px;
border: 1px solid #08101c;
background-image: linear-gradient(#2f3d52, #141c29);
}
.submit-progress-front{
position:relative;
top: 0px;
float: left;
display: inline-block;
height:100%;
width: 0px;
background-image: linear-gradient(#1a2638, #0b1017);
}
.g-recaptcha{
display: inline-block;
}
.submit-dropdown{
position:relative;
top: 0px;
padding: 10px;
display: inline-block;
color: white;
border: 1px solid #08101c;
background-image: linear-gradient(#2f3d52, #141c29);
box-sizing: border-box;
}
.submit-option{
position:relative;
margin:40px;
margin-top:30px;
width:200px;
height:350px;
background-image: linear-gradient(#2f3d52, #141c29);
display: inline-block;
border: 1px solid #08101c;
vertical-align: top;
}
.submit-status{
position:relative;
top:70px;
}
.submit-option:hover{
background-image: linear-gradient(#1a2638, #0b1017);
cursor:pointer;
}
.submit-skip{
position:absolute;
bottom: 1px;
right: 1px;
}
/*
* index.php
*/
.applist{
text-align: center;
}
.version-select{
width:70px;
height:40px;
float:right;
}
.vita-app a:link, a:visited{
color: white;
font-weight: bold;
text-decoration: none;
}
.vita-src-download a:hover{
color: white;
font-weight: bold;
text-decoration: underline;
}
.vita-app-icon{
position: absolute;
top:2px;
left:0px;
text-align:center;
width:100%;
height:145px;
}
.vita-app-info{
position: absolute;
text-align: center;
width: 95%;
height: 70px;
top:150px;
}
.vita-app-page{
margin:20px;
margin-bottom:20px;
width: 85%;
border: 1px solid #8d9fba;
background-image: linear-gradient(#566d8f, #2c384a);
display: inline-block;
text-align: center;
position: relative;
overflow: hidden;
}
.vita-app-page-title{
position:relative;
top:55px;
font-size:200%;
}
.vita-entry-info{
position:relative;
margin-top:100px;
width: 100%;
text-align: center;
}
.vita-app-page-readme{
margin-left: 0px;
margin: 10px;
text-align:left;
position:relative;
width:98%;
background-image: linear-gradient(#2f3d52, #141c29);
border: 1px solid #08101c;
vertical-align: top;
white-space: nowrap;
overflow: hidden;
}
.vita-app-page a:link, a:visited{
color: white;
font-weight: bold;
text-decoration: none;
}
.vita-app-page-readme a:link, a:visited{
color: white;
font-weight: bold;
text-decoration: underline;
}
.vita-app-page-icon{
margin:10px;
float: left;
}
.vita-app{
padding: 5px;
width: 200px;
height: 250px;
margin: 10px;
background-image: linear-gradient(#566d8f, #2c384a);
color: white;
text-align: left;
display: inline-block;
border: 1px solid #8d9fba;
vertical-align: middle;
position: relative;
white-space: nowrap;
overflow: hidden;
}
.vita-app:hover{
background-image: linear-gradient(#2f3d52, #141c29);
cursor: pointer;
}
.to-bottom{
position: absolute;
right:4px;
bottom: 2px;
}
.to-top{
position: absolute;
right:4px;
top: 2px;
}
.quick-download-area{
text-align: center;
}
.download-button:hover{
background-image: linear-gradient(#1a2638, #0b1017);
}
.download-button{
font-size: 80%;
border: 1px solid #08101c;
padding: 5px;
text-align:center;
background-image: linear-gradient(#2f3d52, #141c29);
margin:5px;
}
.vita-src-download{
font-size: 55%;
width: 200px;
text-align: right;
overflow: hidden;
}
/*
* devtools.php
*/
.devtoollist{
position: inherit;
margin-left: 15%;
margin-right: 15%;
text-align:center;
}
.devtool{
padding:10px;
margin: 10px;
width: 325px;
border-radius: 1000px;
background-color: #00ffa9;
display: inline-block;
vertical-align: middle;
}
.devtool:link, .devtool:visited, .devtool a{
text-decoration: none !important;
color: black;
/*font-size: 150%;*/
font-size: 25px;
font-weight: bold;
height:128px;
line-height: 120px;
}
.devtool:hover{
padding:10px;
margin: 10px;
width:325px;
height:128px;
border-radius: 1000px;
background-color: #005796;
cursor: pointer;
display: inline-block;
vertical-align: middle;
}
.devtool #textContent{
text-align: center;
}
.bubble-overlay{
position: absolute;
bottom: -1;
}
.bubble{
border-radius: 100%;
background-color: green;
}
/*
* Common
*/
html,body,header {
margin: 0;
padding: 0;
background-image: linear-gradient(#1e2226, #000000);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
color:white;
}
option{
color:black;
}
a.image{
text-decoration: none;
}
.mid{
vertical-align: middle;
}
.left{
float: left;
}
.black:link, .black:visited, .black{
color: black;
font-weight: bold;
text-decoration: none;
}
.black:hover{
color: black;
font-weight: bold;
text-decoration: underline;
}
.white:link, .white:visited, .white{
color: white;
font-weight: bold;
text-decoration: none;
cursor: pointer;
}
.white:hover{
color: white;
font-weight: bold;
text-decoration: underline;
cursor: pointer;
}
.nostyle:link, .nostyle:visited, .nostyle:hover, .nostyle, .nostyle a{
color: white;
font-weight: bold;
text-decoration: none !important;
cursor: pointer;
}
.button-enabled{
width: 300px;
height: 50px;
margin: 10px;
background-color: #00d0ff;
text-align: center;
font-weight: bold;
line-height: 50px;
float: left;
color: white;
border-radius: 20px;
}
.button-enabled:hover{
width: 300px;
height: 50px;
margin: 10px;
background-color: #005796;
text-align: center;
font-weight: bold;
line-height: 50px;
float: left;
cursor: pointer;
color: white;
border-radius: 20px;
}
.button-disabled{
width: 300px;
height: 50px;
margin: 10px;
background-color: #8f9db7;
text-align: center;
line-height: 50px;
float: left;
font-weight: bold;
color: #cfd2d3;
cursor: arrow;
border-radius: 20px;
}